]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/PartCorrDep/AliAnaPi0EbE.h
Add cluster disitribution histograms as a function of eta/phi and depending on V0...
[u/mrichter/AliRoot.git] / PWG4 / PartCorrDep / AliAnaPi0EbE.h
CommitLineData
477d6cee 1#ifndef ALIANAPI0EBE_H
2#define ALIANAPI0EBE_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5/* $Id: AliAnaPi0EbE.h 27413 2008-07-18 13:28:12Z gconesab $ */
6
7//_________________________________________________________________________
8//
9// Class for the analysis of high pT pi0 event by event
10// Pi0 identified by one of the following:
11// -Invariant mass of 2 cluster in calorimeter
12// -Shower shape analysis in calorimeter
13// -Invariant mass of one cluster in calorimeter and one photon reconstructed in TPC (in near future)
14//
15//-- Author: Gustavo Conesa (INFN-LNF) & Raphaelle Ichou (SUBATECH)
16//_________________________________________________________________________
17
18
19// --- ROOT system ---
477d6cee 20class TList ;
0c1383b5 21class TObjString;
477d6cee 22
23// --- ANALYSIS system ---
24#include "AliAnaPartCorrBaseClass.h"
477d6cee 25
26class AliAnaPi0EbE : public AliAnaPartCorrBaseClass {
27
28 public:
477d6cee 29 AliAnaPi0EbE() ; // default ctor
1db06135 30 virtual ~AliAnaPi0EbE() { ; } //virtual dtor
c5693f62 31
521636d2 32 TObjString * GetAnalysisCuts();
477d6cee 33
521636d2 34 TList * GetCreateOutputObjects();
477d6cee 35
521636d2 36 void Init();
477d6cee 37
521636d2 38 void InitParameters();
39
40 void MakeAnalysisFillAOD() ;
41
42 void MakeAnalysisFillHistograms() ;
477d6cee 43
521636d2 44 void Print(const Option_t * opt) const;
477d6cee 45
521636d2 46 // Main
477d6cee 47
42d47cb7 48 void FillSelectedClusterHistograms(AliVCluster* cluster, const Int_t tag);
49
50 void FillWeightHistograms(AliVCluster *clus);
0a14e9ae 51
521636d2 52 void MakeInvMassInCalorimeter() ;
57b97dc6 53
521636d2 54 void MakeInvMassInCalorimeterAndCTS() ;
57b97dc6 55
521636d2 56 void MakeShowerShapeIdentification() ;
57b97dc6 57
78a28af3 58 void RecalibrateCellAmplitude(Float_t & amp, const Int_t absId);
c5693f62 59
521636d2 60 //Setters Getters
61
62 //Analysis types
63 enum anaTypes {kIMCalo, kSSCalo, kIMCaloTracks};
78a28af3 64 anaTypes GetAnalysisType() const { return fAnaType ; }
65 void SetAnalysisType(anaTypes ana) { fAnaType = ana ; }
ddc0a8a5 66
78a28af3 67 TString GetInputAODGammaConvName() const { return fInputAODGammaConvName ; }
68 void SetInputAODGammaConvName(TString name) { fInputAODGammaConvName = name ; }
ddc0a8a5 69
521636d2 70 //Only for pi0 SS identification case
78a28af3 71 void SetCalorimeter(TString & det) { fCalorimeter = det ; }
521636d2 72
73 void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3) {
78a28af3 74 fMinDist = m1; fMinDist2 = m2; fMinDist3 = m3 ; }
521636d2 75
c5693f62 76 void SwitchOnFillWeightHistograms() { fFillWeightHistograms = kTRUE ; }
77 void SwitchOffFillWeightHistograms() { fFillWeightHistograms = kFALSE ; }
78
521636d2 79 //For histograms
c5693f62 80 enum mcTypes { kmcPhoton = 0, kmcConversion = 1, kmcPi0 = 2,
81 kmcEta = 3, kmcElectron = 4, kmcHadron = 5 };
521636d2 82
477d6cee 83 private:
84
c5693f62 85 anaTypes fAnaType; // Select analysis type
477d6cee 86
87 //Only for pi0 SS identification case, kSSCalo
521636d2 88 TString fCalorimeter ; // Calorimeter where the gamma is searched;
89 Float_t fMinDist ; // Minimal distance to bad channel to accept cluster
90 Float_t fMinDist2; // Cuts on Minimal distance to study acceptance evaluation
91 Float_t fMinDist3; // One more cut on distance used for acceptance-efficiency study
477d6cee 92
78a28af3 93 Bool_t fFillWeightHistograms ; // Fill weigth histograms
94
477d6cee 95 //Only for combination of calorimeter and conversion photons, kIMCaloTracks
521636d2 96 TString fInputAODGammaConvName; // Name of AOD branch with conversion photons
477d6cee 97
98 //Histograms
521636d2 99
100 TH1F * fhPtPi0 ; //! Number of identified pi0 vs pT
101 TH1F * fhEPi0 ; //! Number of identified pi0 vs E
7a972c0c 102 TH2F * fhEEtaPi0 ; //! E vs eta of identified pi0
103 TH2F * fhEPhiPi0 ; //! E vs phi of identified pi0
104 TH2F * fhEtaPhiPi0 ; //! eta vs phi of identified pi0
105
42d47cb7 106 TH2F * fhEDispersion ; //! E vs disp of selected cluster
107 TH2F * fhELambda0 ; //! E vs lambda0 of selected cluster
108 TH2F * fhELambda1 ; //! E vs lambda1 of selected cluster
109 TH2F * fhELambda0NoTRD ; //! E vs lambda0 of selected cluster, not behind TRD
110 TH2F * fhELambda0FracMaxCellCut ;//! E vs lambda0 of selected cluster, fraction of cluster energy in max cell cut
111 TH2F * fhEFracMaxCell ; //! E vs frac max cell of selected cluster
112 TH2F * fhEFracMaxCellNoTRD ; //! E vs frac max cell of selected cluster, not behind TRD
113 TH2F * fhENCells; //! E vs N cells in selected cluster
114 TH2F * fhETime; //! E vs Time of selected cluster
115 TH2F * fhEPairDiffTime; //! E vs Pair of clusters time difference vs E
3bfcb597 116
c4a7d28a 117 //MC histograms
118
6db946bd 119 TH2F * fhEMCLambda0[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle
120 TH2F * fhEMCLambda1[6] ; //! E vs lambda1 of pi0 pairs but really from MC particle
121 TH2F * fhEMCDispersion[6] ; //! E vs dispersion of pi0 pairs but really from MC particle
3bfcb597 122 TH2F * fhEMCLambda0NoTRD[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle, not behind TRD
123 TH2F * fhEMCLambda0FracMaxCellCut[6] ;//! E vs lambda0 of pi0 pairs but really from MC particle, fraction of cluster energy in max cell cut
124 TH2F * fhEMCFracMaxCell[6] ; //! E vs fraction of max cell
521636d2 125
126 TH1F * fhPtMCNoPi0; //! Number of identified pi0, not coming from pi0
127 TH2F * fhPhiMCNoPi0; //! Phi of identified pi0, not coming from pi0
128 TH2F * fhEtaMCNoPi0; //! eta of identified pi0, not coming from pi0
129 TH1F * fhPtMCPi0; //! Number of identified pi0, coming from pi0
130 TH2F * fhPhiMCPi0; //! Phi of identified pi0, coming from pi0
131 TH2F * fhEtaMCPi0; //! eta of identified pi0, coming from pi0
132
78a28af3 133 // Weight studies
134
135 TH2F * fhECellClusterRatio; //! e cell / e cluster vs e cluster for selected photons
136 TH2F * fhECellClusterLogRatio; //! log (e cell / e cluster) vs e cluster for selected photons
137 TH2F * fhEMaxCellClusterRatio; //! e max cell / e cluster vs e cluster for selected photons
138 TH2F * fhEMaxCellClusterLogRatio;//! log (e max cell / e cluster) vs e cluster for selected photons
c5693f62 139 TH2F * fhLambda0ForW0[14]; //! L0 for 7 defined w0= 3, 3.5 ... 6 for selected photons
1a72f6c5 140 //TH2F * fhLambda1ForW0[7]; //! L1 for 7 defined w0= 3, 3.5 ... 6 for selected photons
78a28af3 141
c5693f62 142 AliAnaPi0EbE(const AliAnaPi0EbE & g) ; // cpy ctor
143 AliAnaPi0EbE & operator = (const AliAnaPi0EbE & g) ; // cpy assignment
144
7a972c0c 145 ClassDef(AliAnaPi0EbE,11)
c4a7d28a 146} ;
477d6cee 147
148
149#endif //ALIANAPI0EBE_H
150
151
152