146 Double_t thetascale = 2.*TMath::ATan(TMath::Exp(-1.*(mom.Eta())));
147 Double_t pXscale = pTscale * TMath::Cos(phiscale);
148 Double_t pYscale = pTscale * TMath::Sin(phiscale);
149 Double_t pZscale = pTscale/TMath::Tan(thetascale);
150 Double_t pscale=TMath::Sqrt(pTscale*pTscale+pZscale*pZscale);
151 mom.SetPxPyPzE(pXscale, pYscale, pZscale, pscale);
166 Double_t thetascale = 2.*TMath::ATan(TMath::Exp(-1.*(etascale)));
167 Double_t pXscale = pTscale * TMath::Cos(phiscale);
168 Double_t pYscale = pTscale * TMath::Sin(phiscale);
169 Double_t pZscale = pTscale/TMath::Tan(thetascale);
170 Double_t pscale=TMath::Sqrt(pTscale*pTscale+pZscale*pZscale);
171 mom.SetPxPyPzE(pXscale, pYscale, pZscale, pscale);
Allows to modify the tracks to implement toy models.
Double_t fRandomizeEtaPhi
AliTrackContainerToyModel()
Container with name, TClonesArray and cuts for particles.
virtual Bool_t GetNextMomentum(TLorentzVector &mom)
virtual Bool_t GetMomentum(TLorentzVector &mom, Int_t i) const
virtual Bool_t GetNextMomentum(TLorentzVector &mom)
virtual Bool_t GetAcceptMomentum(TLorentzVector &mom, Int_t i) const
virtual Bool_t GetMomentumFromTrack(TLorentzVector &mom, const AliVTrack *track, Double_t mass) const
virtual Bool_t GetAcceptMomentum(TLorentzVector &mom, Int_t i) const
void ScalePtOfLorentzVector(TLorentzVector &mom) const
virtual Bool_t GetMomentumFromTrack(TLorentzVector &mom, const AliVTrack *track, Double_t mass) const
virtual Bool_t GetMomentum(TLorentzVector &mom, Int_t i) const
virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom)
virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom)
void SetRandomEtaPhiOfLorentzVector(TLorentzVector &mom) const