AliPhysics  e34b7ac (e34b7ac)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnaRandomTrigger.h
Go to the documentation of this file.
1 #ifndef ALIANARANDOMTRIGGER_H
2 #define ALIANARANDOMTRIGGER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //_________________________________________________________________________
18 //_________________________________________________________________________
19 
20 // Root system
21 class TH2F;
22 #include <TRandom3.h>
23 
24 // Analysis system
26 
28 
29  public:
30 
32 
33  // Virtual destructor.
34  virtual ~AliAnaRandomTrigger() { ; }
35 
37 
38  TObjString * GetAnalysisCuts();
39 
41 
42  void InitParameters();
43 
44  void MakeAnalysisFillAOD() ;
45 
47 
48  void Print(const Option_t * opt) const;
49 
50  void SetEtaCut(Float_t min, Float_t max) { fEtaCut[0] = min ; fEtaCut[1] = max;}
51 
52  void SetPhiCut(Float_t min, Float_t max) { fPhiCut[0] = min ; fPhiCut[1] = max;} // radians
53 
55 
56  void SetTriggerDetector(TString & det) ;
57  void SetTriggerDetector(Int_t det) ;
58 
59  private:
60 
65  TRandom3 fRandom ;
67 
68  TLorentzVector fMomentum;
69 
70  //Constrol histograms
71  TH1F * fhE;
72  TH1F * fhPt;
73  TH2F * fhPhi;
74  TH2F * fhEta;
76 
79 
82 
84  ClassDef(AliAnaRandomTrigger,4) ;
86 
87 } ;
88 
89 #endif //ALIANARANDOMTRIGGER_H
90 
91 
92 
void SetPhiCut(Float_t min, Float_t max)
Int_t fNRandom
Number of random particles per event.
Float_t fPhiCut[2]
Phi acceptance, radians.
Definition: External.C:236
Bool_t ExcludeDeadBadRegions(Float_t eta, Float_t phi)
TH2F * fhEta
! eta distribution vs pT, negative
void InitParameters()
Initialize the parameters of the analysis.
TObjString * GetAnalysisCuts()
Save parameters used for analysis.
Int_t fTriggerDetector
Detector : EMCAL, PHOS, CTS.
TLorentzVector fMomentum
! Avoid generating TLorentzVectors per event.
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void SetTriggerDetector(TString &det)
Set the detrimeter for the analysis.
Base class for CaloTrackCorr analysis algorithms.
int Int_t
Definition: External.C:63
TString fTriggerDetectorString
Detector : EMCAL, PHOS, CTS.
AliAnaRandomTrigger & operator=(const AliAnaRandomTrigger &r)
Assignment operator not implemented.
float Float_t
Definition: External.C:68
void SetEtaCut(Float_t min, Float_t max)
TRandom3 fRandom
Random generator.
TH2F * fhEtaPhi
! eta vs phi distribution of positive charge
TH1F * fhPt
! pT distribution
TH1F * fhE
! E distribution
Gerenate a random trigger.
void SetNumberOfRandomParticles(Int_t n)
const char Option_t
Definition: External.C:48
TH2F * fhPhi
! phi distribution vs pT, negative
AliAnaRandomTrigger()
Default Constructor. Initialize parameters.
bool Bool_t
Definition: External.C:53
Float_t fEtaCut[2]
Eta acceptance.