72 JLimit_t& numberOfEvents = inputFile.getLimit();
82 JParser<> zap(
"Auxiliary program to re-trigger event data.");
96 catch(
const exception &error) {
118 NOTICE(
"Set trigger parameters from input." <<
endl);
121 FATAL(
"No trigger parameters from input." <<
endl);
127 if (parameters.disableHighRateVeto) {
129 NOTICE(
"Disabling high-rate veto of all PMTs." <<
endl);
136 parameters.triggerNB.write.prescale = 1;
144 if (parameters.writeSummary()) {
WARNING(
"Discard writeSummary option during reprocesing of data." <<
endl); }
145 if (parameters.writeL1()) {
WARNING(
"Discard writeL1 option during reprocesing of data." <<
endl); }
146 if (parameters.writeL2()) {
WARNING(
"Discard writeL2 option during reprocesing of data." <<
endl); }
147 if (parameters.writeSN()) {
WARNING(
"Discard writeSN option during reprocesing of data." <<
endl); }
159 const JBuildL1_t buildL1(parameters);
160 const JBuildL2_t buildL2(parameters.L2);
161 const JBuildL2_t buildSN(parameters.SN);
162 const JBuildL2_t buildNB(parameters.NB);
186 if (
scan.getEntries() == 0) {
190 while (inputFile.hasNext()) {
221 const JModule&
module = moduleRouter.getModule(super_frame->getModuleID());
226 buffer.applyHighRateVeto(parameters.highRateVeto_Hz);
234 if (parameters.triggerNB.enabled) {
236 JSuperFrame2D_t::iterator __end =
partition(buffer.begin(), buffer.end(), parameters.triggerNB.pmts);
238 if (buffer.begin() != __end) {
245 JSuperFrame1D_t zbuf;
271 JTimeslice_t::value_type tv(
super_frame->getDAQChronometer(),
287 if (parameters.triggerNB.enabled) {
293 if (parameters.triggerNB.write()) {
300 parameters.TMaxLocal_ns,
301 parameters.triggerNB.DMax_m,
302 getTimeRange(parameters.triggerNB));
325 parameters.TMaxLocal_ns,
326 getTimeRange(parameters));
KM3NeT DAQ constants, bit handling, etc.
Data structure for detector geometry and calibration.
Recording of objects on file according a format that follows from the file name extension.
Basic data structure for L0 hit.
Basic data structure for L1 hit.
General purpose messaging.
#define DEBUG(A)
Message macros.
Direct access to module in detector data structure.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Implementation of pipe operation for object iterators.
Scanning of objects from a single file according a format that follows from the extension of each fil...
ROOT TTree parameter settings of various packages.
int main(int argc, char **argv)
Basic data structure for time and time over threshold information of hit.
Router for direct addressing of module data in detector data structure.
bool hasModule(const JObjectID &id) const
Has module.
Data structure for a composite optical module.
Template definition of a multi-dimensional oscillation probability interpolation table.
Template definition for direct access of elements in ROOT TChain.
JTriggerbit_t getTriggerBit() const
Get the trigger bit.
Auxiliary class to build KM3NETDAQ::JDAQEvent for a triggered event.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
int getFrameIndex() const
Get frame index.
JTriggerCounter_t getCounter() const
Get trigger counter.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
double getMaximalDistance(const JDetector &detector, const bool option=false)
Get maximal distance between modules in detector.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JTriggerParameters getTriggerParameters(const JMultipleFileScanner_t &file_list)
Get trigger parameters.
KM3NeT DAQ data structures and auxiliaries.
double getFrameTime()
Get frame time duration.
void setDAQLongprint(const bool option)
Set DAQ print option.
double getRTS()
Get TDC dynamic range.
static const int HIGH_RATE_VETO_DISABLE
Enable (disable) use of high-rate veto test if this status bit is 0 (1);.
Match of two events considering overlap in time and position.
Transmission with position.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for ROOT class selection.
void remove()
Remove data type.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the op...
void configure(const JDAQTimeslice ×lice)
Configure.