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) {
71 while (inputFile.hasNext()) {
73 if (inputFile.getCounter()%100 == 0) {
77 const JEvent*
event = inputFile.next();
83 const double t1 =
event->begin()->getToE();
87 summary[
event->getID()] += 1;
91 for (JEvent::const_iterator i = event->begin(); i !=
event->end(); ++i) {
96 AddPoint(
GA[event->getID()], t1, event->size());
100 AddPoint(
GN[event->getID()], t1, event->getOverlays());
104 if (
T_s.getUpperLimit() >
T_s.getLowerLimit()) {
108 for (
const auto& i : summary) {
112 for (
const auto& i : summary) {
113 STATUS(
setw(4) << i.first <<
' ' <<
FIXED(5,2) << 60 * i.second / (
T_s.getUpperLimit() -
T_s.getLowerLimit()) <<
" [min^-1]" <<
endl);
116 STATUS(
setw(4) <<
" " <<
' ' <<
FIXED(5,2) << 60 * N / (
T_s.getUpperLimit() -
T_s.getLowerLimit()) <<
" [min^-1]" <<
endl);
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.
Template definition of a multi-dimensional oscillation probability interpolation table.
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.