49 out <<
"module " << frame->getModuleID();
52 out << ' ' << JHitToolkit<T>::getT(*hit);
66 int main(
int argc,
char **argv)
69 using namespace KM3NETDAQ;
78 JParser<> zap(
"Example program to test hit coincidence building with user data."\
79 "\nformat: -u \"(<PMT> <time> <time-over-threshold>)+\"");
87 catch(
const exception &error) {
88 FATAL(error.what() << endl);
91 using namespace KM3NETDAQ;
103 const JModule module = getModule<JKM3NeT_t>(1001);
129 timeslice.push_back(frame);
131 cout << timeslice << endl;
135 const JSuperFrame2D_t& buffer = JSuperFrame2D_t::demultiplex(timeslice[0], module);
137 JTimeslice_t timesliceL0;
138 JTimeslice_t timesliceL1;
139 JTimeslice_t timesliceL2;
141 timesliceL0.push_back(JSuperFrame1D_t(buffer));
142 timesliceL1.push_back(JSuperFrame1D_t(
JDAQChronometer(), module.getID(), module.getPosition()));
143 timesliceL2.push_back(JSuperFrame1D_t(
JDAQChronometer(), module.getID(), module.getPosition()));
145 buildL1(buffer, back_inserter(timesliceL1[0]));
146 buildL2(buffer, timesliceL1[0], back_inserter(timesliceL2[0]));
148 print(cout,
"Trigger L0", timesliceL0);
149 print(cout,
"Trigger L1", timesliceL1);
150 print(cout,
"Trigger L2", timesliceL2);
Utility class to parse command line options.
std::vector< value_type >::const_iterator const_iterator
int main(int argc, char *argv[])
Data structure for a composite optical module.
Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the op...
void configure(const JDAQTimeslice ×lice)
Configure.
Router for direct addressing of module data in detector data structure.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Data structure for detector geometry and calibration.
1-dimensional frame with time calibrated data from one optical module.
void setDAQLongprint(const bool option)
Set DAQ print option.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
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.
do set_variable DETECTOR_TXT $WORKDIR detector
Data frame of one optical module.
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module.
Time slice with calibrated data.