]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGHF/hfe/AliAnalysisTaskHFECal.h
fix (ruediger)
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliAnalysisTaskHFECal.h
CommitLineData
bfc7c23b 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16#ifndef ALIANALYSISTASKHFECAL_H
17#define ALIANALYSISTASKHFECAL_H
18
19class THnSparse;
20class TH2F;
21class TLorentzVector;
09022877 22class TGraphErrors;
bfc7c23b 23
24class AliEMCALTrack;
25class AliMagF;
26class AliESDEvent;
27class AliAODEvent;
28class AliEMCALGeometry;
29class AliEMCALRecoUtils;
30class AliAnalysisFilter;
31class AliESDtrackCuts;
32class AliESDtrack;
33class AliHFEcontainer;
34class AliHFEcuts;
35class AliHFEpid;
36class AliHFEpidQAmanager;
37class AliCFManager;
38
39#include "AliAnalysisTaskSE.h"
8806ce6c 40#include "AliStack.h"
bfc7c23b 41
42class AliAnalysisTaskHFECal : public AliAnalysisTaskSE {
43 public:
44 AliAnalysisTaskHFECal();
45 AliAnalysisTaskHFECal(const char *name);
46 virtual ~AliAnalysisTaskHFECal();
47
48 virtual void UserCreateOutputObjects();
49 virtual void UserExec(Option_t *option);
50 virtual void Terminate(Option_t *);
51
52 void SetHFECuts(AliHFEcuts * const cuts) { fCuts = cuts; };
53 void SetOpeningAngleCut (Double_t openingAngle) {fOpeningAngleCut = openingAngle;};
54 void SetInvariantMassCut (Double_t invmass) {fInvmassCut = invmass;};
85985bb0 55 void SetQAHist (int qahist) {fqahist = qahist;};
bfc7c23b 56 AliHFEpid *GetPID() const { return fPID; }
57 void SetRejectKinkMother(Bool_t rejectKinkMother = kFALSE) { fRejectKinkMother = rejectKinkMother; };
2b4460a6 58 void SelectPhotonicElectron(Int_t itrack, Double_t cent, AliESDtrack *track, Bool_t &fFlagPhotonicElec, Bool_t &fFlagConvinatElec, Double_t nSig, Double_t shower, Double_t ep, Double_t mce, Double_t w, Int_t ibgevent, Bool_t tagpi0, Bool_t tageta);
46305ed6 59 void FindMother(TParticle* part, int &label, int &pid);
8806ce6c 60 double GetMCweight(double mcPi0pT);
93c189c5 61 double GetMCweightEta(double mcEtapT);
fb87d707 62 void FindTriggerClusters();
8efacc22 63 double MCEopMeanCorrection(double pTmc, float central);
09022877 64 double NsigmaCorrection(double tmpeta, float central);
bfc7c23b 65 private:
66
67 Bool_t ProcessCutStep(Int_t cutStep, AliVParticle *track);
68
69 AliESDEvent *fESD; //!ESD object
e7d87aef 70 AliMCEvent *fMC; //!MC object
46305ed6 71 AliStack *stack; //!MC object
fb87d707 72 AliEMCALGeometry *fGeom; // emcal geometry
bfc7c23b 73
74 TList *fOutputList; //! output list
85985bb0 75 Int_t fqahist;
76
bfc7c23b 77 AliESDtrackCuts *fTrackCuts; //! ESD track cuts
78 AliHFEcuts *fCuts; //! Cut Collection
79 Bool_t fIdentifiedAsOutInz; //Out Of Range in z
80 Bool_t fPassTheEventCut; //Pass The Event Cut
81 Bool_t fRejectKinkMother; //Reject Kink Mother
e7d87aef 82 Bool_t fmcData;
bfc7c23b 83 Double_t fVz; //z position of the primary vertex
84 AliCFManager *fCFM; //! Correction Framework Manager
85 AliHFEpid *fPID; //! PID
86 AliHFEpidQAmanager *fPIDqa; //! PID QA manager
87 Double_t fOpeningAngleCut; //openingAngle cut value
88 Double_t fInvmassCut; //invariant mass cut value
fb87d707 89
90 int ftriggers[48][60];//!
91 int ftriggersCut[48][60];//!
92 int ftriggersTime[48][60];//!
93
e7d87aef 94
bfc7c23b 95 TH1F *fNoEvents; //! no of events
96 THnSparseD *fEMCAccE; //! EMC acc
f4e0d2d5 97 TH2F *hEMCAccE; //! EMC acc
bfc7c23b 98 TH1F *fTrkpt; //! track pt
99 TH2F *fTrkEovPBef; //! track E/p before HFE pid
100 TH2F *fTrkEovPAft; //! track E/p after HFE pid
101 TH2F *fdEdxBef; //! track dEdx vs p before HFE pid
102 TH2F *fdEdxAft; //! track dEdx vs p after HFE pid
103 TH2F *fIncpT; //! HFE pid electron vs centrality
fb87d707 104 TH2F *fIncpTM20; //! HFE pid electron vs centrality
f09766dd 105 THnSparseD *fInvmassLS; //! Inv mass of LS (e,e)
106 THnSparseD *fInvmassULS; //! Inv mass of ULS (e,e)
8806ce6c 107 THnSparseD *fInvmassLSmc; //! Inv mass of LS (e,e)
108 THnSparseD *fInvmassULSmc; //! Inv mass of ULS (e,e)
93c189c5 109 TH2D *fInvmassLSmc0; //! Inv mass of ULS (e,e)
110 TH2D *fInvmassLSmc1; //! Inv mass of ULS (e,e)
111 TH2D *fInvmassLSmc2; //! Inv mass of ULS (e,e)
112 TH2D *fInvmassLSmc3; //! Inv mass of ULS (e,e)
113 TH2D *fInvmassULSmc0; //! Inv mass of ULS (e,e)
114 TH2D *fInvmassULSmc1; //! Inv mass of ULS (e,e)
115 TH2D *fInvmassULSmc2; //! Inv mass of ULS (e,e)
116 TH2D *fInvmassULSmc3; //! Inv mass of ULS (e,e)
bfc7c23b 117 TH1F *fOpeningAngleLS; //! opening angle for LS pairs
118 TH1F *fOpeningAngleULS; //! opening angle for ULS pairs
119 TH1F *fPhotoElecPt; //! photonic elec pt
f09766dd 120 TH2F *fPhoElecPt; //! Pho inclusive ele pt
fb87d707 121 TH2F *fPhoElecPtM20; //! Pho inclusive ele pt
f09766dd 122 TH2F *fSameElecPt; //! Same inclusive ele pt
fb87d707 123 TH2F *fSameElecPtM20; //! Same inclusive ele pt
a6df418c 124
bfc7c23b 125 TH1F *fTrackPtBefTrkCuts; //! Track pt before track cuts
126 TH1F *fTrackPtAftTrkCuts; //! Track pt after track cuts
127 TH2F *fTPCnsigma; //! TPC n sigma vs p
128
129 TH1F *fCent; //! centrality
130 THnSparseD *fEleInfo; //! EMC acc
feffe705 131 /*
fb87d707 132 //<---- trigger info
133 TH1F *fClsEBftTrigCut; //Cluster E before trigger selection
134 TH1F *fClsEAftTrigCut; //Cluster E after trigger selection
135 TH1F *fClsEAftTrigCut1; //Cluster E after trigger selection
136 TH1F *fClsEAftTrigCut2; //Cluster E after trigger selection
137 TH1F *fClsEAftTrigCut3; //Cluster E after trigger selection
138 TH1F *fClsEAftTrigCut4; //Cluster E after trigger selection
139 TH2F *fClsETime; //ClsE vs time distribution
140 TH2F *fClsETime1; //ClsE vs time distribution
141 TH1F *fTrigTimes;// trigger time
42c75692 142 TH2F *fCellCheck;// trigger time
feffe705 143 */
e7d87aef 144 //<------ MC
145 TH2F *fInputHFEMC;
feffe705 146 TH2F *fInputAlle;
e7d87aef 147 TH2F *fIncpTMChfe; //! MC HFE pid electron vs centrality
3db00c72 148 TH2F *fIncpTMChfeAll; //! MC HFE pid electron vs centrality
e7d87aef 149 TH2F *fIncpTMCM20hfe; //! MC HFE pid electron vs centrality
3db00c72 150 TH2F *fIncpTMCM20hfeAll; //! MC HFE pid electron vs centrality
60544aea 151 TH2F *fIncpTMCM20hfeCheck; //! MC HFE pid electron vs centrality
bd6ee6dd 152 THnSparseD *fInputHFEMC_weight; //! MC HFE pid electron vs centrality
153 THnSparseD *fIncpTMCM20hfeCheck_weight; //! MC HFE pid electron vs centrality
44be9e1d 154 THnSparseD *fIncpTMCpho; //! MC HFE pid electron vs centrality
155 THnSparseD *fIncpTMCM20pho; //! MC HFE pid electron vs centrality
156 THnSparseD *fPhoElecPtMC; //! Pho inclusive ele pt
157 THnSparseD *fPhoElecPtMCM20; //! Pho inclusive ele pt
158 THnSparseD *fSameElecPtMC; //! Same inclusive ele pt
159 THnSparseD *fSameElecPtMCM20; //! Same inclusive ele pt
e4b0faf2 160 THnSparseD *fIncpTMCM20pho_pi0e; //! MC HFE pid electron vs centrality
161 THnSparseD *fPhoElecPtMCM20_pi0e; //! Pho inclusive ele pt
162 THnSparseD *fSameElecPtMCM20_pi0e; //! Same inclusive ele pt
93c189c5 163 THnSparseD *fIncpTMCM20pho_eta; //! MC HFE pid electron vs centrality
164 THnSparseD *fPhoElecPtMCM20_eta; //! Pho inclusive ele pt
165 THnSparseD *fSameElecPtMCM20_eta; //! Same inclusive ele pt
697ecf6b 166 THnSparseD *fIncpTMCpho_pi0e_TPC; //! MC HFE pid electron vs centrality
167 THnSparseD *fPhoElecPtMC_pi0e_TPC; //! Pho inclusive ele pt
168 THnSparseD *fSameElecPtMC_pi0e_TPC; //! Same inclusive ele pt
d113d7cd 169 TH1D *CheckNclust;
170 TH1D *CheckNits;
68d718e7 171 THnSparseD *Hpi0pTcheck;
172 THnSparseD *HETApTcheck;
e4b0faf2 173 TH2D *HphopTcheck;
5e0e45b3 174 TH2D *HDpTcheck;
175 TH2D *HBpTcheck;
93c189c5 176 TH1D *fpTCheck;
50919258 177 TH2D *fMomDtoE;
70448e3b 178 TH2D *fLabelCheck;
179 TH2D *fgeoFake;
59d998de 180 TH2D *ftimingEle;
d113d7cd 181
09022877 182 //<----- correction
183 TGraphErrors *fnSigEtaCorr[7];
184
185
bfc7c23b 186 AliAnalysisTaskHFECal(const AliAnalysisTaskHFECal&); // not implemented
187 AliAnalysisTaskHFECal& operator=(const AliAnalysisTaskHFECal&); // not implemented
188
189 ClassDef(AliAnalysisTaskHFECal, 1); //!example of analysis
190};
191
192#endif
193
194