]>
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 ; |
0c1383b5 | 19 | class TObjString; |
1c5acb87 | 20 | |
21 | //Analysis | |
22 | class AliAODEvent ; | |
23 | class AliESDEvent ; | |
24 | #include "AliAnaPartCorrBaseClass.h" | |
25 | ||
1c5acb87 | 26 | class AliAnaPi0 : public AliAnaPartCorrBaseClass { |
6639984f | 27 | |
78219bac | 28 | public: |
6639984f | 29 | AliAnaPi0() ; // default ctor |
6639984f | 30 | virtual ~AliAnaPi0() ;//virtual dtor |
78219bac | 31 | private: |
32 | AliAnaPi0(const AliAnaPi0 & g) ; // cpy ctor | |
614701c6 | 33 | AliAnaPi0 & operator = (const AliAnaPi0 & api0) ;//cpy assignment |
6639984f | 34 | |
78219bac | 35 | public: |
36 | ||
0c1383b5 | 37 | TObjString * GetAnalysisCuts(); |
38 | TList * GetCreateOutputObjects(); | |
6639984f | 39 | |
40 | void Print(const Option_t * opt) const; | |
41 | ||
5a2dbc3c | 42 | //void Init(); |
6639984f | 43 | void InitParameters(); |
44 | ||
45 | //void MakeAnalysisFillAOD() {;} //Not needed | |
46 | void MakeAnalysisFillHistograms(); | |
47 | ||
48 | // void SetBadRunsList(){;} ; //Set list of runs which can be used for this analysis | |
49 | //To be defined in future. | |
5a2dbc3c | 50 | |
51 | //void SetEtalonHisto(TH3D * h);//Provide etalon of binning for histograms | |
6639984f | 52 | |
53 | //Setters for parameters of event buffers | |
b05a14a3 | 54 | void SetNCentrBin(Int_t n=5) {fNCentrBin=n ;} //number of bins in centrality |
55 | void SetNZvertBin(Int_t n=5) {fNZvertBin=n ;} //number of bins for vertex position | |
56 | void SetNRPBin(Int_t n=6) {fNrpBin=n ;} //number of bins in reaction plain | |
57 | void SetNMaxEvMix(Int_t n=20){fNmaxMixEv=n ;} //Maximal number of events for mixing | |
6639984f | 58 | |
59 | //Setters for event selection | |
60 | void SetZvertexCut(Float_t zcut=40.){fZvtxCut=zcut ;} //cut on vertex position | |
61 | ||
62 | TString GetCalorimeter() const {return fCalorimeter ; } | |
63 | void SetCalorimeter(TString det) {fCalorimeter = det ; } | |
afabc52f | 64 | |
a5cc4f03 | 65 | void Terminate(TList* outputList); |
66 | void ReadHistograms(TList * outputList); //Fill histograms with histograms in ouput list, needed in Terminate. | |
67 | ||
6921fa00 | 68 | void SetNumberOfModules(Int_t nmod) {fNModules = nmod;} |
69 | ||
b05a14a3 | 70 | Int_t GetNPID() const {return fNPID ; } |
71 | void SetNPID(Int_t n) {fNPID = n ; } | |
8d5beeb8 | 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 |