AliPhysics  32b88a8 (32b88a8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliTrackContainerToyModel.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 
36  AliTrackContainer(name),
37  fTrackScalePt(1)
38 {
39 }
40 
51 Bool_t AliTrackContainerToyModel::GetMomentumFromTrack(TLorentzVector &mom, const AliVTrack* track, Double_t mass) const
52 {
53  Bool_t r = AliTrackContainer::GetMomentumFromTrack(mom, track, mass);
55  return r;
56 }
57 
69 {
72  return r;
73 }
74 
87 {
90  return r;
91 }
92 
104 {
107  return r;
108 }
109 
121 {
124  return r;
125 }
126 
132 {
133  if(fTrackScalePt<1.){
134  Double_t pTscale = fTrackScalePt*mom.Pt();
135  Double_t phiscale = mom.Phi();
136  Double_t thetascale = 2.*TMath::ATan(TMath::Exp(-1.*(mom.Eta())));
137  Double_t pXscale = pTscale * TMath::Cos(phiscale);
138  Double_t pYscale = pTscale * TMath::Sin(phiscale);
139  Double_t pZscale = pTscale/TMath::Tan(thetascale);
140  Double_t pscale=TMath::Sqrt(pTscale*pTscale+pZscale*pZscale);
141  mom.SetPxPyPzE(pXscale, pYscale, pZscale, pscale);
142  }
143 }
double Double_t
Definition: External.C:58
Allows to modify the tracks to implement toy models.
Double_t mass
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
int Int_t
Definition: External.C:63
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
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC
virtual Bool_t GetMomentum(TLorentzVector &mom, Int_t i) const
virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom)
bool Bool_t
Definition: External.C:53
virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom)