StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuBTofPidTraits.h
1 
5 /***************************************************************************
6  *
7  * $Id: StMuBTofPidTraits.h,v 1.6 2013/07/23 11:02:59 jeromel Exp $
8  *
9  * Author: Xin Dong, Nov 2008
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StMuBTofPidTraits.h,v $
17  * Revision 1.6 2013/07/23 11:02:59 jeromel
18  * Undo changes (KF and other)
19  *
20  * Revision 1.4 2013/04/10 19:28:35 jeromel
21  * Step back to 04/04 version (van aware) - previous changes may be recoverred
22  *
23  * Revision 1.2 2009/12/08 23:24:46 fine
24  * Fix issue #1748 http://www.star.bnl.gov/rt2/Ticket/Display.html?id=1748
25  *
26  * Revision 1.1 2009/02/20 17:05:59 tone421
27  * *** empty log message ***
28  *
29  *
30  ***************************************************************************/
31 #ifndef StMuBTofPidTraits_hh
32 #define StMuBTofPidTraits_hh
33 
34 class StBTofPidTraits;
35 #include "StThreeVectorF.hh"
36 
37 class StMuBTofPidTraits : public TObject {
38 public:
41 
42  StBTofPidTraits* createBTofPidTraits() const;
43 
45  unsigned char matchFlag() const;
46  float yLocal() const;
47  float zLocal() const;
48  float thetaLocal() const;
49 
50  StThreeVectorF& position();
51  const StThreeVectorF& position() const;
52 
54  float timeOfFlight() const;
55  float pathLength() const;
56  float beta() const;
57 
59  float sigmaElectron() const;
60  float sigmaPion() const;
61  float sigmaKaon() const;
62  float sigmaProton() const;
63 
64  float probElectron() const;
65  float probPion() const;
66  float probKaon() const;
67  float probProton() const;
68 
69  void setBTofPidTraits(const StBTofPidTraits*);
70 
71  void setMatchFlag(unsigned char);
72  void setYLocal(float);
73  void setZLocal(float);
74  void setThetaLocal(float);
75  void setPosition(const StThreeVectorF&);
76 
77  void setTimeOfFlight(float);
78  void setPathLength(float);
79  void setBeta(float);
80 
81  void setSigmaElectron(float);
82  void setSigmaPion(float);
83  void setSigmaKaon(float);
84  void setSigmaProton(float);
85 
86  void setProbElectron(float);
87  void setProbPion(float);
88  void setProbKaon(float);
89  void setProbProton(float);
90 
91 private:
92  UChar_t mMatchFlag;
93  Float_t mYLocal;
94  Float_t mZLocal;
95  Float_t mThetaLocal;
96  StThreeVectorF mPosition;
97 
98  Float_t mTimeOfFlight;
99  Float_t mPathLength;
100  Float_t mBeta;
101 
102  Float_t mSigmaElectron;
103  Float_t mSigmaPion;
104  Float_t mSigmaKaon;
105  Float_t mSigmaProton;
106 
107  Float_t mProbElectron;
108  Float_t mProbPion;
109  Float_t mProbKaon;
110  Float_t mProbProton;
111 
112  ClassDef(StMuBTofPidTraits,1)
113 };
114 
115 inline unsigned char StMuBTofPidTraits::matchFlag() const { return mMatchFlag; }
116 inline float StMuBTofPidTraits::yLocal() const { return mYLocal; }
117 inline float StMuBTofPidTraits::zLocal() const { return mZLocal; }
118 inline float StMuBTofPidTraits::thetaLocal() const { return mThetaLocal; }
119 inline float StMuBTofPidTraits::timeOfFlight() const { return mTimeOfFlight; }
120 inline float StMuBTofPidTraits::pathLength() const { return mPathLength; }
121 inline float StMuBTofPidTraits::beta() const { return mBeta; }
122 inline float StMuBTofPidTraits::sigmaElectron() const { return mSigmaElectron; }
123 inline float StMuBTofPidTraits::sigmaPion() const { return mSigmaPion; }
124 inline float StMuBTofPidTraits::sigmaKaon() const { return mSigmaKaon; }
125 inline float StMuBTofPidTraits::sigmaProton() const { return mSigmaProton; }
126 inline float StMuBTofPidTraits::probElectron() const { return mProbElectron; }
127 inline float StMuBTofPidTraits::probPion() const { return mProbPion; }
128 inline float StMuBTofPidTraits::probKaon() const { return mProbKaon; }
129 inline float StMuBTofPidTraits::probProton() const { return mProbProton; }
130 
131 inline void StMuBTofPidTraits::setMatchFlag(unsigned char flag) { mMatchFlag=flag; }
132 inline void StMuBTofPidTraits::setYLocal(float y) { mYLocal=y; }
133 inline void StMuBTofPidTraits::setZLocal(float z) { mZLocal=z; }
134 inline void StMuBTofPidTraits::setThetaLocal(float theta) { mThetaLocal=theta; }
135 inline void StMuBTofPidTraits::setTimeOfFlight(float t) { mTimeOfFlight=t; }
136 inline void StMuBTofPidTraits::setPathLength(float s) { mPathLength=s; }
137 inline void StMuBTofPidTraits::setBeta(float beta) { mBeta=beta; }
138 inline void StMuBTofPidTraits::setSigmaElectron(float sigma) { mSigmaElectron=sigma; }
139 inline void StMuBTofPidTraits::setSigmaPion(float sigma) { mSigmaPion=sigma; }
140 inline void StMuBTofPidTraits::setSigmaKaon(float sigma) { mSigmaKaon=sigma; }
141 inline void StMuBTofPidTraits::setSigmaProton(float sigma) { mSigmaProton=sigma; }
142 inline void StMuBTofPidTraits::setProbElectron(float prob) { mProbElectron=prob; }
143 inline void StMuBTofPidTraits::setProbPion(float prob) { mProbPion=prob; }
144 inline void StMuBTofPidTraits::setProbKaon(float prob) { mProbKaon=prob; }
145 inline void StMuBTofPidTraits::setProbProton(float prob) { mProbProton=prob; }
146 
147 #endif
unsigned char matchFlag() const
Matching information.
float timeOfFlight() const
timing for PID
float sigmaElectron() const
PID functions.