41 int main(
int argc,
char **argv)
45 using namespace KM3NETDAQ;
56 JParser<> zap(
"Example program to simulate summary data.");
58 zap[
'f'] =
make_field(inputFile,
"input DAQ file");
60 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
61 zap[
'a'] =
make_field(detectorFile ,
"detector file");
67 catch(
const exception &error) {
68 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.
ROOT TTree parameter settings.
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.
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
Router for fast addressing of summary data in JDAQSummaryslice data structure as a function of the op...
General purpose messaging.
void reset(JK40Simulator *k40Simulator)
Reset K40 simulator.
PMT simulation based on run-by-run information.
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.
virtual const char * what() const
Get error message.
#define DEBUG(A)
Message macros.
Auxiliary class for K40 rates.
int main(int argc, char *argv[])