Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JPrintTreeParameters.cc File Reference

Auxiliary program to print ROOT TTree parameters. More...

#include <string>
#include <iostream>
#include <iomanip>
#include "JROOT/JTreeParameters.hh"
#include "JAAnet/JSupport.hh"
#include "JDAQ/JSupport.hh"
#include "JSupport/JSupport.hh"
#include "JLang/JBool.hh"
#include "JLang/JType.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 ROOT TTree parameters.

Author
mdejong

Definition in file JPrintTreeParameters.cc.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 72 of file JPrintTreeParameters.cc.

73{
74 using namespace std;
75 using namespace JPP;
76 using namespace KM3NETDAQ;
77
78 int debug;
79
80 try {
81
82 JParser<> zap("Auxiliary program to print ROOT TTree parameters.");
83
84 zap['d'] = make_field(debug) = 1;
85
86 zap(argc, argv);
87 }
88 catch(const exception &error) {
89 FATAL(error.what() << endl);
90 }
91
92 JPrinter printer;
93
94 for_each(printer, JType<JAllTypes_t>());
95}
#define FATAL(A)
Definition JMessage.hh:67
int debug
debug level
Definition JSirene.cc:72
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition JParser.hh:2142
Utility class to parse command line options.
Definition JParser.hh:1698
void for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
Definition JTypeList.hh:414
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39
Auxiliary class for a type holder.
Definition JType.hh:19