59{
63
65
67 JLimit_t& numberOfEvents = inputFile.getLimit();
72
73 try {
74
75 JParser<> zap(
"Example program to analyse track fit results from Evt formatted data.");
76
83
85 }
86 catch(const exception& error) {
88 }
89
90
92
94 try {
96 }
99 }
100 }
101
103
105
106 TH1D hx(
"hx",
NULL, 100, -3.0, +2.3);
110 TH1D h1(
"h1",
NULL, 100, -50.0, +50.0);
111
112
113 while (inputFile.hasNext()) {
114
116
117 const Evt* evt = inputFile.next();
118
119
121
123
125
127
129
130 ta.move(
ta.getIntersection(
tb), getSpeedOfLight(), gWater);
131 tb.move(
tb.getIntersection(
ta), getSpeedOfLight(), gWater);
132
134
136 hd.Fill((
ta.getPosition() -
tb.getPosition()).getLength());
137 ht.Fill(
ta.getT() -
tb.getT());
139 }
140
142
143 if (router.hasModule(i->dom_id)) {
144
146
147 h1.Fill(
hit.getT() -
tb.getT(
hit.getPosition()));
148 }
149 }
150 }
151 }
153
154 out.Write();
155 out.Close();
156}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Router for direct addressing of module data in detector data structure.
Template definition of a multi-dimensional oscillation probability interpolation table.
Data structure for L0 hit.
JTrack3E getTrack(const Trk &track)
Get track.
bool has_muon(const Evt &evt)
Test whether given event has a muon.
const Trk & get_muon(const Evt &evt)
Get first muon from the event tracklist.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
double getAngle(const JQuaternion3D &first, const JQuaternion3D &second)
Get space angle between quanternions.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
double getTimeSinceRTS(const int frame_index)
Get time in ns since last RTS for a given frame index.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
double mc_t
MC: time where the mc-event was put in the timeslice, since start of run (offset+frameidx*timeslice_d...
std::vector< Hit > hits
list of hits
Type definition of range.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.