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 SetMimpTassCut (Double_t MimpTassCut) {fMimpTassCut = MimpTassCut;};
55 void SetInvariantMassCut (Double_t invmass) {fInvmassCut = invmass;};
56 void SetMassConstraint (Bool_t MassConstraint) { fSetMassConstraint = MassConstraint; };
57 void SetMassWidthCut (Bool_t MassWidthCut) { fSetMassWidthCut = MassWidthCut; };
58 void SetMassCalMethod (Bool_t KFpart) { fSetKFpart = KFpart; };
59 void SetQAHist (int qahist) {fqahist = qahist;};
60 AliHFEpid *GetPID() const { return fPID; }
61 void SetRejectKinkMother(Bool_t rejectKinkMother = kFALSE) { fRejectKinkMother = rejectKinkMother; };
62 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);
63 void SelectPhotonicElectron2(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);
64 double SumpT(Int_t itrack, AliESDtrack *track);
65 void FindMother(TParticle* part, int &label, int &pid);
66 double GetMCweight(double mcPi0pT);
67 double GetMCweightEta(double mcEtapT);
68 void FindTriggerClusters();
69 double MCEopMeanCorrection(double pTmc, float central);
70 double NsigmaCorrection(double tmpeta, float central);
73 Bool_t ProcessCutStep(Int_t cutStep, AliVParticle *track);
75 AliESDEvent *fESD; //!ESD object
76 AliMCEvent *fMC; //!MC object
77 AliStack *stack; //!MC object
78 AliEMCALGeometry *fGeom; // emcal geometry
80 TList *fOutputList; //! output list
83 AliESDtrackCuts *fTrackCuts; //! ESD track cuts
84 AliHFEcuts *fCuts; //! Cut Collection
85 Bool_t fIdentifiedAsOutInz; //Out Of Range in z
86 Bool_t fPassTheEventCut; //Pass The Event Cut
87 Bool_t fRejectKinkMother; //Reject Kink Mother
89 Double_t fVz; //z position of the primary vertex
90 AliCFManager *fCFM; //! Correction Framework Manager
91 AliHFEpid *fPID; //! PID
92 AliHFEpidQAmanager *fPIDqa; //! PID QA manager
93 Double_t fOpeningAngleCut; //openingAngle cut value
94 Double_t fMimpTassCut; //openingAngle cut value
95 Double_t fInvmassCut; //invariant mass cut value
96 Bool_t fSetMassConstraint; // Set mass constraint
97 Bool_t fSetMassWidthCut; // Set mass constraint
98 Bool_t fSetKFpart; // Set mass constraint
100 int ftriggers[48][60];//!
101 int ftriggersCut[48][60];//!
102 int ftriggersTime[48][60];//!
105 TH1F *fNoEvents; //! no of events
106 THnSparseD *fEMCAccE; //! EMC acc
107 TH2F *hEMCAccE; //! EMC acc
108 TH1F *fTrkpt; //! track pt
109 TH2F *fTrkEovPBef; //! track E/p before HFE pid
110 TH2F *fTrkEovPAft; //! track E/p after HFE pid
111 TH2F *fdEdxBef; //! track dEdx vs p before HFE pid
112 TH2F *fdEdxAft; //! track dEdx vs p after HFE pid
113 TH2F *fIncpT; //! HFE pid electron vs centrality
114 TH2F *fIncpTM20; //! HFE pid electron vs centrality
115 THnSparseD *fInvmassLS; //! Inv mass of LS (e,e)
116 THnSparseD *fInvmassULS; //! Inv mass of ULS (e,e)
117 THnSparseD *fInvmassLSmc; //! Inv mass of LS (e,e)
118 THnSparseD *fInvmassULSmc; //! Inv mass of ULS (e,e)
119 TH2D *fInvmassLSreco; //! Inv mass of LS (e,e)
120 TH2D *fInvmassULSreco; //! Inv mass of ULS (e,e)
121 TH2D *fInvmassLSmc0; //! Inv mass of ULS (e,e)
122 TH2D *fInvmassLSmc1; //! Inv mass of ULS (e,e)
123 TH2D *fInvmassLSmc2; //! Inv mass of ULS (e,e)
124 TH2D *fInvmassLSmc3; //! Inv mass of ULS (e,e)
125 TH2D *fInvmassULSmc0; //! Inv mass of ULS (e,e)
126 TH2D *fInvmassULSmc1; //! Inv mass of ULS (e,e)
127 TH2D *fInvmassULSmc2; //! Inv mass of ULS (e,e)
128 TH2D *fInvmassULSmc3; //! Inv mass of ULS (e,e)
129 TH1F *fOpeningAngleLS; //! opening angle for LS pairs
130 TH1F *fOpeningAngleULS; //! opening angle for ULS pairs
131 TH1F *fPhotoElecPt; //! photonic elec pt
132 TH2F *fPhoElecPt; //! Pho inclusive ele pt
133 TH2F *fPhoElecPtM20; //! Pho inclusive ele pt
134 TH2F *fSameElecPt; //! Same inclusive ele pt
135 TH2F *fSameElecPtM20; //! Same inclusive ele pt
137 TH1F *fTrackPtBefTrkCuts; //! Track pt before track cuts
138 TH1F *fTrackPtAftTrkCuts; //! Track pt after track cuts
139 TH2F *fTPCnsigma; //! TPC n sigma vs p
141 TH1F *fCent; //! centrality
142 THnSparseD *fEleInfo; //! EMC acc
143 THnSparseD *fElenSigma; //! EMC acc
146 TH1F *fClsEBftTrigCut; //Cluster E before trigger selection
147 TH1F *fClsEAftTrigCut; //Cluster E after trigger selection
148 TH1F *fClsEAftTrigCut1; //Cluster E after trigger selection
149 TH1F *fClsEAftTrigCut2; //Cluster E after trigger selection
150 TH1F *fClsEAftTrigCut3; //Cluster E after trigger selection
151 TH1F *fClsEAftTrigCut4; //Cluster E after trigger selection
152 TH2F *fClsETime; //ClsE vs time distribution
153 TH2F *fClsETime1; //ClsE vs time distribution
154 TH1F *fTrigTimes;// trigger time
155 TH2F *fCellCheck;// trigger time
160 TH2F *fIncpTMChfe; //! MC HFE pid electron vs centrality
161 TH2F *fIncpTMChfeAll; //! MC HFE pid electron vs centrality
162 TH2F *fIncpTMCM20hfe; //! MC HFE pid electron vs centrality
163 TH2F *fIncpTMCM20hfeAll; //! MC HFE pid electron vs centrality
164 TH2F *fIncpTMCM20hfeCheck; //! MC HFE pid electron vs centrality
165 THnSparseD *fInputHFEMC_weight; //! MC HFE pid electron vs centrality
166 THnSparseD *fIncpTMCM20hfeCheck_weight; //! MC HFE pid electron vs centrality
167 THnSparseD *fIncpTMCpho; //! MC HFE pid electron vs centrality
168 THnSparseD *fIncpTMCM20pho; //! MC HFE pid electron vs centrality
169 THnSparseD *fPhoElecPtMC; //! Pho inclusive ele pt
170 THnSparseD *fPhoElecPtMCM20; //! Pho inclusive ele pt
171 THnSparseD *fSameElecPtMC; //! Same inclusive ele pt
172 THnSparseD *fSameElecPtMCM20; //! Same inclusive ele pt
173 THnSparseD *fIncpTMCM20pho_pi0e; //! MC HFE pid electron vs centrality
174 THnSparseD *fPhoElecPtMCM20_pi0e; //! Pho inclusive ele pt
175 THnSparseD *fSameElecPtMCM20_pi0e; //! Same inclusive ele pt
176 THnSparseD *fIncpTMCM20pho_eta; //! MC HFE pid electron vs centrality
177 THnSparseD *fPhoElecPtMCM20_eta; //! Pho inclusive ele pt
178 THnSparseD *fSameElecPtMCM20_eta; //! Same inclusive ele pt
179 THnSparseD *fIncpTMCpho_pi0e_TPC; //! MC HFE pid electron vs centrality
180 THnSparseD *fPhoElecPtMC_pi0e_TPC; //! Pho inclusive ele pt
181 THnSparseD *fSameElecPtMC_pi0e_TPC; //! Same inclusive ele pt
184 THnSparseD *Hpi0pTcheck;
185 THnSparseD *HETApTcheck;
205 TGraphErrors *fnSigEtaCorr[7];
208 AliAnalysisTaskHFECal(const AliAnalysisTaskHFECal&); // not implemented
209 AliAnalysisTaskHFECal& operator=(const AliAnalysisTaskHFECal&); // not implemented
211 ClassDef(AliAnalysisTaskHFECal, 1); //!example of analysis