43 template<
class JBuild_t>
44 inline void process(
const JBuild_t& build,
51 typedef typename JBuild_t::value_type value_type;
55 build(event, router, back_inserter(
data));
57 h1.Fill((
double)
data.size());
68 int main(
int argc,
char **argv)
75 JLimit_t& numberOfEvents = inputFile.getLimit();
83 JParser<> zap(
"Example program to test hit building with DAQ events.");
87 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
94 catch(
const exception &error) {
95 FATAL(error.what() << endl);
113 const Int_t N = 5000;
115 TH1D h0(
"L0", NULL, N, -0.5, (Double_t) N - 0.5);
116 TH1D h1(
"L1", NULL, N, -0.5, (Double_t) N - 0.5);
117 TH1D h2(
"L2", NULL, N, -0.5, (Double_t) N - 0.5);
150 process(buildL0, router, *tev, h0);
151 process(buildL1, router, *tev, h1);
152 process(buildL2, router, *tev, h2);
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
Basic data structure for L0 hit.
Basic data structure for L1 hit.
Basic data structure for L2 hit.
Reduced data structure for L1 hit.
Basic data structure for R2 hit.
General purpose messaging.
#define DEBUG(A)
Message macros.
Direct access to module in detector data structure.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
ROOT TTree parameter settings of various packages.
Basic data structure for time and time over threshold information of hit.
Router for direct addressing of module data in detector data structure.
Utility class to parse command line options.
General purpose class for object reading from a list of file names.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
Template specialisation of L0 builder for JHitL0 data type.
Template specialisation of L0 builder for JHitR0 data type.
Template specialisation of L1 builder for JHitL1 data type.
Template specialisation of L1 builder for JHitR1 data type.
Template specialisation of L2 builder for JHitL2 data type.
Template specialisation of L2 builder for JHitR2 data type.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for defining the range of iterations of objects.