30 int main(
int argc,
char **argv)
42 JParser<> zap(
"Example program to monitor acoustic events.");
44 zap[
'f'] =
make_field(inputFile,
"output of JAcousticTriggerProcessor[.sh]");
45 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
60 while (inputFile.hasNext()) {
62 if (inputFile.getCounter()%100 == 0) {
63 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
66 const JEvent*
event = inputFile.next();
68 const double t1 =
event->begin()->getToA();
72 for (JEvent::const_iterator i = event->begin(); i !=
event->end(); ++i) {
73 QD.
put(i->getToA() - t1);
74 QQ.
put(log10(i->getQ()));
77 AddPoint(GA[event->getID()], t1,
event->size());
80 AddPoint(GN[event->getID()], t1,
event->getOverlays());
86 out << GA << GD << GQ << GN;
Utility class to parse command line options.
int main(int argc, char *argv[])
void AddPoint(TGraph *g1, const Double_t x, const Double_t y)
Add point to TGraph.
ROOT TTree parameter settings.
Dynamic ROOT object management.
Auxiliary class for defining the range of iterations of objects.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys...
I/O formatting auxiliaries.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void Write(TDirectory &out, const bool wm=false)
Write objects to file.
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
const JLimit & getLimit() const
Get limit.
#define DEBUG(A)
Message macros.