1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 #ifndef ALIANALYSISTASKHFECAL_H
17 #define ALIANALYSISTASKHFECAL_H
28 class AliEMCALGeometry;
29 class AliEMCALRecoUtils;
30 class AliAnalysisFilter;
31 class AliESDtrackCuts;
33 class AliHFEcontainer;
36 class AliHFEpidQAmanager;
39 #include "AliAnalysisTaskSE.h"
42 class AliAnalysisTaskHFECal : public AliAnalysisTaskSE {
44 AliAnalysisTaskHFECal();
45 AliAnalysisTaskHFECal(const char *name);
46 virtual ~AliAnalysisTaskHFECal();
48 virtual void UserCreateOutputObjects();
49 virtual void UserExec(Option_t *option);
50 virtual void Terminate(Option_t *);
52 void SetHFECuts(AliHFEcuts * const cuts) { fCuts = cuts; };
53 void SetOpeningAngleCut (Double_t openingAngle) {fOpeningAngleCut = openingAngle;};
54 void SetInvariantMassCut (Double_t invmass) {fInvmassCut = invmass;};
55 void SetMassConstraint (Bool_t MassConstraint) { fSetMassConstraint = MassConstraint; };
56 void SetQAHist (int qahist) {fqahist = qahist;};
57 AliHFEpid *GetPID() const { return fPID; }
58 void SetRejectKinkMother(Bool_t rejectKinkMother = kFALSE) { fRejectKinkMother = rejectKinkMother; };
59 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);
60 double SumpT(Int_t itrack, AliESDtrack *track);
61 void FindMother(TParticle* part, int &label, int &pid);
62 double GetMCweight(double mcPi0pT);
63 double GetMCweightEta(double mcEtapT);
64 void FindTriggerClusters();
65 double MCEopMeanCorrection(double pTmc, float central);
66 double NsigmaCorrection(double tmpeta, float central);
69 Bool_t ProcessCutStep(Int_t cutStep, AliVParticle *track);
71 AliESDEvent *fESD; //!ESD object
72 AliMCEvent *fMC; //!MC object
73 AliStack *stack; //!MC object
74 AliEMCALGeometry *fGeom; // emcal geometry
76 TList *fOutputList; //! output list
79 AliESDtrackCuts *fTrackCuts; //! ESD track cuts
80 AliHFEcuts *fCuts; //! Cut Collection
81 Bool_t fIdentifiedAsOutInz; //Out Of Range in z
82 Bool_t fPassTheEventCut; //Pass The Event Cut
83 Bool_t fRejectKinkMother; //Reject Kink Mother
85 Double_t fVz; //z position of the primary vertex
86 AliCFManager *fCFM; //! Correction Framework Manager
87 AliHFEpid *fPID; //! PID
88 AliHFEpidQAmanager *fPIDqa; //! PID QA manager
89 Double_t fOpeningAngleCut; //openingAngle cut value
90 Double_t fInvmassCut; //invariant mass cut value
91 Bool_t fSetMassConstraint; // Set mass constraint
93 int ftriggers[48][60];//!
94 int ftriggersCut[48][60];//!
95 int ftriggersTime[48][60];//!
98 TH1F *fNoEvents; //! no of events
99 THnSparseD *fEMCAccE; //! EMC acc
100 TH2F *hEMCAccE; //! EMC acc
101 TH1F *fTrkpt; //! track pt
102 TH2F *fTrkEovPBef; //! track E/p before HFE pid
103 TH2F *fTrkEovPAft; //! track E/p after HFE pid
104 TH2F *fdEdxBef; //! track dEdx vs p before HFE pid
105 TH2F *fdEdxAft; //! track dEdx vs p after HFE pid
106 TH2F *fIncpT; //! HFE pid electron vs centrality
107 TH2F *fIncpTM20; //! HFE pid electron vs centrality
108 THnSparseD *fInvmassLS; //! Inv mass of LS (e,e)
109 THnSparseD *fInvmassULS; //! Inv mass of ULS (e,e)
110 THnSparseD *fInvmassLSmc; //! Inv mass of LS (e,e)
111 THnSparseD *fInvmassULSmc; //! Inv mass of ULS (e,e)
112 TH2D *fInvmassLSreco; //! Inv mass of LS (e,e)
113 TH2D *fInvmassULSreco; //! Inv mass of ULS (e,e)
114 TH2D *fInvmassLSmc0; //! Inv mass of ULS (e,e)
115 TH2D *fInvmassLSmc1; //! Inv mass of ULS (e,e)
116 TH2D *fInvmassLSmc2; //! Inv mass of ULS (e,e)
117 TH2D *fInvmassLSmc3; //! Inv mass of ULS (e,e)
118 TH2D *fInvmassULSmc0; //! Inv mass of ULS (e,e)
119 TH2D *fInvmassULSmc1; //! Inv mass of ULS (e,e)
120 TH2D *fInvmassULSmc2; //! Inv mass of ULS (e,e)
121 TH2D *fInvmassULSmc3; //! Inv mass of ULS (e,e)
122 TH1F *fOpeningAngleLS; //! opening angle for LS pairs
123 TH1F *fOpeningAngleULS; //! opening angle for ULS pairs
124 TH1F *fPhotoElecPt; //! photonic elec pt
125 TH2F *fPhoElecPt; //! Pho inclusive ele pt
126 TH2F *fPhoElecPtM20; //! Pho inclusive ele pt
127 TH2F *fSameElecPt; //! Same inclusive ele pt
128 TH2F *fSameElecPtM20; //! Same inclusive ele pt
130 TH1F *fTrackPtBefTrkCuts; //! Track pt before track cuts
131 TH1F *fTrackPtAftTrkCuts; //! Track pt after track cuts
132 TH2F *fTPCnsigma; //! TPC n sigma vs p
134 TH1F *fCent; //! centrality
135 THnSparseD *fEleInfo; //! EMC acc
136 THnSparseD *fElenSigma; //! EMC acc
139 TH1F *fClsEBftTrigCut; //Cluster E before trigger selection
140 TH1F *fClsEAftTrigCut; //Cluster E after trigger selection
141 TH1F *fClsEAftTrigCut1; //Cluster E after trigger selection
142 TH1F *fClsEAftTrigCut2; //Cluster E after trigger selection
143 TH1F *fClsEAftTrigCut3; //Cluster E after trigger selection
144 TH1F *fClsEAftTrigCut4; //Cluster E after trigger selection
145 TH2F *fClsETime; //ClsE vs time distribution
146 TH2F *fClsETime1; //ClsE vs time distribution
147 TH1F *fTrigTimes;// trigger time
148 TH2F *fCellCheck;// trigger time
153 TH2F *fIncpTMChfe; //! MC HFE pid electron vs centrality
154 TH2F *fIncpTMChfeAll; //! MC HFE pid electron vs centrality
155 TH2F *fIncpTMCM20hfe; //! MC HFE pid electron vs centrality
156 TH2F *fIncpTMCM20hfeAll; //! MC HFE pid electron vs centrality
157 TH2F *fIncpTMCM20hfeCheck; //! MC HFE pid electron vs centrality
158 THnSparseD *fInputHFEMC_weight; //! MC HFE pid electron vs centrality
159 THnSparseD *fIncpTMCM20hfeCheck_weight; //! MC HFE pid electron vs centrality
160 THnSparseD *fIncpTMCpho; //! MC HFE pid electron vs centrality
161 THnSparseD *fIncpTMCM20pho; //! MC HFE pid electron vs centrality
162 THnSparseD *fPhoElecPtMC; //! Pho inclusive ele pt
163 THnSparseD *fPhoElecPtMCM20; //! Pho inclusive ele pt
164 THnSparseD *fSameElecPtMC; //! Same inclusive ele pt
165 THnSparseD *fSameElecPtMCM20; //! Same inclusive ele pt
166 THnSparseD *fIncpTMCM20pho_pi0e; //! MC HFE pid electron vs centrality
167 THnSparseD *fPhoElecPtMCM20_pi0e; //! Pho inclusive ele pt
168 THnSparseD *fSameElecPtMCM20_pi0e; //! Same inclusive ele pt
169 THnSparseD *fIncpTMCM20pho_eta; //! MC HFE pid electron vs centrality
170 THnSparseD *fPhoElecPtMCM20_eta; //! Pho inclusive ele pt
171 THnSparseD *fSameElecPtMCM20_eta; //! Same inclusive ele pt
172 THnSparseD *fIncpTMCpho_pi0e_TPC; //! MC HFE pid electron vs centrality
173 THnSparseD *fPhoElecPtMC_pi0e_TPC; //! Pho inclusive ele pt
174 THnSparseD *fSameElecPtMC_pi0e_TPC; //! Same inclusive ele pt
177 THnSparseD *Hpi0pTcheck;
178 THnSparseD *HETApTcheck;
195 TGraphErrors *fnSigEtaCorr[7];
198 AliAnalysisTaskHFECal(const AliAnalysisTaskHFECal&); // not implemented
199 AliAnalysisTaskHFECal& operator=(const AliAnalysisTaskHFECal&); // not implemented
201 ClassDef(AliAnalysisTaskHFECal, 1); //!example of analysis