42 int main(
int argc,
char **argv)
46 using namespace KM3NETDAQ;
57 JParser<> zap(
"Example program to simulate summary data.");
59 zap[
'f'] =
make_field(inputFile,
"input DAQ file");
61 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
62 zap[
'a'] =
make_field(detectorFile ,
"detector file");
68 catch(
const exception &error) {
69 FATAL(error.what() << endl);
82 JPMTParametersMap::Throw(
true);
84 if (!pmtParameters.is_valid()) {
85 FATAL(
"Invalid PMT parameters " << pmtParameters << endl);
109 while (inputFile.hasNext()) {
111 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
115 summaryRouter.update(summary);
117 summaryRouter.correct(dynamic_cast<const JPMTDefaultSimulatorInterface&>(simbad.
getPMTSimulator()));
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Recording of objects on file according a format that follows from the file name extension.
Router for direct addressing of module data in detector data structure.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
const JPMTSimulator & getPMTSimulator() const
Get PMT simulator.
Data structure for detector geometry and calibration.
K40 simulation based on run-by-run information.
Scanning of objects from a single file according a format that follows from the extension of each fil...
Auxiliary class for defining the range of iterations of objects.
I/O formatting auxiliaries.
Auxiliaries for creation of summary data.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
CLB simulation based on run-by-run information.
Auxiliary class to create summary data.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
Auxiliary class for map of PMT parameters.
Router for fast addressing of summary data in KM3NETDAQ::JDAQSummaryslice data structure as a functio...
General purpose messaging.
void reset(JK40Simulator *k40Simulator)
Reset K40 simulator.
PMT simulation based on run-by-run information.
virtual const char * what() const override
Get error message.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Auxiliary class to define a range between two values.
Utility class to parse command line options.
Map of associated modules in detector.
Object reading from a list of files.
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
Auxiliary class for K40 rates.
#define DEBUG(A)
Message macros.