1 #ifndef ALIANALYSISTASKFLOWTPCEMCALQCSP_H
2 #define ALIANALYSISTASKFLOWTPCEMCALQCSP_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 ////////////////////////////////////////////////////////////////////////
9 // Task for Heavy Flavour Electron Flow TPC plus EMCal //
11 // Author: Andrea Dubla (Utrecht University) //
13 ////////////////////////////////////////////////////////////////////////
23 class AliEMCALGeometry;
24 class AliEMCALRecoUtils;
25 class AliAnalysisFilter;
26 class AliESDtrackCuts;
29 class AliHFEcontainer;
32 class AliHFEpidQAmanager;
34 class AliFlowTrackCuts;
37 class AliFlowCandidateTrack;
38 class AliFlowEventSimple;
40 class AliSelectNonHFE;
42 #include "AliAnalysisTaskSE.h"
44 class AliAnalysisTaskFlowTPCEMCalQCSP : public AliAnalysisTaskSE {
47 AliAnalysisTaskFlowTPCEMCalQCSP();
48 AliAnalysisTaskFlowTPCEMCalQCSP(const char *name);
49 virtual ~AliAnalysisTaskFlowTPCEMCalQCSP();
51 void SetEnableDebugMode() {fDebug = kTRUE; };
52 void SetCentralityParameters(Double_t CentralityMin, Double_t CentralityMax, const char* CentralityMethod); //select centrality
53 void CheckCentrality(AliAODEvent *event,Bool_t ¢ralitypass); //to use only events with the correct centrality....
54 void SelectPhotonicElectron(Int_t itrack,const AliAODTrack *track, Bool_t &fFlagPhotonicElec);
55 void SetInvariantMassCut(Double_t invmass) {fInvmassCut = invmass;};
56 void SetpTCuttrack(Double_t ptcut) {fpTCut = ptcut;};
57 void SetTrigger(Int_t trig) {fTrigger = trig;};
58 void SetAssoTPCCluster(Int_t tpc_clust) {fAssoTPCCluster = tpc_clust;};
59 void SetAssoITSRefit(Bool_t itsref) {fAssoITSRefit = itsref;};
60 void SetFlowSideBands(Bool_t sidebandsflow){fSideBandsFlow = sidebandsflow;}
61 void SelectPhotonicElectronMethod(Bool_t dca){fDCA = dca;}
62 void Setphiminuspsi(Bool_t phipsi){fPhiminusPsi = phipsi;}
63 void SetPurity(Bool_t Purityel){fpurity = Purityel;}
64 template <typename T> void PlotVZeroMultiplcities(const T* event) const;
65 template <typename T> void SetNullCuts(T* aod);
66 void PrepareFlowEvent(Int_t iMulti, AliFlowEvent *FlowEv) const;
67 virtual void UserCreateOutputObjects();
68 virtual void UserExec(Option_t *option);
69 virtual void Terminate(Option_t *);
70 void SetRPCuts(AliFlowTrackCuts *cutsRP) { fCutsRP = cutsRP; }
71 void SetHFECuts(AliHFEcuts * const cuts) { fCuts = cuts; };
72 void SetIDCuts(Double_t minTPC, Double_t maxTPC, Double_t minEovP, Double_t maxEovP, Double_t minM20, Double_t maxM20, Double_t minM02, Double_t maxM02, Double_t Dispersion);
73 void SetOpeningAngleflag(Bool_t opang){fOP_angle = opang;};
74 void SetOpeningAngleCut(Double_t opanglecut) {fOpeningAngleCut = opanglecut;};
79 AliHFEpid *GetPID() const { return fPID; };
83 Bool_t ProcessCutStep(Int_t cutStep, AliVParticle *track);
85 Bool_t fDebug; //! enable debug mode
86 AliAODEvent *fAOD; //AOD object
87 AliEMCALGeometry *fGeom; // emcal geometry
88 TList *fOutputList; //output list
89 AliHFEcuts *fCuts; //Cut Collection
90 Bool_t fIdentifiedAsOutInz; //Out Of Range in z
91 Bool_t fPassTheEventCut; //Pass The Event Cut
92 AliCFManager *fCFM; //!Correction Framework Manager
93 AliHFEpid *fPID; //PID
94 AliHFEpidQAmanager *fPIDqa; //! PID QA manager
95 AliFlowTrackCuts *fCutsRP; // track cuts for reference particles
96 AliFlowTrackCuts *fNullCuts; // dummy cuts for flow event tracks
97 AliFlowEvent *fFlowEvent; //! flow events Inclusive e
98 const char *fkCentralityMethod; // method used to determine centrality (V0 by default)
99 Double_t fCentrality; // event centrality for QA
100 Double_t fCentralityMin; // lower bound of cenrality bin
101 Double_t fCentralityMax; // upper bound of centrality bin
102 Double_t fInvmassCut; //invariant mass cut value
103 Double_t fpTCut; //pt cut value
104 Int_t fTrigger; //invariant mass cut value
105 TH1F *fPhi; //! QA plot of azimuthal distribution of tracks used for event plane estimation
106 TH1F *fEta; //! QA plot of eta distribution of tracks used for event plane estimation
107 TH1F *fVZEROA; //! QA plot vzeroa multiplicity (all tracks in event)
108 TH1F *fVZEROC; //! QA plot vzeroc multiplicity (all tracks in event)
109 TH1F *fTPCM; //! QA plot TPC multiplicity (tracks used for event plane estimation)
110 TH1F *fNoEvents; //no of events
111 TH2F *fTrkEovPBef; //track E/p before HFE pid
112 // TH2F *fdEdxBef; //track dEdx vs p before HFE pid
113 TH1F *fInclusiveElecPt; // Inclusive elec pt
114 TH2F *fTPCnsigma; //TPC n sigma vs p
115 TH2F *fTPCnsigmaAft; //TPC n sigma vs p after HFE pid
116 TH1F *fCentralityPass; // ! QA histogram of events that pass centrality cut
117 TH1F *fCentralityNoPass; //! QA histogram of events that do not pass centrality cut
118 TH1F *fInvmassLS1; //LS Invmass for all rec par
119 TH1F *fInvmassULS1;//ULS Invmass for all rec par
120 TH1F *fPhotoElecPt; //photonic elec pt
121 TH1F *fSemiInclElecPt; //Semi inclusive ele pt
122 TH1F *fULSElecPt; //ULS elec Pt
123 TH1F *fLSElecPt;// LS elec pt
124 Double_t fminTPC; //ID cuts tpc
125 Double_t fmaxTPC; //ID cuts tpc
126 Double_t fminEovP; //ID cuts eovp
127 Double_t fmaxEovP;//ID cuts eovp
128 Double_t fminM20;//ID cuts SS
129 Double_t fmaxM20;//ID cuts SS
130 Double_t fminM02;//ID cuts SS
131 Double_t fmaxM02;//ID cuts SS
132 Double_t fDispersion;//ID cuts SS
133 TH2F *fMultCorAfterCuts; //! QA profile global and tpc multiplicity after outlier cut
134 TH2F *fMultvsCentr; //! QA profile of centralty vs multiplicity
135 TProfile *fSubEventDPhiv2;
139 THnSparseF *fV2Phi;//! v2 analysis of EP-V0
140 THnSparseD *fSparseElectronHadron;//! Trk matching sparse for v1 clusterizer
141 TH1D *fvertex;//huge ThNsparse
142 TH2F *fMultCorBeforeCuts; //! QA profile global and tpc multiplicity after outlier cut
143 Bool_t fSideBandsFlow;//flow from side bands for contamination
144 Bool_t fPhiminusPsi;//flow from phi minus psi method
145 AliFlowEvent *fFlowEventCont; //! flow events for elect Contamination
146 Bool_t fpurity; //for purity evaluation
147 THnSparseD *fSparseElectronpurity;//! Trk matching sparse for v1 clusterizer
148 TH1F *fOpeningAngleLS; //opening angle for LS pairs
149 TH1F *fOpeningAngleULS; //opening angle for ULS pairs
150 AliSelectNonHFE *fNonHFE;//new elienos stuff
151 Bool_t fDCA;//selection PHelectron
152 Double_t fOpeningAngleCut; //openingAngle cut value
153 Bool_t fOP_angle; //to shitch on and off the op_angle cut
154 Int_t fAssoTPCCluster;//asso tpc cluster
155 Bool_t fAssoITSRefit;//asso its refit
158 AliAnalysisTaskFlowTPCEMCalQCSP(const AliAnalysisTaskFlowTPCEMCalQCSP&); // not implemented
159 AliAnalysisTaskFlowTPCEMCalQCSP& operator=(const AliAnalysisTaskFlowTPCEMCalQCSP&); // not implemented
161 ClassDef(AliAnalysisTaskFlowTPCEMCalQCSP, 2); //!example of analysis