Go to the documentation of this file.
47 out <<
"module " << frame->getModuleID();
50 out << ' ' << JHitToolkit<T>::getT(*hit);
64 int main(
int argc,
char **argv)
76 JParser<> zap(
"Example program to test hit coincidence building with user data."\
77 "\nformat: -u \"(<PMT> <time> <time-over-threshold>)+\"");
85 catch(
const exception &error) {
86 FATAL(error.what() << endl);
97 cout << parameters << endl;
111 typedef double hit_type;
118 const JBuildL1_t buildL1(parameters);
119 const JBuildL2_t buildL2(parameters.
L2);
128 frame.
add(data.size(), data.data());
130 timeslice.push_back(frame);
132 cout << timeslice << endl;
136 const JSuperFrame2D_t& buffer = JSuperFrame2D_t::demultiplex(timeslice[0], module);
138 JTimeslice_t timesliceL0;
139 JTimeslice_t timesliceL1;
140 JTimeslice_t timesliceL2;
142 timesliceL0.push_back(JSuperFrame1D_t(buffer));
146 buildL1(buffer, back_inserter(timesliceL1[0]));
147 buildL2(buffer, timesliceL1[0], back_inserter(timesliceL2[0]));
149 print(cout,
"Trigger L0", timesliceL0);
150 print(cout,
"Trigger L1", timesliceL1);
151 print(cout,
"Trigger L2", timesliceL2);
int numberOfBins
number of bins for lookup table of timeslice
int main(int argc, char **argv)
void set(const double DMax_m=0.0)
Set dependent trigger parameters.
T & getInstance(const T &object)
Get static instance from temporary object.
double TMaxLocal_ns
maximal time difference between L0 hits for L1
Data structure for all trigger parameters.
Empty structure for specification of parser element that is initialised (i.e.
1-dimensional frame with time calibrated data from one optical module.
Utility class to parse command line options.
JL2Parameters L2
L2 processing.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class to build JDAQTimeslice for L1 timeslice.
void setID(const int id)
Set identifier.
int getID() const
Get identifier.
Time slice with calibrated data.
Data structure for a composite optical module.
Router for direct addressing of module data in detector data structure.
void configure(const JDAQTimeslice ×lice)
Configure.
std::vector< value_type >::const_iterator const_iterator
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module.
const JPosition3D & getPosition() const
Get position.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
KM3NeT DAQ data structures and auxiliaries.
Data frame of one optical module.
void setDAQLongprint(const bool option)
Set DAQ print option.
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
2-dimensional frame with time calibrated data from one optical module.
double TMaxLocal_ns
maximal time difference [ns]
Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the op...