StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuTrackEmu.h
1 // -*- mode: c++;-*-
2 // $Id: StMuTrackEmu.h,v 1.13 2012/03/23 05:44:20 pibero Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STMUTRACKEMU_H
5 #define STMUTRACKEMU_H
6 
7 #include "TVector3.h"
8 
9 class StMuTrackEmu {
10 
11 public:
12 
13  StMuTrackEmu()
14  : _px(0)
15  , _py(0)
16  , _pz(0)
17  , _flag(0)
18  , _nHits(0)
19  , _charge(0)
20  , _nHitsPoss(0)
21  , _nHitsDedx(0)
22  , _nHitsFit(0)
23  , _nSigmaPion(0)
24  , _nSigmaKaon(0)
25  , _nSigmaProton(0)
26  , _nSigmaElectron(0)
27  , _Tdca(0)
28  , _dcaX(0)
29  , _dcaY(0)
30  , _dcaZ(0)
31  , _dcaD(0)
32  , _chi2(0)
33  , _chi2prob(0)
34  , _BField(0)
35  , _bemcRadius(0)
36  , _etaext(0)
37  , _phiext(0)
38  , _exitTowerId(0)
39  , _exitDetectorId(0)
40  , _dEdx(0)
41  , _beta(0)
42  , _trackIndex(0)
43  , _idTruth(0)
44  , _qaTruth(0)
45  , _id(0)
46  , _detectorId(0)
47  , _btofTrayId(0)
48  , _nSigmaTofPion(0)
49  , _nSigmaTofKaon(0)
50  , _nSigmaTofProton(0)
51  , _nSigmaTofElectron(0)
52  { }
53 
54  virtual ~StMuTrackEmu() { }
55 
56  double px() const { return _px; }
57  double py() const { return _py; }
58  double pz() const { return _pz; }
59  short flag() const { return _flag; }
60  unsigned short nHits() const { return _nHits; }
61  Short_t charge() const { return _charge; }
62  unsigned short nHitsPoss() const { return _nHitsPoss; }
63  unsigned short nHitsDedx() const { return _nHitsDedx; }
64  unsigned short nHitsFit() const { return _nHitsFit; }
65  double nSigmaPion() const { return _nSigmaPion; }
66  double nSigmaKaon() const { return _nSigmaKaon; }
67  double nSigmaProton() const { return _nSigmaProton; }
68  double nSigmaElectron() const { return _nSigmaElectron; }
69  double Tdca() const { return _Tdca; }
70  double dcaX() const { return _dcaX; }
71  double dcaY() const { return _dcaY; }
72  double dcaZ() const { return _dcaZ; }
73  double dcaD() const { return _dcaD; }
74  double chi2() const { return _chi2; }
75  double chi2prob() const { return _chi2prob; }
76  double BField() const { return _BField; }
77  double bemcRadius() const { return _bemcRadius; }
78  double etaext() const { return _etaext; }
79  double phiext() const { return _phiext; }
80  short exitTowerId() const { return _exitTowerId; }
81  short exitDetectorId() const { return _exitDetectorId; }
82  double dEdx() const { return _dEdx; }
83  double beta() const { return _beta; }
84  const TVector3& firstPoint() const { return _firstPoint; }
85  const TVector3& lastPoint() const { return _lastPoint; }
86  int trackIndex() const { return _trackIndex; }
87  int idTruth() const { return _idTruth; }
88  int qaTruth() const { return _qaTruth; }
89  short id() const { return _id; }
90  short detectorId() const { return _detectorId; }
91 
92  int btofTrayId() const { return _btofTrayId; }
93  double nSigmaTofPion() const { return _nSigmaTofPion; }
94  double nSigmaTofKaon() const { return _nSigmaTofKaon; }
95  double nSigmaTofProton() const { return _nSigmaTofProton; }
96  double nSigmaTofElectron() const { return _nSigmaTofElectron; }
97 
98 private:
99 
101 
102  double _px;
103  double _py;
104  double _pz;
105  short _flag;
106  unsigned short _nHits;
107  Short_t _charge;
108  unsigned short _nHitsPoss;
109  unsigned short _nHitsDedx;
110  unsigned short _nHitsFit;
111  double _nSigmaPion;
112  double _nSigmaKaon;
113  double _nSigmaProton;
114  double _nSigmaElectron;
115  double _Tdca;
116  double _dcaX;
117  double _dcaY;
118  double _dcaZ;
119  double _dcaD;
120  double _chi2;
121  double _chi2prob;
122  double _BField;
123  double _bemcRadius;
124  double _etaext;
125  double _phiext;
126  short _exitTowerId;
127  short _exitDetectorId;
128  double _dEdx;
129  double _beta;
130  TVector3 _firstPoint;
131  TVector3 _lastPoint;
132 
133  int _trackIndex;
134 
135  int _idTruth;
136  int _qaTruth;
137 
138  short _id;
139  short _detectorId;
140 
141  int _btofTrayId;
142  double _nSigmaTofPion;
143  double _nSigmaTofKaon;
144  double _nSigmaTofProton;
145  double _nSigmaTofElectron;
146 };
147 
148 #endif // STMUTRACKEMU_H