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 */
6 //_________________________________________________________________________
7 // Gerenate a random trigger, input for other analysis
8 // Set flat energy distribution over acceptance of EMCAL, PHOS or CTS
9 // Be careful, correlate only with Min Bias events this random trigger particle
12 //-- Author: Gustavo Conesa (LPSC-Grenoble)
19 #include "AliAnaCaloTrackCorrBaseClass.h"
21 class AliAnaRandomTrigger : public AliAnaCaloTrackCorrBaseClass {
24 AliAnaRandomTrigger() ; // default ctor
25 virtual ~AliAnaRandomTrigger() { ; } //virtual dtor
27 Bool_t ExcludeDeadBadRegions(Float_t eta, Float_t phi);
29 TObjString * GetAnalysisCuts();
31 TList * GetCreateOutputObjects();
33 void InitParameters();
35 void MakeAnalysisFillAOD() ;
37 void MakeAnalysisFillHistograms() ;
39 void Print(const Option_t * opt) const;
41 void SetDetector(TString detector) { fDetector = detector ; }
43 void SetEtaCut(Float_t min, Float_t max) { fEtaCut[0] = min ; fEtaCut[1] = max;}
45 void SetPhiCut(Float_t min, Float_t max) { fPhiCut[0] = min ; fPhiCut[1] = max;} // radians
47 void SetNumberOfRandomParticles(Int_t n) { fNRandom = n ; }
51 TString fDetector ; // Detector : EMCAL, PHOS, CTS
52 Float_t fEtaCut[2]; // Eta acceptance
53 Float_t fPhiCut[2]; // Phi acceptance, radians
54 TRandom3 fRandom ; // Random generator
55 Int_t fNRandom ; // Number of random particles per event
58 TH1F * fhE; //! E distribution
59 TH1F * fhPt; //! pT distribution
60 TH2F * fhPhi; //! phi distribution vs pT, negative
61 TH2F * fhEta; //! eta distribution vs pT, negative
62 TH2F * fhEtaPhi; //! eta vs phi distribution of positive charge
65 AliAnaRandomTrigger( const AliAnaRandomTrigger & r) ; // cpy ctor
66 AliAnaRandomTrigger & operator = (const AliAnaRandomTrigger & r) ; //cpy assignment
68 ClassDef(AliAnaRandomTrigger,2)
73 #endif //ALIANARANDOMTRIGGER_H