AliPhysics  63d3444 (63d3444)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMCParticleContainerToyModel.cxx
Go to the documentation of this file.
1 /*************************************************************************
2 * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15 
17 
21 
27  fTrackScalePt(1)
28 
29 {
30 }
31 
38  fTrackScalePt(1)
39 
40 {
41 }
42 
53 Bool_t AliMCParticleContainerToyModel::GetMomentumFromParticle(TLorentzVector &mom, const AliAODMCParticle* track, Double_t mass) const
54 {
57  return r;
58 }
59 
71 {
74  return r;
75 }
76 
89 {
92  return r;
93 }
94 
106 {
109  return r;
110 }
111 
123 {
126  return r;
127 }
128 
134 {
135  if(fTrackScalePt<1.){
136 
137  Double_t pTscale = fTrackScalePt*mom.Pt();
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);
145  }
146 }
virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom)
double Double_t
Definition: External.C:58
virtual Bool_t GetMomentum(TLorentzVector &mom, Int_t i) const
virtual Bool_t GetMomentum(TLorentzVector &mom, Int_t i) const
Double_t mass
void ScalePtOfLorentzVector(TLorentzVector &mom) const
virtual Bool_t GetNextMomentum(TLorentzVector &mom)
virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom)
int Int_t
Definition: External.C:63
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
bool Bool_t
Definition: External.C:53
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.