Go to the documentation of this file.
39 int main(
int argc,
char **argv)
47 JLimit_t& numberOfEvents = inputFile.getLimit();
55 JParser<> zap(
"Example program to simulate summary data.");
57 zap[
'f'] =
make_field(inputFile,
"input DAQ file");
59 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
60 zap[
'a'] =
make_field(detectorFile ,
"detector file");
67 catch(
const exception &error) {
68 FATAL(error.what() << endl);
82 JPMTParametersMap::Throw(
true);
85 FATAL(
"Invalid PMT parameters " << pmtParameters << endl);
115 summaryRouter.
update(summary);
void correct(const JPMTDefaultSimulatorInterface &simulator)
Correct measured singles rates for the probability that a hit survives the simulation of the PMT.
Data structure for range of PMT rates.
counter_type getCounter() const
Get counter.
Auxiliary class for defining the range of iterations of objects.
Empty structure for specification of parser element that is initialised (i.e.
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
virtual const pointer_type & next()
Get next element.
Utility class to parse command line options.
PMT simulation based on run-by-run information.
K40 simulation based on run-by-run information.
virtual bool hasNext()
Check availability of next element.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for K40 rates.
Auxiliary class to create summary data.
Auxiliary class for map of PMT parameters.
int main(int argc, char **argv)
Router for fast addressing of summary data in JDAQSummaryslice data structure as a function of the op...
Router for direct addressing of module data in detector data structure.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
#define DEBUG(A)
Message macros.
void update(JDAQSummaryslice *ps)
Update router.
KM3NeT DAQ data structures and auxiliaries.
bool is_valid() const
Check validity of PMT parameters.
virtual const char * what() const
Get error message.
const JPMTSimulator & getPMTSimulator() const
Get PMT simulator.
Object reading from a list of files.
void reset(JK40Simulator *k40Simulator)
Reset K40 simulator.