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 | |
19 | class THnSparse; |
20 | class TH2F; |
21 | class TLorentzVector; |
22 | |
23 | class AliEMCALTrack; |
24 | class AliMagF; |
25 | class AliESDEvent; |
26 | class AliAODEvent; |
27 | class AliEMCALGeometry; |
28 | class AliEMCALRecoUtils; |
29 | class AliAnalysisFilter; |
30 | class AliESDtrackCuts; |
31 | class AliESDtrack; |
32 | class AliHFEcontainer; |
33 | class AliHFEcuts; |
34 | class AliHFEpid; |
35 | class AliHFEpidQAmanager; |
36 | class AliCFManager; |
37 | |
38 | #include "AliAnalysisTaskSE.h" |
39 | |
40 | class AliAnalysisTaskHFECal : public AliAnalysisTaskSE { |
41 | public: |
42 | AliAnalysisTaskHFECal(); |
43 | AliAnalysisTaskHFECal(const char *name); |
44 | virtual ~AliAnalysisTaskHFECal(); |
45 | |
46 | virtual void UserCreateOutputObjects(); |
47 | virtual void UserExec(Option_t *option); |
48 | virtual void Terminate(Option_t *); |
49 | |
50 | void SetHFECuts(AliHFEcuts * const cuts) { fCuts = cuts; }; |
51 | void SetOpeningAngleCut (Double_t openingAngle) {fOpeningAngleCut = openingAngle;}; |
52 | void SetInvariantMassCut (Double_t invmass) {fInvmassCut = invmass;}; |
53 | AliHFEpid *GetPID() const { return fPID; } |
54 | void SetRejectKinkMother(Bool_t rejectKinkMother = kFALSE) { fRejectKinkMother = rejectKinkMother; }; |
f09766dd |
55 | void SelectPhotonicElectron(Int_t itrack, Double_t cent, AliESDtrack *track, Bool_t &fFlagPhotonicElec, Bool_t &fFlagConvinatElec); |
bfc7c23b |
56 | private: |
57 | |
58 | Bool_t ProcessCutStep(Int_t cutStep, AliVParticle *track); |
59 | |
60 | AliESDEvent *fESD; //!ESD object |
61 | |
62 | TList *fOutputList; //! output list |
63 | |
64 | AliESDtrackCuts *fTrackCuts; //! ESD track cuts |
65 | AliHFEcuts *fCuts; //! Cut Collection |
66 | Bool_t fIdentifiedAsOutInz; //Out Of Range in z |
67 | Bool_t fPassTheEventCut; //Pass The Event Cut |
68 | Bool_t fRejectKinkMother; //Reject Kink Mother |
69 | Double_t fVz; //z position of the primary vertex |
70 | AliCFManager *fCFM; //! Correction Framework Manager |
71 | AliHFEpid *fPID; //! PID |
72 | AliHFEpidQAmanager *fPIDqa; //! PID QA manager |
73 | Double_t fOpeningAngleCut; //openingAngle cut value |
74 | Double_t fInvmassCut; //invariant mass cut value |
75 | |
76 | TH1F *fNoEvents; //! no of events |
77 | THnSparseD *fEMCAccE; //! EMC acc |
78 | TH1F *fTrkpt; //! track pt |
79 | TH2F *fTrkEovPBef; //! track E/p before HFE pid |
80 | TH2F *fTrkEovPAft; //! track E/p after HFE pid |
81 | TH2F *fdEdxBef; //! track dEdx vs p before HFE pid |
82 | TH2F *fdEdxAft; //! track dEdx vs p after HFE pid |
83 | TH2F *fIncpT; //! HFE pid electron vs centrality |
f09766dd |
84 | THnSparseD *fInvmassLS; //! Inv mass of LS (e,e) |
85 | THnSparseD *fInvmassULS; //! Inv mass of ULS (e,e) |
bfc7c23b |
86 | TH1F *fOpeningAngleLS; //! opening angle for LS pairs |
87 | TH1F *fOpeningAngleULS; //! opening angle for ULS pairs |
88 | TH1F *fPhotoElecPt; //! photonic elec pt |
f09766dd |
89 | TH2F *fPhoElecPt; //! Pho inclusive ele pt |
90 | TH2F *fSameElecPt; //! Same inclusive ele pt |
bfc7c23b |
91 | |
92 | TH1F *fTrackPtBefTrkCuts; //! Track pt before track cuts |
93 | TH1F *fTrackPtAftTrkCuts; //! Track pt after track cuts |
94 | TH2F *fTPCnsigma; //! TPC n sigma vs p |
95 | |
96 | TH1F *fCent; //! centrality |
97 | THnSparseD *fEleInfo; //! EMC acc |
98 | |
99 | AliAnalysisTaskHFECal(const AliAnalysisTaskHFECal&); // not implemented |
100 | AliAnalysisTaskHFECal& operator=(const AliAnalysisTaskHFECal&); // not implemented |
101 | |
102 | ClassDef(AliAnalysisTaskHFECal, 1); //!example of analysis |
103 | }; |
104 | |
105 | #endif |
106 | |
107 | |