]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGHF/hfe/AliHFENonPhotonicElectron.h
Fix of sigmaZ for crossing tracklets from Alex
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliHFENonPhotonicElectron.h
CommitLineData
76d0b522 1#ifndef ALIHFENONPHOTONICELECTRON_H
2#define ALIHFENONPHOTONICELECTRON_H
3
4 /************************************************************************************
5 * *
6 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice *
8 * *
9 * *
10 * *
11 * Task for the Selection of Non-photonic Electron study *
12 * *
13 * Author: R.Bailhache, C.A.Schmidt *
14 * *
15 ************************************************************************************/
16
17#ifndef ROOT_TNamed
18#include <TNamed.h>
19#endif
20
1452614c 21#ifndef ROOT_TArrayD
22#include <TArrayD.h>
23#endif
24
76d0b522 25class AliESDtrackCuts;
26class AliHFEpid;
27class AliHFEpidQAmanager;
28class AliMCEvent;
4437a0d2 29class AliKFVertex;
76d0b522 30class AliVEvent;
31class AliVParticle;
4437a0d2 32class AliVTrack;
76d0b522 33class THnSparse;
34class TClonesArray;
35class TList;
36
37class AliHFENonPhotonicElectron : public TNamed {
38 public:
39
40 typedef enum{
41 kElectronfromconversion = 0,
42 kElectronfromconversionboth = 1,
43 kElectronfrompi0 = 2,
44 kElectronfrompi0both = 3,
45 kElectronfrometa = 4,
46 kElectronfrometaboth = 5,
47 kElectronfromC = 6,
48 kElectronfromB = 7,
49 kElectronfromother = 8,
50 kNoElectron = 9
51 } Source_t;
52
53 typedef enum{
54 kS = 0,
55 kOp = 1
56 } Sign_t;
57
58 AliHFENonPhotonicElectron();
59 AliHFENonPhotonicElectron(const char *name, const Char_t *title);
60 AliHFENonPhotonicElectron &operator=(const AliHFENonPhotonicElectron &ref);
61 virtual ~AliHFENonPhotonicElectron();
62
8a9b2231 63 void SetAOD (Bool_t isAOD) { fIsAOD = isAOD; };
afb48e1d 64 void SetMCEvent (AliMCEvent *mcEvent);
65 void SetAODArrayMCInfo (TClonesArray *aodArrayMCInfo);
8a9b2231 66 void SetHFEBackgroundCuts (AliHFEcuts * const cuts) { fHFEBackgroundCuts = cuts; };
afb48e1d 67 void SetWithWeights(Int_t levelBack);
76d0b522 68
8a9b2231 69 AliHFEpid *GetPIDBackground() const { return fPIDBackground; };
70 AliHFEpidQAmanager *GetPIDBackgroundQAManager() const { return fPIDBackgroundQA; };
afb48e1d 71 Int_t GetLevelBack() const { return fLevelBack; };
76d0b522 72
73 void SetMaxInvMass (Double_t MaxInvMass) { fMaxInvMass = MaxInvMass; };
74 void SetMaxOpening3D (Double_t MaxOpening3D) { fMaxOpening3D = MaxOpening3D; };
959ea9d8 75// void SetMaxOpeningTheta (Double_t MaxOpeningTheta) { fMaxOpeningTheta = MaxOpeningTheta; };
76// void SetMaxOpeningPhi (Double_t MaxOpeningPhi) { fMaxOpeningPhi = MaxOpeningPhi; };
76d0b522 77 void SetAlgorithmMA (Bool_t algorithmMA) { fAlgorithmMA = algorithmMA; };
78 void SetMassConstraint (Bool_t MassConstraint) { fSetMassConstraint = MassConstraint; };
bbeea05b 79 void SetITSMeanShift(Double_t meanshift) { fITSmeanShift = meanshift; }
76d0b522 80
4437a0d2 81 void SelectCategory1Tracks(Bool_t doSelect = kTRUE) { fSelectCategory1tracks = doSelect; }
82 void SelectCategory2Tracks(Bool_t doSelect = kTRUE) { fSelectCategory2tracks = doSelect; }
83
8a9b2231 84 TList *GetListOutput() const { return fListOutput; };
85 THnSparseF *GetAssElectronHisto() const { return fAssElectron; };
86 THnSparseF *GetIncElectronHisto() const { return fIncElectron; };
87 THnSparseF *GetUSignHisto() const { return fUSign; };
88 THnSparseF *GetLSignHisto() const { return fLSign; };
959ea9d8 89// THnSparseF *GetUSignAngleHisto() const { return fUSignAngle; };
90// THnSparseF *GetLSignAngleHisto() const { return fLSignAngle; };
76d0b522 91
92 void Init ();
8a9b2231 93 void InitRun (const AliVEvent *inputEvent, const AliPIDResponse *pidResponse);
94 Int_t FillPoolAssociatedTracks (AliVEvent *inputEvent, Int_t binct=-1);
95 Int_t CountPoolAssociated (AliVEvent *inputEvent, Int_t binct=-1);
afb48e1d 96 Int_t LookAtNonHFE (Int_t iTrack1, AliVTrack *track1, AliVEvent *vEvent, Double_t weight=1., Int_t binct=-1, Double_t deltaphi=-1, Int_t source=-1, Int_t indexmother=-1,Int_t mcQAsource=-1);
76d0b522 97
39427568 98 Int_t FindMother (Int_t tr, Int_t &indexmother) const;
76d0b522 99
1452614c 100 void SetPtBinning(const TArrayD &binning) { fPtBinning = binning; }
101 void SetPtBinning(Int_t nbins, const Double_t *const binning) { fPtBinning.Set(nbins+1, binning); }
102 void SetEtaBinning(const TArrayD &binning) { fEtaBinning = binning; }
103 void SetEtaBinning(Int_t nbins, const Double_t *const binning) { fEtaBinning.Set(nbins+1, binning); }
104
76d0b522 105
106 private:
39427568 107 Int_t GetMotherPDG(Int_t tr, Int_t &motherIndex) const;
108 Int_t CheckPdg (Int_t tr) const;
afb48e1d 109 Double_t Radius (Int_t tr) const;
39427568 110 Int_t IsMotherGamma (Int_t tr) const;
111 Int_t IsMotherPi0 (Int_t tr) const;
112 Int_t IsMotherC (Int_t tr) const;
113 Int_t IsMotherB (Int_t tr) const;
114 Int_t IsMotherEta (Int_t tr) const;
4437a0d2 115 Bool_t MakePairDCA(const AliVTrack *inclusive, const AliVTrack *associated, AliVEvent *vEvent, Bool_t isAOD, Double_t &invMass, Double_t &angle) const;
116 Bool_t MakePairKF(const AliVTrack *inclusive, const AliVTrack *associated, AliKFVertex &primV, Double_t &invMass, Double_t &angle) const;
117 Bool_t FilterCategory1Track(const AliVTrack * const track, Bool_t isAOD, Int_t binct);
118 Bool_t FilterCategory2Track(const AliVTrack * const track, Bool_t isAOD);
119
1452614c 120 Bool_t fIsAOD; // Is AOD
121 AliMCEvent *fMCEvent; //! MC event ESD
122 TClonesArray *fAODArrayMCInfo; //! MC info particle AOD
afb48e1d 123 Int_t fLevelBack; // Level Background
1452614c 124 AliHFEcuts *fHFEBackgroundCuts; // HFE background cuts
afb48e1d 125 AliHFEpid *fPIDBackground; // PID background cuts
1452614c 126 AliHFEpidQAmanager *fPIDBackgroundQA; // QA Manager Background
127 const AliPIDResponse *fkPIDRespons; // PID response
128 TArrayD fPtBinning; // pt binning
129 TArrayD fEtaBinning; // eta binning
130 Bool_t fAlgorithmMA; // algorithm MA
131 Double_t fChi2OverNDFCut; // Limit chi2
132 Double_t fMaxDCA; // Limit dca
133// Double_t fMaxOpeningTheta; // Limit opening angle in theta
134// Double_t fMaxOpeningPhi; // Limit opening angle in phi
135 Double_t fMaxOpening3D; // Limit opening 3D
136 Double_t fMaxInvMass; // Limit invariant mass
137 Bool_t fSetMassConstraint; // Set mass constraint
138 Bool_t fSelectCategory1tracks; // Category 1 tracks: Standard track cuts
139 Bool_t fSelectCategory2tracks; // Category 2 tracks: tracks below 300 MeV/c
140 Double_t fITSmeanShift; // Shift of the mean in the ITS
141 TArrayI *fArraytrack; //! list of associated tracks
142 Int_t fCounterPoolBackground; // number of associated electrons
143 Int_t fnumberfound; // number of inclusive electrons
144 TList *fListOutput; // List of histos
145 THnSparseF *fAssElectron; //! centrality, pt, Source MC, P, TPCsignal
146 THnSparseF *fIncElectron; //! centrality, pt, Source MC, P, TPCsignal
147 THnSparseF *fUSign; //! delta phi, c, pt, inv, source
148 THnSparseF *fLSign; //! delta phi, c, pt, inv, source
149 THnSparseF *fUSmatches; //! number of matched tracks with oposite sign per inclusive track after inv mass cut
150 THnSparseF *fLSmatches; //! number of matched tracks with same sign per inclusive track after inv mass cut
afb48e1d 151 TH2F *fHnsigmaITS; //! Control histogram for ITS pid of category 2 tracks
152 TH2F *fWeightsSource; //! Control histo for sources for weights
153
154 THnSparseF *fIncElectronRadius; //! For fakes
155 THnSparseF *fRecElectronRadius; //! For fakes
1452614c 156// THnSparseF *fUSignAngle; //! angle, c, source
157// THnSparseF *fLSignAngle; //! angle, c, source
76d0b522 158
159
8a9b2231 160 AliHFENonPhotonicElectron(const AliHFENonPhotonicElectron &ref);
76d0b522 161
afb48e1d 162 ClassDef(AliHFENonPhotonicElectron, 4); //!example of analysis
76d0b522 163};
164
165#endif