31{
34
36 JLimit_t& numberOfEvents = inputFile.getLimit();
38 double Q;
40
41 try {
42
43 JParser<> zap(
"Example program to monitor acoustic events.");
44
45 zap[
'f'] =
make_field(inputFile,
"output of JAcousticTriggerProcessor[.sh]");
50
51 zap(argc, argv);
52 }
53 catch(const exception &error) {
54 FATAL(error.what() << endl);
55 }
56
62
64
67 }
68
70
71 if (event->empty()) {
72 continue;
73 }
74
75 const double t1 = event->begin()->getToE();
76
78
79 for (JEvent::const_iterator i = event->begin(); i != event->end(); ++i) {
80 Q1.put(i->getToE());
81 Q2.
put(log10(i->getQ()));
82 }
83
84 AddPoint(GA[event->getID()], t1, event->size());
85 AddPoint(GD[event->getID()], t1, Q1.getSTDev());
88 AddPoint(GN[event->getID()], t1, event->getOverlays());
89 }
91
93
94 out << GA << GD << GQ <<
G1 << GN;
95
96 out.Write();
97 out.Close();
98}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Double_t G1(const Double_t x)
Integral of method g1.
Utility class to parse command line options.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys.
General purpose class for object reading from a list of file names.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
void AddPoint(TGraph *g1, const Double_t x, const Double_t y)
Add point to TGraph.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.