33{
37
39
45
46 try {
47
48 JParser<> zap(
"Example program to histogram trigger efficiency.");
49
55
57 }
58 catch(const exception &error) {
60 }
61
62
63
64
66
68 X.getNumberOfBins(), X.getLowerLimit(), X.getUpperLimit(),
69 Y.getNumberOfBins(), Y.getLowerLimit(), Y.getUpperLimit());
71 X.getNumberOfBins(), X.getLowerLimit(), X.getUpperLimit(),
72 Y.getNumberOfBins(), Y.getLowerLimit(), Y.getUpperLimit());
74 X.getNumberOfBins(), X.getLowerLimit(), X.getUpperLimit(),
75 Y.getNumberOfBins(), Y.getLowerLimit(), Y.getUpperLimit());
76
77 h2.Sumw2();
78
79
80 while (inputFile.hasNext()) {
81
83
85
86 const Evt*
event = ps;
87
89
91
92 if (
hit != event->mc_hits.cend() &&
primary != event->mc_trks.cend()) {
94 }
95 }
97
98
100
102
103 const Evt*
event = in.next();
104
106
108
109 if (
hit != event->mc_hits.cend() &&
primary != event->mc_trks.cend()) {
111 }
112 }
114
115
116 for (
Int_t i = 1; i <= h1.GetNbinsX(); ++i) {
117 for (
Int_t j = 1;
j <= h1.GetNbinsY(); ++
j) {
118
120 const Double_t z0 = h0.GetBinContent(i,
j);
121
122 if (z0 != 0.0) {
123
126
127 h2.SetBinContent(i,
j,
z3);
128 h2.SetBinError (i,
j,
w3);
129
130 } else {
131 ERROR(
"Bin " << h0.GetName() <<
"[" << i <<
"," <<
j <<
"] empty." <<
endl);
132 }
133 }
134 }
135
136 out.Write();
137 out.Close();
138}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
bool is_initialstate(const Trk &track)
Test whether given track corresponds to an initial state particle.
bool is_noise(const Hit &hit)
Verify hit origin.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
General purpose class for multiple pointers.