Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JPrintRootClass.cc File Reference

Auxiliary program to print ROOT class information. More...

#include <string>
#include <iostream>
#include <iomanip>
#include "km3net-dataformat/offline/Head.hh"
#include "km3net-dataformat/offline/MultiHead.hh"
#include "km3net-dataformat/offline/Evt.hh"
#include "JAAnet/JHead.hh"
#include "JDAQ/JDAQTimesliceIO.hh"
#include "JDAQ/JDAQEventIO.hh"
#include "JDAQ/JDAQSummarysliceIO.hh"
#include "JTrigger/JTriggerParameters.hh"
#include "antares-dataformat/TimeSlice.hh"
#include "antares-dataformat/PhysicsEvent.hh"
#include "JAcoustics/JToA.hh"
#include "JAcoustics/JEvent.hh"
#include "JAcoustics/JEvt.hh"
#include "JAcoustics/JSuperEvt.hh"
#include "JAcoustics/JTriggerParameters.hh"
#include "JAcoustics/JFitParameters.hh"
#include "JAcoustics/JSupport.hh"
#include "JCompass/JEvt.hh"
#include "JCompass/JSupport.hh"
#include "JSupport/JSupport.hh"
#include "JROOT/JRootClass.hh"
#include "JROOT/JROOTClassSelector.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 class information.

The name of the data structure following option -C should be preceded by a '+' or '-' to add or remove data types in the output, respectively.
In this, ROOT wildcards are accepted (e.g. -C -\.\* will remove all data types).

Author
mdejong

Definition in file JPrintRootClass.cc.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 94 of file JPrintRootClass.cc.

95{
96 using namespace std;
97 using namespace JPP;
98
109 JCOMPASS::JQuaternion>::typelist typelist;
110
111 JPrinter_t printer(cout, getROOTClassSelection<typelist>(true));
112 int debug;
113
114 try {
115
116 JParser<> zap("Auxiliary program to print ROOT class information.");
117
118 zap['C'] = make_field(printer,
119 "Precede name of data structure by a '+' or '-' "
120 "to add or remove data types in the output, respectively."
121 "\nROOT wildcards are accepted.") = JPARSER::initialised();
122 zap['d'] = make_field(debug) = 1;
123
124 zap(argc, argv);
125 }
126 catch(const exception& error) {
127 FATAL(error.what() << endl);
128 }
129
130 for_each(printer, JType<typelist>());
131}
JLANG::JTYPELIST< JACOUSTICS::JToA, JACOUSTICS::JEvent, JACOUSTICS::JEvt, JACOUSTICS::JSuperEvt, JACOUSTICS::JTriggerParameters, JACOUSTICS::JFitParameters >::typelist JAcousticsTypes_t
Type list of acoustics data types for I/O.
JLANG::JTYPELIST< JCOMPASS::JOrientation, JCOMPASS::JEvt >::typelist JCompassTypes_t
Type list of compass data types for I/O.
#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
JTYPELIST< SPE_TimeSlice, ExtendedSummary_TimeSlice, PhysicsEvent >::typelist JAntaresTypes_t
Type list of Antares DAQ data types for I/O.
JTYPELIST< Head, MultiHead, Evt >::typelist JAAnetTypes_t
Type list of Monte Carlo data types for I/O.
JTYPELIST< JAAnetTypes_t, JTriggerTypes_t >::typelist JAllDataTypes_t
Type list of Monte Carlo, trigger and DAQ data types for I/O.
Monte Carlo run header.
Definition JHead.hh:1236
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).
std::set< JROOTClassSelector > getROOTClassSelection(const bool option=false)
Get ROOT class selection.
Acoustic single fit.
Time-of-arrival data from acoustic piezo sensor or hydrophone.
Definition JToA.hh:28
Auxiliary class for recursive type list generation.
Definition JTypeList.hh:351
Auxiliary class for a type holder.
Definition JType.hh:19
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Definition JParser.hh:68