33{
36
38 JLimit_t& numberOfEvents = inputFile.getLimit();
40 double Q;
42
43 try {
44
45 JParser<> zap(
"Example program to monitor acoustic events.");
46
47 zap[
'f'] =
make_field(inputFile,
"output of JAcousticTriggerProcessor[.sh]");
52
53 zap(argc, argv);
54 }
55 catch(const exception &error) {
56 FATAL(error.what() << endl);
57 }
58
64
66
68
70
72
75 }
76
78
79 if (event->empty()) {
80 continue;
81 }
82
83 const double t1 = event->begin()->getToE();
84
86
87 summary[event->getID()] += 1;
88
90
91 for (JEvent::const_iterator i = event->begin(); i != event->end(); ++i) {
93 Q2.
put(log10(i->getQ()));
94 }
95
96 AddPoint(GA[event->getID()], t1, event->size());
100 AddPoint(GN[event->getID()], t1, event->getOverlays());
101 }
103
105
106 size_t N = 0;
107
108 for (const auto& i : summary) {
109 N += i.second;
110 }
111
112 for (const auto& i : summary) {
114 }
115 {
117 }
118 }
119
121
122 out << GA << GD << GQ <<
G1 << GN;
123
124 out.Write();
125 out.Close();
126}
#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 data structure for floating point format specification.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.