32int main(
int argc,
char **argv)
38 JLimit_t& numberOfEvents = inputFile.getLimit();
45 JParser<> zap(
"Example program to monitor acoustic events.");
47 zap[
'f'] =
make_field(inputFile,
"output of JAcousticTriggerProcessor[.sh]");
55 catch(
const exception &error) {
56 FATAL(error.what() << endl);
83 const double t1 =
event->begin()->getToE();
87 summary[
event->getID()] += 1;
91 for (JEvent::const_iterator i = event->begin(); i != event->end(); ++i) {
93 Q2.
put(log10(i->getQ()));
96 AddPoint(GA[event->getID()], t1, event->size());
100 AddPoint(GN[event->getID()], t1, event->getOverlays());
108 for (
const auto& i : summary) {
112 for (
const auto& i : summary) {
122 out << GA << GD << GQ <<
G1 << GN;
int main(int argc, char **argv)
ROOT TTree parameter settings.
Dynamic ROOT object management.
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Double_t G1(const Double_t x)
Integral of method g1.
Auxiliary class to define a range between two values.
Utility class to parse command line options.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys.
void Write(TDirectory &out, const bool wm=false)
Write objects to file.
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.