52 |
* @param calibFile_nHitX4 Path for the calibration text file, used for events with nHitX>=4. |
* @param calibFile_nHitX4 Path for the calibration text file, used for events with nHitX>=4. |
53 |
* @param nPar Number of parameters used for the Chi2 function. Maximum allowed: 5. Default: 5. |
* @param nPar Number of parameters used for the Chi2 function. Maximum allowed: 5. Default: 5. |
54 |
*/ |
*/ |
55 |
TrkChi2DeflTimeCut(const char *cutName, const char *calibFile_nHitX3, const char *calibFile_nHitX4, int nPar=5) : |
TrkChi2DeflTimeCut(const char *cutName, const char *trkAlg, const char *calibFile_nHitX3, const char *calibFile_nHitX4, int nPar=5) : |
56 |
PamCut(cutName), _calibFile_nHitX3(calibFile_nHitX3), _calibFile_nHitX4(calibFile_nHitX4), _nPar(nPar) { |
PamCut(cutName), _trkAlg(trkAlg), _calibFile_nHitX3(calibFile_nHitX3), _calibFile_nHitX4(calibFile_nHitX4), _nPar(nPar) { |
57 |
|
|
58 |
_chi2CutTable_nHitX3.open(_calibFile_nHitX3); |
_chi2CutTable_nHitX3.open(_calibFile_nHitX3); |
59 |
while (! _chi2CutTable_nHitX3.eof()) { |
while (! _chi2CutTable_nHitX3.eof()) { |
114 |
*/ |
*/ |
115 |
int Check(PamLevel2 *event); |
int Check(PamLevel2 *event); |
116 |
|
|
117 |
private: |
protected: |
118 |
|
|
119 |
|
const char *_trkAlg; |
120 |
|
|
121 |
|
|
122 |
|
private: |
123 |
|
|
124 |
virtual double _GetChi2(PamLevel2 *event); |
virtual double _GetChi2(PamLevel2 *event); |
125 |
|
|