Jpp  debug
the software that should make you happy
Functions
software/JTrigger/JPrintTriggerParameters.cc File Reference

Auxiliary program to print trigger parameters. More...

#include <string>
#include <iostream>
#include <iomanip>
#include "JTrigger/JTriggerParameters.hh"
#include "JTrigger/JTriggerDictionary.hh"
#include "JSupport/JMultipleFileScanner.hh"
#include "JSupport/JTriggerParametersSupportkit.hh"
#include "JSupport/JSupport.hh"
#include "JROOT/JRootPrinter.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Auxiliary program to print trigger parameters.

Author
mdejong

Definition in file software/JTrigger/JPrintTriggerParameters.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 22 of file software/JTrigger/JPrintTriggerParameters.cc.

23 {
24  using namespace std;
25  using namespace JPP;
26 
28  string key;
29  int debug;
30 
31  try {
32 
33  JParser<> zap("Auxiliary program to print trigger parameters.");
34 
35  zap['f'] = make_field(inputFile);
36  zap['k'] = make_field(key) = "";
37  zap['d'] = make_field(debug) = 1;
38 
39  zap(argc, argv);
40  }
41  catch(const exception& error) {
42  FATAL(error.what() << endl);
43  }
44 
45  while (inputFile.hasNext()) {
46 
47  if (key == "")
48  cout << *inputFile.next();
49  else
50  JRootPrinter::print(cout, *inputFile.next(), key, JTriggerDictionary::getInstance());
51 
52  cout << endl;
53  }
54 
55  return 0;
56 }
#define FATAL(A)
Definition: JMessage.hh:67
int debug
debug level
Definition: JSirene.cc:69
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:2158
Utility class to parse command line options.
Definition: JParser.hh:1714
Template specialisation of JMultipleFileScanner for trigger parameters.
virtual bool hasNext() override
Check availability of next element.
virtual const pointer_type & next() override
Get next element.
std::ostream & print(std::ostream &out, const JTestSummary &summary, const char delimiter=' ', const bool useColors=true)
Print test summary.
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JSTDTypes.hh:14