138 Double_t phiscale = mom.Phi();
139 Double_t thetascale = 2.*TMath::ATan(TMath::Exp(-1.*(mom.Eta())));
140 Double_t pXscale = pTscale * TMath::Cos(phiscale);
141 Double_t pYscale = pTscale * TMath::Sin(phiscale);
142 Double_t pZscale = pTscale/TMath::Tan(thetascale);
143 Double_t pscale=TMath::Sqrt(pTscale*pTscale+pZscale*pZscale);
144 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)
AliMCParticleContainerToyModel()
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC
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.