]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGHF/hfe/AliAnalysisTaskElecV2.h
Possibility to select the Lc resonant channel in the MC analysis (Rossella)
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliAnalysisTaskElecV2.h
CommitLineData
1d08b6e8 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 ALIANALYSISTASKELECV2_H
17#define ALIANALYSISTASKELECV2_H
18
19class THnSparse;
20class TH2F;
21class TLorentzVector;
22
23class AliEMCALTrack;
24class AliMagF;
25class AliESDEvent;
26class AliAODEvent;
27class AliEMCALGeometry;
28class AliEMCALRecoUtils;
29class AliAnalysisFilter;
30class AliESDtrackCuts;
31class AliESDtrack;
32class AliHFEcontainer;
33class AliHFEcuts;
34class AliHFEpid;
35class AliHFEpidQAmanager;
36class AliCFManager;
37
38#include "AliAnalysisTaskSE.h"
39
40class AliAnalysisTaskElecV2 : public AliAnalysisTaskSE {
41 public:
42 AliAnalysisTaskElecV2();
43 AliAnalysisTaskElecV2(const char *name);
44 virtual ~AliAnalysisTaskElecV2();
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; };
55 void SelectPhotonicElectron(Int_t itrack, AliESDtrack *track, Bool_t &fFlagPhotonicElec);
56 Double_t GetCos2DeltaPhi(Double_t phiA,Double_t phiB) const;
57 Double_t GetDeltaPhi(Double_t phiA,Double_t phiB) const;
b1a1875f 58 Double_t GetclusterE(Int_t iTrack, Double_t clsPhi, Double_t clsEta) const;
1d08b6e8 59 private:
60
61 Bool_t ProcessCutStep(Int_t cutStep, AliVParticle *track);
62
63 AliESDEvent *fESD; //!ESD object
3a94d6fe 64 AliMCEvent *fMC; //!MC object
1d08b6e8 65
66 TList *fOutputList; //! output list
67
68 AliESDtrackCuts *fTrackCuts; //! ESD track cuts
69 AliHFEcuts *fCuts; //! Cut Collection
70 Bool_t fIdentifiedAsOutInz; //Out Of Range in z
71 Bool_t fPassTheEventCut; //Pass The Event Cut
72 Bool_t fRejectKinkMother; //Reject Kink Mother
3a94d6fe 73 Bool_t fIsMC;
1d08b6e8 74 Double_t fVz; //z position of the primary vertex
75 AliCFManager *fCFM; //! Correction Framework Manager
76 AliHFEpid *fPID; //! PID
77 AliHFEpidQAmanager *fPIDqa; //! PID QA manager
78 Double_t fOpeningAngleCut; //openingAngle cut value
79 Double_t fInvmassCut; //invariant mass cut value
80
81 TH1F *fNoEvents; //! no of events
82 TH1F *fTrkpt; //! track pt
83 TH2F *fTrkEovPBef; //! track E/p before HFE pid
84 TH2F *fTrkEovPAft; //! track E/p after HFE pid
85 TH2F *fdEdxBef; //! track dEdx vs p before HFE pid
86 TH2F *fdEdxAft; //! track dEdx vs p after HFE pid
87 TH1F *fInvmassLS; //! Inv mass of LS (e,e)
88 TH1F *fInvmassULS; //! Inv mass of ULS (e,e)
89 TH1F *fOpeningAngleLS; //! opening angle for LS pairs
90 TH1F *fOpeningAngleULS; //! opening angle for ULS pairs
91 TH1F *fPhotoElecPt; //! photonic elec pt
92 TH1F *fSemiInclElecPt; //! Semi inclusive ele pt
3a94d6fe 93 THnSparse *fMCphotoElecPt; //! pt distribution (MC)
1d08b6e8 94
95 TH1F *fTrackPtBefTrkCuts; //! Track pt before track cuts
96 TH1F *fTrackPtAftTrkCuts; //! Track pt after track cuts
97 TH2F *fTPCnsigma; //! TPC n sigma vs p
98
99 TH1F *fCent; //! centrality
44fdf7ac 100 TH1F *fevPlaneV0A; //! V0A event plane distribution
101 TH1F *fevPlaneV0C; //! V0C event plane distribution
102 TH1F *fevPlaneTPC; //! TPC event plane distribution
1d08b6e8 103 TH2F *fTPCsubEPres; //! TPC event plane resolution
104 THnSparse *fEPres; //! event plane resolution
105 THnSparse *fCorr; //! correlations
106 THnSparse *feTPCV2; //! inclusive eletron v2 (only TPC PID)
107 THnSparse *feV2; //! inclusive eletron v2 (TPC + EMCAL PID)
108 THnSparse *fphoteV2; //! photonic electron v2 (TPC + EMCAL PID)
109 THnSparse *fChargPartV2; //! charged particle v2
110
111 AliAnalysisTaskElecV2(const AliAnalysisTaskElecV2&); // not implemented
112 AliAnalysisTaskElecV2& operator=(const AliAnalysisTaskElecV2&); // not implemented
113
114 ClassDef(AliAnalysisTaskElecV2, 1); //!example of analysis
115};
116
117#endif
118
119