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);
83 JPMTParametersMap::Throw(
true);
85 if (!pmtParameters.is_valid()) {
86 FATAL(
"Invalid PMT parameters " << pmtParameters << endl);
110 while (inputFile.hasNext()) {
112 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
116 summaryRouter.update(summary);
118 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 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.
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.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
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.