48 out <<
"module " << frame->getModuleID();
51 out << ' ' << JHitToolkit<T>::getT(*hit);
65 int main(
int argc,
char **argv)
68 using namespace KM3NETDAQ;
77 JParser<> zap(
"Example program to test hit coincidence building with user data."\
78 "\nformat: -u \"(<PMT> <time>)+\"");
86 catch(
const exception &error) {
87 FATAL(error.what() << endl);
90 using namespace KM3NETDAQ;
98 cout << parameters << endl;
134 timeslice.push_back(frame);
137 cout << timeslice << endl;
141 const JSuperFrame2D_t& buffer = JSuperFrame2D_t::demultiplex(timeslice[0], module);
151 buildL1(buffer, back_inserter(timesliceL1[0]));
152 buildL2(buffer, timesliceL1[0], back_inserter(timesliceL2[0]));
154 print(cout,
"Trigger L0", timesliceL0);
155 print(cout,
"Trigger L1", timesliceL1);
156 print(cout,
"Trigger L2", timesliceL2);
Utility class to parse command line options.
std::vector< value_type >::const_iterator const_iterator
Data structure for all trigger parameters.
Data structure for a composite optical module.
JBuildL2< hit_type > JBuildL2_t
void configure(const JDAQTimeslice ×lice)
Configure.
Router for direct addressing of module data in detector data structure.
Empty structure for specification of parser element that is initialised (i.e.
JSuperFrame2D< hit_type > JSuperFrame2D_t
Data structure for detector geometry and calibration.
1-dimensional frame with time calibrated data from one optical module.
JBuildL1< hit_type > JBuildL1_t
void setDAQLongprint(const bool option)
Set DAQ print option.
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
T & getInstance(const T &object)
Get static instance from temporary object.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the op...
JTimeslice< hit_type > JTimeslice_t
General purpose messaging.
Direct access to module in detector data structure.
Auxiliary class to build JDAQTimeslice for L1 timeslice.
Utility class to parse command line options.
2-dimensional frame with time calibrated data from one optical module.
Data frame of one optical module.
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module.
Time slice with calibrated data.
JSuperFrame1D< hit_type > JSuperFrame1D_t
int main(int argc, char *argv[])