38 inline void print(std::ostream& out,
const char*
const title, T __begin, T __end)
44 for (T i = __begin; i != __end; ++i) {
45 out <<
' ' << setw(4) << (int) i->getT();
58 int main(
int argc,
char **argv)
71 JParser<> zap(
"Example program to test hit pre-processing with user data."\
72 "\nformat: -u \"(<PMT> <time> <time-over-threshold>)+\"");
76 zap[
'O'] =
make_field(option) = JPreprocessor::getOptions();
81 catch(
const exception &error) {
82 FATAL(error.what() << endl);
90 const JModule module = getModule<JKM3NeT_t>(1001);
96 JHit::setSlewing(
false);
104 timeslice.push_back(frame);
111 JSuperFrame2D_t& buffer = JSuperFrame2D_t::demultiplex(timeslice[0], module);
118 buildL0(buffer, back_inserter(output));
120 print(cout,
"L0:", output.begin(), output.end());
129 buildL0(timeslice, router, back_inserter(output));
131 print(cout,
"L0:", output.begin(), output.end());
139 buildL1(timeslice, router, back_inserter(output));
141 print(cout,
"L1:", output.begin(), output.end());
149 buildL2(timeslice, router, back_inserter(output));
151 print(cout,
"L2:", output.begin(), output.end());
Data structure for detector geometry and calibration.
Basic data structure for L0 hit.
Reduced data structure for L1 hit.
Basic data structure for R2 hit.
Match operator for consecutive hits.
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
void print(std::ostream &out, const char *const title, T __begin, T __end)
Print data.
int main(int argc, char **argv)
Auxiliaries for pre-processing of hits.
Router for direct addressing of module data in detector data structure.
Data structure for a composite optical module.
int getID() const
Get identifier.
Utility class to parse command line options.
Template specialisation of L0 builder for JHitL0 data type.
Template specialisation of L0 builder for JHitR0 data type.
Template specialisation of L1 builder for JHitR1 data type.
Template specialisation of L2 builder for JHitR2 data type.
2-dimensional frame with time calibrated data from one optical module.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
Data frame of one optical module.
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
void setDAQLongprint(const bool option)
Set DAQ print option.
Auxiliary data structure for L1 build parameters.
void setPreprocessor(const JPreprocessor::JOption_t option, const match_type &match)
Set pre-processor of consecutive hits.
Data structure for L2 parameters.
Auxiliary class for specifying the way of pre-processing of hits.