AliPhysics  4646b6b (4646b6b)
 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 //_________________________________________________________________________
19 //_________________________________________________________________________
20 
21 // Root system
22 class TH2F;
23 #include <TRandom3.h>
24 
25 // Analysis system
27 
29 
30  public:
31 
33 
34  // Virtual destructor.
35  virtual ~AliAnaRandomTrigger() { ; }
36 
38 
39  TObjString * GetAnalysisCuts();
40 
42 
43  void InitParameters();
44 
45  void MakeAnalysisFillAOD() ;
46 
48 
49  void Print(const Option_t * opt) const;
50 
51  void SetEtaCut(Float_t min, Float_t max) { fEtaCut[0] = min ; fEtaCut[1] = max;}
52 
53  void SetPhiCut(Float_t min, Float_t max) { fPhiCut[0] = min ; fPhiCut[1] = max;} // radians
54 
56 
57  void SetTriggerDetector(TString & det) ;
58  void SetTriggerDetector(Int_t det) ;
59 
60  private:
61 
66  TRandom3 fRandom ;
68 
69  TLorentzVector fMomentum;
70 
71  //Constrol histograms
72  TH1F * fhE;
73  TH1F * fhPt;
74  TH2F * fhPhi;
75  TH2F * fhEta;
77 
80 
83 
85  ClassDef(AliAnaRandomTrigger,4) ;
87 
88 } ;
89 
90 #endif //ALIANARANDOMTRIGGER_H
91 
92 
93 
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.