]>
Commit | Line | Data |
---|---|---|
1c5acb87 | 1 | #ifndef ALIANAPI0_H |
2 | #define ALIANAPI0_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | /* $Id: $ */ | |
6 | ||
7 | //_________________________________________________________________________ | |
8 | // Class to fill two-photon invariant mass hisograms | |
9 | // to be used to extract pi0 raw yield. | |
10 | // | |
11 | //-- Author: Dmitri Peressounko (RRC "KI") | |
12 | //-- Adapted to PartCorr frame by Lamia Benhabib (SUBATECH) | |
13 | //-- and Gustavo Conesa (INFN-Frascati) | |
14 | ||
15 | //Root | |
16 | class TList; | |
17 | class TH3D ; | |
50f39b97 | 18 | class TH2D ; |
1c5acb87 | 19 | |
20 | //Analysis | |
21 | class AliAODEvent ; | |
22 | class AliESDEvent ; | |
23 | #include "AliAnaPartCorrBaseClass.h" | |
24 | ||
1c5acb87 | 25 | class AliAnaPi0 : public AliAnaPartCorrBaseClass { |
6639984f | 26 | |
614701c6 | 27 | public: |
6639984f | 28 | AliAnaPi0() ; // default ctor |
29 | AliAnaPi0(const char *name) ; // default ctor | |
30 | AliAnaPi0(const AliAnaPi0 & g) ; // cpy ctor | |
6639984f | 31 | virtual ~AliAnaPi0() ;//virtual dtor |
614701c6 | 32 | |
33 | private: | |
34 | AliAnaPi0 & operator = (const AliAnaPi0 & api0) ;//cpy assignment | |
6639984f | 35 | |
614701c6 | 36 | public: |
6639984f | 37 | TList * GetCreateOutputObjects(); |
38 | ||
39 | void Print(const Option_t * opt) const; | |
40 | ||
5a2dbc3c | 41 | //void Init(); |
6639984f | 42 | void InitParameters(); |
43 | ||
44 | //void MakeAnalysisFillAOD() {;} //Not needed | |
45 | void MakeAnalysisFillHistograms(); | |
46 | ||
47 | // void SetBadRunsList(){;} ; //Set list of runs which can be used for this analysis | |
48 | //To be defined in future. | |
5a2dbc3c | 49 | |
50 | //void SetEtalonHisto(TH3D * h);//Provide etalon of binning for histograms | |
6639984f | 51 | |
52 | //Setters for parameters of event buffers | |
53 | void SetNCentrBin(Int_t n=5){fNCentrBin=n ;} //number of bins in centrality | |
54 | void SetNZvertBin(Int_t n=5){fNZvertBin=n ;} //number of bins for vertex position | |
55 | void SetNRPBin(Int_t n=6) {fNrpBin=n ;} //number of bins in reaction plain | |
56 | void SetNMaxEvMix(Int_t n=20){fNmaxMixEv=n ;}//Maximal number of events for mixing | |
57 | ||
58 | //Setters for event selection | |
59 | void SetZvertexCut(Float_t zcut=40.){fZvtxCut=zcut ;} //cut on vertex position | |
60 | ||
61 | TString GetCalorimeter() const {return fCalorimeter ; } | |
62 | void SetCalorimeter(TString det) {fCalorimeter = det ; } | |
afabc52f | 63 | |
a5cc4f03 | 64 | void Terminate(TList* outputList); |
65 | void ReadHistograms(TList * outputList); //Fill histograms with histograms in ouput list, needed in Terminate. | |
66 | ||
6921fa00 | 67 | Int_t GetModuleNumber(AliAODPWG4Particle * particle); |
68 | void SetNumberOfModules(Int_t nmod) {fNModules = nmod;} | |
69 | ||
8d5beeb8 | 70 | Int_t GetNPID() const {return fNPID ; } |
71 | void SetNPID(Int_t n) {fNPID = n ; } | |
72 | ||
50f39b97 | 73 | void SwitchOnAngleSelection() {fUseAngleCut = kTRUE ; } |
74 | void SwitchOffAngleSelection() {fUseAngleCut = kFALSE ; } | |
75 | ||
6639984f | 76 | private: |
77 | Bool_t IsBadRun(Int_t /*iRun*/) const {return kFALSE;} //Tests if this run bad according to private list | |
78 | ||
79 | private: | |
50f39b97 | 80 | Int_t fNCentrBin ; // Number of bins in event container for centrality |
81 | Int_t fNZvertBin ; // Number of bins in event container for vertex position | |
82 | Int_t fNrpBin ; // Number of bins in event container for reaction plain | |
83 | Int_t fNPID ; // Number of possible PID combinations | |
84 | Int_t fNmaxMixEv ; // Maximal number of events stored in buffer for mixing | |
85 | Float_t fZvtxCut ; // Cut on vertex position | |
86 | TString fCalorimeter ; // Select Calorimeter for IM | |
87 | Int_t fNModules ; // Number of EMCAL/PHOS modules, set as many histogras as modules | |
88 | Bool_t fUseAngleCut ; // Select pairs depending on their opening angle | |
89 | TList ** fEventsList ; //! Containers for photons in stored events | |
6639984f | 90 | |
91 | //Histograms | |
92 | ||
5a2dbc3c | 93 | //TH3D * fhEtalon ; //Etalon histo, all distributions will have same binning as this one |
6639984f | 94 | |
6921fa00 | 95 | TH3D ** fhReMod ; //!REAL two-photon invariant mass distribution for different calorimeter modules. |
96 | ||
6639984f | 97 | TH3D ** fhRe1 ; //!REAL two-photon invariant mass distribution for different centralities and PID |
98 | TH3D ** fhMi1 ; //!MIXED two-photon invariant mass distribution for different centralities and PID | |
99 | TH3D ** fhRe2 ; //!REAL two-photon invariant mass distribution for different centralities and PID | |
100 | TH3D ** fhMi2 ; //!MIXED two-photon invariant mass distribution for different centralities and PID | |
101 | TH3D ** fhRe3 ; //!REAL two-photon invariant mass distribution for different centralities and PID | |
102 | TH3D ** fhMi3 ; //!MIXED two-photon invariant mass distribution for different centralities and PID | |
50f39b97 | 103 | TH3D * fhEvents; //!Number of events per centrality, RP, zbin |
104 | ||
105 | TH2D * fhRealOpeningAngle ; //! Opening angle of pair versus pair energy | |
106 | TH2D * fhRealCosOpeningAngle ; //! Cosinus of opening angle of pair version pair energy | |
6921fa00 | 107 | |
6639984f | 108 | //Acceptance |
109 | TH1D * fhPrimPt ; //! Spectrum of Primary | |
110 | TH1D * fhPrimAccPt ; //! Spectrum of primary with accepted daughters | |
111 | TH1D * fhPrimY ; //! Rapidity distribution of primary particles | |
112 | TH1D * fhPrimAccY ; //! Rapidity distribution of primary with accepted daughters | |
113 | TH1D * fhPrimPhi ; //! Azimutal distribution of primary particles | |
114 | TH1D * fhPrimAccPhi; //! Azimutal distribution of primary with accepted daughters | |
50f39b97 | 115 | TH2D * fhPrimOpeningAngle ; //! Opening angle of pair versus pair energy, primaries |
116 | TH2D * fhPrimCosOpeningAngle ; //! Cosinus of opening angle of pair version pair energy, primaries | |
117 | ||
118 | ClassDef(AliAnaPi0,8) | |
1c5acb87 | 119 | } ; |
120 | ||
121 | ||
122 | #endif //ALIANAPI0_H | |
123 | ||
124 | ||
125 |