32 int main(
int argc,
char **argv)
36 using namespace KM3NETDAQ;
48 JParser<> zap(
"Example program to monitor event duration.");
53 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
54 zap[
'T'] =
make_field(T_ns,
"Time limit for event duration [ns]") = 10.0e3;
60 catch(
const exception& error) {
61 FATAL(error.what() << endl);
76 TH1D h1(
"h1", NULL, 100, 0.0, 10.0e3);
80 while (inputFile.hasNext()) {
82 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
107 NOTICE(
"Number of event with duration beyond " <<
FIXED(9,0) << T_ns <<
" [ns] " <<
N << endl);
Utility class to parse command line options.
Direct access to PMT data in detector data structure for DAQ hits.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Auxiliary data structure for floating point format specification.
double getTime(const Hit &hit)
Get true time of hit.
Data structure for detector geometry and calibration.
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structur...
Auxiliary class for defining the range of iterations of objects.
#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...
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Auxiliary class to define a range between two values.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
#define QAQC(A)
QA/QC output macro.
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
const JPMT & getPMT(const JDAQKeyHit &hit) const
Get PMT parameters.
int qaqc
QA/QC file descriptor.
JTriggerCounter_t next()
Increment trigger counter.
#define DEBUG(A)
Message macros.