AliPhysics  2c6b7ad (2c6b7ad)
AliTrackContainerToyModel.h
Go to the documentation of this file.
1 
13 #ifndef ALITRACKCONTAINERTOYMODEL_H
14 #define ALITRACKCONTAINERTOYMODEL_H
15 
16 /**************************************************************************
17 * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
18 * *
19 * Author: The ALICE Off-line Project. *
20 * Contributors are mentioned in the code where appropriate. *
21 * *
22 * Permission to use, copy, modify and distribute this software and its *
23 * documentation strictly for non-commercial purposes is hereby granted *
24 * without fee, provided that the above copyright notice appears in all *
25 * copies and that both the copyright notice and this permission notice *
26 * appear in the supporting documentation. The authors make no claims *
27 * about the suitability of this software for any purpose. It is *
28 * provided "as is" without express or implied warranty. *
29 **************************************************************************/
30 
31 class AliAODEvent;
32 
33 #include "AliAODEvent.h"
34 #include "AliTrackContainer.h"
35 
36 
38 public:
40  AliTrackContainerToyModel(const char *name);
41 
44  virtual Bool_t GetMomentumFromTrack(TLorentzVector &mom, const AliVTrack* track, Double_t mass) const;
45  virtual Bool_t GetMomentum(TLorentzVector &mom, Int_t i) const;
46  virtual Bool_t GetAcceptMomentum(TLorentzVector &mom, Int_t i) const;
47  virtual Bool_t GetNextMomentum(TLorentzVector &mom);
48  virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom);
49 
50  void ScalePtOfLorentzVector(TLorentzVector &mom) const;
51  void SetRandomEtaPhiOfLorentzVector(TLorentzVector &mom) const;
52 protected:
53  void ExecOnce();
54  Double_t fTrackScalePt; //scaling of the track pT by given fraction (0....1)
55  Double_t fTrackEtaWindow; //eta acceptance
56  Double_t fRandomizeEtaPhi; //assign random eta & phi to the tracks
57 
58 private:
60  ClassDef(AliTrackContainerToyModel, 1);
62 };
63 #endif
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)
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
virtual Bool_t GetMomentum(TLorentzVector &mom, Int_t i) const
bool Bool_t
Definition: External.C:53
virtual Bool_t GetNextAcceptMomentum(TLorentzVector &mom)
void SetRandomEtaPhiOfLorentzVector(TLorentzVector &mom) const