31 int main(
int argc,
char **argv)
35 using namespace KM3NETDAQ;
45 JParser<> zap(
"Example program to histogram timeslice data.");
49 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
55 catch(
const exception& error) {
56 FATAL(error.what() << endl);
63 JManager<string, TH1D> h0(
new TH1D(
"h0[%]", NULL, numeric_limits<JDAQHit::JPMT_t>::max(), -0.5, numeric_limits<JDAQHit::JPMT_t>::max() - 0.5));
64 JManager<string, TH1D> h1(
new TH1D(
"h1[%]", NULL, numeric_limits<JDAQHit::JTOT_t>::max(), -0.5, numeric_limits<JDAQHit::JTOT_t>::max() - 0.5));
75 STATUS(
"event: " << setw(10) << counter <<
'\r');
DEBUG(endl);
83 for (JDAQTimeslice::const_iterator frame = timeslice->begin(); frame != timeslice->end(); ++frame) {
87 p0->Fill(hit->getPMT());
88 p1->Fill(hit->getToT());
89 p2->Fill(hit->getT());
Utility class to parse command line options.
ROOT TTree parameter settings.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
then for HISTOGRAM in h0 h1
Long64_t counter_type
Type definition for counter.
Dynamic ROOT object management.
Auxiliary class for multiplexing object iterators.
Auxiliary class to manage set of compatible ROOT objects (e.g.
Auxiliary class for defining the range of iterations of objects.
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void Write(TDirectory &out, const bool wm=false)
Write objects to file.
double getFrameTime()
Get frame time duration.
virtual const pointer_type & next()
Get next element.
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.
JDAQPMTIdentifier PMT
Command line options.
virtual bool hasNext()
Check availability of next element.
const JLimit & getLimit() const
Get limit.
#define DEBUG(A)
Message macros.
int main(int argc, char *argv[])