42int main(
int argc,
char **argv)
50 JLimit_t& numberOfEvents = inputFile.getLimit();
57 JParser<> zap(
"Example program to simulate summary data.");
59 zap[
'f'] =
make_field(inputFile,
"input DAQ file");
62 zap[
'a'] =
make_field(detectorFile ,
"detector file");
68 catch(
const exception &error) {
69 FATAL(error.what() << endl);
85 FATAL(
"Invalid PMT parameters " << pmtParameters << endl);
98 FATAL(error.what() << endl);
115 summaryRouter.
update(summary);
Data structure for detector geometry and calibration.
Recording of objects on file according a format that follows from the file name extension.
General purpose messaging.
#define DEBUG(A)
Message macros.
Map of associated modules in detector.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Auxiliary class to define a range between two values.
int main(int argc, char **argv)
Scanning of objects from a single file according a format that follows from the extension of each fil...
Auxiliaries for creation of summary data.
ROOT TTree parameter settings of various packages.
void reset(JK40Simulator *k40Simulator)
Reset K40 simulator.
const JPMTSimulator & getPMTSimulator() const
Get PMT simulator.
Router for direct addressing of module data in detector data structure.
Default PMT simulation interface.
Auxiliary class for map of PMT parameters.
bool is_valid() const
Check validity of PMT parameters.
static void Throw(const bool option)
Enable/disable throw option.
Utility class to parse command line options.
Object reading from a list of files.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
Router for fast addressing of summary data in KM3NETDAQ::JDAQSummaryslice data structure as a functio...
void update(const JDAQSummaryslice *ps)
Update router.
CLB simulation based on run-by-run information.
K40 simulation based on run-by-run information.
PMT simulation based on run-by-run information.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for K40 rates.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Auxiliary class to create summary data.