Fit function.
196 {
199
201
203
204
205
207
209
210 if (!in.empty()) {
212 }
213
215
217
218 double getZ() const { return z; }
219 double getP()
const {
return p; }
220
221 double z;
222 double p;
223 };
224
225 for (JEvt::const_iterator track = in.begin(); track != in.end(); ++track) {
226
229
231
232 for (const auto& module : input.data) {
233
235
236 pos.transform(R, tz.getPosition());
237
239
240 const double z = pos.getZ() - pos.getX() /
getTanThetaC();
242
243 const double p = module.getProbability(rates_Hz.getMultiplesRates(), T_ns + t);
244
245 data.push_back({ z, p });
246 }
247 }
248
249 double Zmin = 0.0;
250 double Zmax = 0.0;
251
253
255
256 vector<JHit_t>::const_iterator q1 = start.find(
data. begin(),
data. end());
257 vector<JHit_t>::const_reverse_iterator q2 = start.find(
data.rbegin(),
data.rend());
258
259 if (q1 !=
data.end() && q2 !=
data.rend()) {
260
261 vector<JHit_t>::const_iterator
p1 = q1;
if (
p1 !=
data. begin()) { --
p1; }
262 vector<JHit_t>::const_reverse_iterator p2 = q2;
if (p2 !=
data.rbegin()) { --p2; }
263
264 Zmin = 0.5 * (
p1->getZ() + q1->getZ());
265 Zmax = 0.5 * (p2->getZ() + q2->getZ());
266 }
267 }
268
270
271 fit.push_back(event());
272
273 out.push_back(fit);
274
275
276
282 }
283
284
285
287
288 copy(input.in.begin(), input.in.end(), back_inserter(out));
289
290 return out;
291 }
Data structure for fit of straight line paralel to z-axis.
Data structure for position in three dimensions.
JPosition3D & rotate(const JRotation3D &R)
Rotate.
static const int JSTART_ZMAX_M
end position of track see JRECONSTRUCTION::JMuonStart
static const int JPP_COVERAGE_POSITION
coverage of dynamic position calibration of this event
static const int JSTART_LENGTH_METRES
distance between projected positions on the track of optical modules for which the response does not ...
static const int JSTART_ZMIN_M
start position of track see JRECONSTRUCTION::JMuonStart
static const int JPP_COVERAGE_ORIENTATION
coverage of dynamic orientation calibration of this event
double getP(const double E1, const double E2, const double ED, const int M_min, const int M_max)
Get coincidence probability of two PMTs within one module due to random background.
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
double getKappaC()
Get average R-dependence of arrival time of Cherenkov light (a.k.a.
const double getInverseSpeedOfLight()
Get inverse speed of light.
double getTanThetaC()
Get average tangent of Cherenkov angle of water corresponding to group velocity.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JPosition3D getPosition(const JFit &fit)
Get position.
void copy(const JFIT::JEvt::const_iterator __begin, const JFIT::JEvt::const_iterator __end, Evt &out)
Copy tracks.
bool qualitySorter(const JFit &first, const JFit &second)
Comparison of fit results.
JDirection3D getDirection(const JFit &fit)
Get direction.
Auxiliary class to test history.
size_t numberOfPrefits
number of prefits
int Nmax2
maximal number for twofold observations
double Pmin1
minimal probability single observation
double Pmin2
minimal probability for twofold observations
Auxiliary class for start or end point evaluation.
Auxiliary class to set-up Hit.