77 JParser<> zap(
"Auxiliary program to write time slices with random data.");
95 catch(
const exception &error) {
102 FATAL(
"Invalid number of output files; should be 1 or 2." <<
endl);
112 if (pmtParameters.
getQE() != 1.0) {
114 WARNING(
"Correct background rates with global efficiency " << pmtParameters.
getQE() <<
endl);
143 FATAL(
"Run-by-run simulation yields no input." <<
endl);
157 NOTICE(
"Using fixed rates [Hz]: " << rates_Hz <<
endl);
176 for (
size_t i = 0; i !=
outputFile.size(); ++i) {
190 for ( ; counter != numberOfSlices; ) {
194 int frame_index = counter + 1;
219 outputFile.rbegin()->put(timeslice); ++counter;
223 for (
size_t i = 1; i <=
recycling.first && counter != numberOfSlices; ++i) {
235 outputFile.rbegin()->put(timeslice); ++counter;
259 copy(buffer, header);
265 for (
size_t i = 0; i !=
outputFile.size(); ++i) {
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.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
ROOT TTree parameter settings of various packages.
void push(T JHead::*pd)
Push given data member to Head.
static double getSigma()
Get intrinsic time smearing of K40 coincidences.
static void setSigma(const double sigma)
Set intrinsic time smearing of K40 coincidences.
Default implementation of the simulation of K40 background.
Default PMT simulation interface.
Auxiliary class for map of PMT parameters.
double getQE(const JPMTIdentifier &id) const
Get QE of given PMT.
Auxiliary class for CPU timing and usage.
virtual const char * what() const override
Get error message.
static void Throw(const bool option)
Enable/disable throw option.
Template definition of a multi-dimensional oscillation probability interpolation table.
Router for fast addressing of summary data in KM3NETDAQ::JDAQSummaryslice data structure as a functio...
CLB simulation based on run-by-run information.
K40 simulation based on run-by-run information.
Data structure for UTC time.
static const JDAQUTCExtended & getInstance()
Get arbitrary offset (e.g.
void copy(const Head &from, JHead &to)
Copy header from from to to.
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).
double getLivetime(const std::string &file_name)
Get data taking live time.
KM3NeT DAQ data structures and auxiliaries.
double getFrameTime()
Get frame time duration.
void setDAQLongprint(const bool option)
Set DAQ print option.
int main(int argc, char **argv)
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
double livetime_s
Live time [s].
double livetime_s
Live time [s].
Template definition of random value generator.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for K40 rates.
void correct(const double QE)
Correct rates for global efficiency,.
Auxiliary class to select summary data (KM3NETDAQ::JDAQSummaryslice) from the specified raw data file...
Timeslice with random data.
void recycle(const double T_ns)
Recycle time slice by randomly shuffling time intervals of data.