150 Double_t thetascale = 2.*TMath::ATan(TMath::Exp(-1.*(mom.Eta())));
151 Double_t pXscale = pTscale * TMath::Cos(phiscale);
152 Double_t pYscale = pTscale * TMath::Sin(phiscale);
153 Double_t pZscale = pTscale/TMath::Tan(thetascale);
154 Double_t pscale=TMath::Sqrt(pTscale*pTscale+pZscale*pZscale);
155 mom.SetPxPyPzE(pXscale, pYscale, pZscale, pscale);
174 Double_t thetascale = 2.*TMath::ATan(TMath::Exp(-1.*(etascale)));
175 Double_t pXscale = pTscale * TMath::Cos(phiscale);
176 Double_t pYscale = pTscale * TMath::Sin(phiscale);
177 Double_t pZscale = pTscale/TMath::Tan(thetascale);
178 Double_t pscale=TMath::Sqrt(pTscale*pTscale+pZscale*pZscale);
179 mom.SetPxPyPzE(pXscale, pYscale, pZscale, pscale);
virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom)
virtual Bool_t GetMomentum(TLorentzVector &mom, Int_t i) const
virtual Bool_t GetMomentum(TLorentzVector &mom, Int_t i) const
void ScalePtOfLorentzVector(TLorentzVector &mom) const
virtual Bool_t GetNextMomentum(TLorentzVector &mom)
virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom)
void SetRandomEtaPhiOfLorentzVector(TLorentzVector &mom) const
AliMCParticleContainerToyModel()
Double_t fRandomizeEtaPhi
virtual Bool_t GetMomentumFromParticle(TLorentzVector &mom, const AliVParticle *part, Double_t mass) const
virtual Bool_t GetNextMomentum(TLorentzVector &mom)
virtual Bool_t GetAcceptMomentum(TLorentzVector &mom, Int_t i) const
virtual Bool_t GetMomentumFromParticle(TLorentzVector &mom, const AliAODMCParticle *track, Double_t mass) const
virtual Bool_t GetAcceptMomentum(TLorentzVector &mom, Int_t i) const
Container for MC-true particles within the EMCAL framework.
Allows to modify the tracks to implement toy models.