5 #ifndef STL3RARETRACK_HH
6 #define STL3RARETRACK_HH
10 #include "TClonesArray.h"
22 int tracknumber()
const;
28 short chargesign()
const;
29 float rapidity(
float mass)
const;
34 float chisqxy()
const;
36 short npntpossible()
const;
37 short npntfit()
const;
38 float dedxExpected(
float mass,
float charge = 1)
const;
40 float dedxProton()
const;
41 float dedxDeuteron()
const;
42 float dedxTriton()
const;
43 float dedxHe3()
const;
44 float dedxHe4()
const;
45 void SetTrigType(
int type);
67 inline int StL3RareTrack::tracknumber()
const {
return mTracknumber;}
68 inline int StL3RareTrack::flag()
const {
return mFlag;}
69 inline float StL3RareTrack::px()
const {
return mPx;}
70 inline float StL3RareTrack::py()
const {
return mPy;}
71 inline float StL3RareTrack::pz()
const {
return mPz;}
72 inline float StL3RareTrack::p()
const {return ::sqrt(mPx*mPx+mPy*mPy+mPz*mPz);}
73 inline float StL3RareTrack::pt()
const {return ::sqrt(mPx*mPx+mPy*mPy);}
74 inline short StL3RareTrack::chargesign()
const {
return mChargesign;}
75 inline float StL3RareTrack::dca2d()
const {
return mDca2d;}
76 inline float StL3RareTrack::dedx()
const {
return mDedx;}
77 inline short StL3RareTrack::ndedx()
const {
return mNDedx;}
78 inline float StL3RareTrack::chisqxy()
const {
return mChisqXY;}
79 inline float StL3RareTrack::chisqz()
const {
return mChisqSZ;}
80 inline short StL3RareTrack::npntfit()
const {
return mNPntfit;}
81 inline short StL3RareTrack::npntpossible()
const {
return mNPntpossible;}
82 inline float StL3RareTrack::dedxPi()
const {
return dedxExpected(0.139,1);}
83 inline float StL3RareTrack::dedxProton()
const {
return dedxExpected(0.939,1);}
84 inline float StL3RareTrack::dedxDeuteron()
const {
return dedxExpected(1.88,1);}
85 inline float StL3RareTrack::dedxTriton()
const {
return dedxExpected(2.82,1);}
86 inline float StL3RareTrack::dedxHe3()
const {
return dedxExpected(2.82,2);}
87 inline float StL3RareTrack::dedxHe4()
const {
return dedxExpected(3.76,2);}
88 inline int StL3RareTrack::trigtype()
const {
return mTrigType;}