AliPhysics  29d4213 (29d4213)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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 
36  Bool_t ExcludeDeadBadRegions(Float_t eta, Float_t phi);
37 
38  TObjString * GetAnalysisCuts();
39 
40  TList * GetCreateOutputObjects();
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 
54  void SetNumberOfRandomParticles(Int_t n) { fNRandom = n ; }
55 
56  void SetTriggerDetector(TString & det) ;
57  void SetTriggerDetector(Int_t det) ;
58 
59  private:
60 
63  Float_t fEtaCut[2];
64  Float_t fPhiCut[2];
65  TRandom3 fRandom ;
66  Int_t fNRandom ;
67 
68  TLorentzVector fMomentum;
69 
70  //Constrol histograms
71  TH1F * fhE;
72  TH1F * fhPt;
73  TH2F * fhPhi;
74  TH2F * fhEta;
75  TH2F * fhEtaPhi;
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.
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.
TString fTriggerDetectorString
Detector : EMCAL, PHOS, CTS.
AliAnaRandomTrigger & operator=(const AliAnaRandomTrigger &r)
Assignment operator not implemented.
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)
TH2F * fhPhi
! phi distribution vs pT, negative
AliAnaRandomTrigger()
Default Constructor. Initialize parameters.
Float_t fEtaCut[2]
Eta acceptance.