/[PAMELA software]/PamCut/TrkCuts/TrkChi2XDeflTimeCut/TrkChi2XDeflTimeCut.h
ViewVC logotype

Contents of /PamCut/TrkCuts/TrkChi2XDeflTimeCut/TrkChi2XDeflTimeCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 25 17:38:09 2015 UTC (9 years, 8 months ago) by pam-fi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
File MIME type: text/plain
Error occurred while calculating annotation data.
Port to 10th reduction.

Some cuts have been modified to use the extended track objects introduced with 10th reduction software. Some others have still to be ported.
Git ref: 4bd0c70baf73c56bddc08dca365cbff243ad8bc8
(Nicola)

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_ */

  ViewVC Help
Powered by ViewVC 1.1.23