30 int main(
int argc,
char **argv)
34 using namespace KM3NETDAQ;
43 JParser<> zap(
"Program to test ordered reading from a ROOT TTree.");
46 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
52 catch(
const exception& error) {
53 FATAL(error.what() << endl);
59 TH1D h0(
"h0", NULL, 401, -200.5, +200.5);
60 TH1D
h1(
"h1", NULL, 401, -200.5, +200.5);
71 STATUS(
"event: " << setw(10) <<
in.getCounter() <<
'\r');
DEBUG(endl);
74 Long64_t index = scan.find(*event);
81 frame_index =
event->getFrameIndex();
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
then for HISTOGRAM in h0 h1
Template definition for direct access of elements in ROOT TChain.
int getFrameIndex() const
Get frame index.
Auxiliary class for defining the range of iterations of objects.
int getFrameIndex(const double t_ns)
Get frame index for a given time in ns.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
const JLimit & getLimit() const
Get limit.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in