5 #include "StHbtMaker/ThCorrFctn/StHbtSmearedHiddenInfo.h"
7 #define DEGTORAD 0.017453293
9 StHbtSmearedHiddenInfo::StHbtSmearedHiddenInfo()
20 setInitialMom(&aInitialMom, aRand, aMomRes);
21 setFreezeOut(&aFreezeOut);
26 mSmearedMom(aHiddenInfo.getSmearedMom()),
27 mPid(aHiddenInfo.getPid())
35 mSmearedMom(aSmearedMom),
41 StHbtSmearedHiddenInfo::~StHbtSmearedHiddenInfo()
43 if (mFreezeOut)
delete mFreezeOut;
55 inline int StHbtSmearedHiddenInfo::getPid()
const
69 Float_t totmom = sqrt ((px * px) + (py * py) + (pz * pz));
70 Float_t per = aMomRes->getPtError(totmom);
71 Float_t thetaan = TMath::ATan2(hypot(px,py),pz);
72 Float_t phier = aMomRes->getPhiError(totmom);
73 Float_t thetaer = aMomRes->getThetaError(totmom);
74 Float_t pshift = aMomRes->getPShift(totmom);
79 Float_t rescale = (totmom - pshift) / totmom;
87 Float_t Deltapx = TMath::Abs(px) * per + TMath::Abs(py) * phier + TMath::Abs(px * (1/TMath::Tan(thetaan))) * thetaer;
88 Float_t Deltapy = TMath::Abs(py) * per + TMath::Abs(px) * phier + TMath::Abs(py * (1/TMath::Tan(thetaan))) * thetaer;
89 Float_t Deltapz = TMath::Abs(pz) * per + TMath::Abs(pz * TMath::Tan(thetaan)) * thetaer;
93 mSmearedMom.setX((px + aRand->Gaus(0,fabs(Deltapx))) * rescale);
94 mSmearedMom.setY((py + aRand->Gaus(0,fabs(Deltapy))) * rescale);
95 mSmearedMom.setZ((pz + aRand->Gaus(0,fabs(Deltapz))) * rescale);
100 mSmearedMom.setT(::sqrt((0.139*0.139 + mSmearedMom.x() * mSmearedMom.x() + mSmearedMom.y() * mSmearedMom.y() + mSmearedMom.z() * mSmearedMom.z())));
103 mSmearedMom.setT(::sqrt((0.493*0.493 + mSmearedMom.x() * mSmearedMom.x() + mSmearedMom.y() * mSmearedMom.y() + mSmearedMom.z() * mSmearedMom.z())));
106 mSmearedMom.setT(::sqrt((0.938*0.938 + mSmearedMom.x() * mSmearedMom.x() + mSmearedMom.y() * mSmearedMom.y() + mSmearedMom.z() * mSmearedMom.z())));
112 inline void StHbtSmearedHiddenInfo:: setPid(
int aPid)
115 inline void StHbtSmearedHiddenInfo:: setFreezeOut(
const StHbtLorentzVector* aFreezeOut)
118 inline StHbtHiddenInfo* StHbtSmearedHiddenInfo::getParticleHiddenInfo()