00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091 #ifndef StHbtParticle_hh
00092 #define StHbtParticle_hh
00093
00094 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
00095 #include "StHbtMaker/Infrastructure/StHbtTrack.hh"
00096 #include "StHbtMaker/Infrastructure/StHbtV0.hh"
00097 #include "StHbtMaker/Infrastructure/StHbtKink.hh"
00098 #include "StHbtMaker/Infrastructure/StHbtXi.hh"
00099 #include "StPhysicalHelixD.hh"
00100
00101 class StHbtHiddenInfo;
00102
00103 class StHbtParticle{
00104 public:
00105 StHbtParticle();
00106 StHbtParticle(const StHbtTrack* const hbtTrack, const double& mass);
00107 StHbtParticle(const StHbtV0* const hbtV0, const double& mass);
00108 StHbtParticle(const StHbtKink* const hbtKink, const double& mass);
00109 StHbtParticle(const StHbtXi* const hbtXi, const double& mass);
00110 ~StHbtParticle();
00111
00112 const StHbtLorentzVector& FourMomentum() const;
00113
00114 StPhysicalHelixD& Helix();
00115
00116 const StHbtThreeVector DecayVertexPosition() const;
00117
00118 unsigned long TopologyMap(const int word) const;
00119 int NumberOfHits() const;
00120
00121 unsigned long TrackId() const;
00122 unsigned short NegTrackId() const;
00123 unsigned short PosTrackId() const;
00124
00125 StHbtTrack* Track() const;
00126 StHbtV0* V0() const;
00127 StHbtKink* Kink() const;
00128
00129 const StHbtThreeVector& NominalTpcExitPoint() const;
00130 const StHbtThreeVector& NominalTpcEntrancePoint() const;
00131 const StHbtThreeVector& TpcV0PosExitPoint() const;
00132 const StHbtThreeVector& TpcV0PosEntrancePoint() const;
00133 const StHbtThreeVector& TpcV0NegExitPoint() const;
00134 const StHbtThreeVector& TpcV0NegEntrancePoint() const;
00135
00136
00137
00138
00139
00140
00141 StHbtThreeVector mNominalPosSample[11];
00142 float mZ[45];
00143 float mU[45];
00144 int mSect[45];
00145
00146 void ResetFourMomentum(const StHbtLorentzVector& fourMomentum);
00147
00148 const StHbtHiddenInfo* HiddenInfo() const;
00149
00150 StHbtHiddenInfo* getHiddenInfo() const;
00151 void SetHiddenInfo(StHbtHiddenInfo* aHiddenInfo);
00152 void CalculatePurity();
00153 double GetPionPurity();
00154 double GetKaonPurity();
00155 double GetProtonPurity();
00156 void CalculateTpcExitAndEntrancePoints( StPhysicalHelixD* tHelix,
00157 StHbtThreeVector* PrimVert,
00158 StHbtThreeVector* SecVert,
00159 StHbtThreeVector* tmpTpcEntrancePoint,
00160 StHbtThreeVector* tmpTpcExitPoint,
00161 StHbtThreeVector* tmpPosSample,
00162 float* tmpZ,float* tmpU,int* tmpSect);
00163
00164
00165 StHbtThreeVector* mTpcV0NegPosSample;
00166 float* mV0NegZ;
00167 float* mV0NegU;
00168 int* mV0NegSect;
00169
00170 private:
00171 StHbtTrack* mTrack;
00172 StHbtV0* mV0;
00173 StHbtKink* mKink;
00174 StHbtXi* mXi;
00175
00176 StHbtLorentzVector mFourMomentum;
00177 StPhysicalHelixD mHelix;
00178 unsigned long mMap[2];
00179 int mNhits;
00180 StHbtThreeVector mNominalTpcExitPoint;
00181 StHbtThreeVector mNominalTpcEntrancePoint;
00182 StHbtHiddenInfo* mHiddenInfo;
00183
00184 double mPurity[6];
00185
00186 static double mPrimPimPar0;
00187 static double mPrimPimPar1;
00188 static double mPrimPimPar2;
00189 static double mPrimPipPar0;
00190 static double mPrimPipPar1;
00191 static double mPrimPipPar2;
00192 static double mPrimPmPar0;
00193 static double mPrimPmPar1;
00194 static double mPrimPmPar2;
00195 static double mPrimPpPar0;
00196 static double mPrimPpPar1;
00197 static double mPrimPpPar2;
00198
00199
00200 StHbtThreeVector mPrimaryVertex;
00201 StHbtThreeVector mSecondaryVertex;
00202
00203 StPhysicalHelixD mHelixV0Pos;
00204 StHbtThreeVector mTpcV0PosEntrancePoint;
00205 StHbtThreeVector mTpcV0PosExitPoint;
00206
00207 StPhysicalHelixD mHelixV0Neg;
00208 StHbtThreeVector mTpcV0NegEntrancePoint;
00209 StHbtThreeVector mTpcV0NegExitPoint;
00210 };
00211
00212 inline StHbtTrack* StHbtParticle::Track() const { return mTrack; }
00213 inline unsigned long StHbtParticle::TrackId() const { return mTrack->TrackId(); };
00214 inline const StHbtLorentzVector& StHbtParticle::FourMomentum() const {return mFourMomentum;}
00215 inline StPhysicalHelixD& StHbtParticle::Helix() {return mHelix;}
00216 inline unsigned long StHbtParticle::TopologyMap(const int word) const {return mMap[word];}
00217 inline int StHbtParticle::NumberOfHits() const {return mNhits;}
00218 inline StHbtV0* StHbtParticle::V0() const { return mV0; }
00219 inline unsigned short StHbtParticle::NegTrackId() const { return mV0->idNeg(); }
00220 inline unsigned short StHbtParticle::PosTrackId() const { return mV0->idPos(); }
00221 inline const StHbtThreeVector StHbtParticle::DecayVertexPosition() const {return mV0->decayVertexV0(); }
00222
00223 inline StHbtHiddenInfo* StHbtParticle::getHiddenInfo() const
00224 {return mHiddenInfo;}
00225 inline const StHbtHiddenInfo* StHbtParticle::HiddenInfo() const
00226 {return mHiddenInfo;}
00227 inline void StHbtParticle::SetHiddenInfo(StHbtHiddenInfo* aHiddenInfo)
00228 { mHiddenInfo = aHiddenInfo->clone();}
00229
00230
00231 inline void StHbtParticle::ResetFourMomentum(const StHbtLorentzVector& vec){mFourMomentum = vec;}
00232
00233 inline StHbtKink* StHbtParticle::Kink() const { return mKink; }
00234
00235 #endif