1 |
/* |
2 |
* TrkChi2XDeflTimeCut.h |
3 |
* |
4 |
* Created on: 6-oct-2009 |
5 |
* Author: S. Ricciarini |
6 |
*/ |
7 |
|
8 |
/*! @file TrkChi2XDeflTimeCut.h The TrkChi2XDeflTimeCut class definition file */ |
9 |
|
10 |
#ifndef TRKCHI2XDEFLTIMECUT_H_ |
11 |
#define TRKCHI2XDEFLTIMECUT_H_ |
12 |
|
13 |
#include "../TrkChi2DeflTimeCut/TrkChi2DeflTimeCut.h" |
14 |
|
15 |
/*! @brief The tracker chi2 for X view vs deflection cut. |
16 |
* |
17 |
* Events whose track has been fitted with a chi2 greater than Chi2(eta) are discarded. |
18 |
* Chi2(eta) is a function which gives the maximum value of chi2 associated to a certain |
19 |
* deflection eta; in current implementation it is parameterized as: |
20 |
* |
21 |
* Chi2(eta) = p0 + p1 * eta^2 + p2 * eta ^4 |
22 |
* |
23 |
* where p0, p1 and p2 are parameters. These are read from a file, and are supposed to be |
24 |
* computed month by month. |
25 |
* |
26 |
*/ |
27 |
|
28 |
class TrkChi2XDeflTimeCut: public TrkChi2DeflTimeCut { |
29 |
|
30 |
public: |
31 |
/*! @brief Constructor. |
32 |
* |
33 |
* @param cutName The cut's name. |
34 |
* @param calibFile1 Path for the NX=3 calibration file. See #TrkChi2DeflTimeCut. |
35 |
* @param calibFile2 Path for the NX>=4 calibration file. See #TrkChi2DeflTimeCut. |
36 |
*/ |
37 |
TrkChi2XDeflTimeCut(const char *cutName, const char *trkAlg, const char *calibFile_nHitX3, const char *calibFile_nHitX4, int nPar=5) : |
38 |
TrkChi2DeflTimeCut(cutName, trkAlg, calibFile_nHitX3, calibFile_nHitX4, nPar) { |
39 |
} |
40 |
|
41 |
/*! @brief Destructor. */ |
42 |
~TrkChi2XDeflTimeCut() { |
43 |
} |
44 |
|
45 |
private: |
46 |
double _GetChi2(PamLevel2 *event); |
47 |
|
48 |
}; |
49 |
#endif /* TRKCHI2XDEFLTIMECUT_H_ */ |