]>
Commit | Line | Data |
---|---|---|
bcb6ffdb | 1 | #ifndef ALIANALYSISTASKEXTRACTV0_H |
2 | #define ALIANALYSISTASKEXTRACTV0_H | |
3 | ||
4 | /************************************************************************** | |
5 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
6 | * * | |
7 | * Author: The ALICE Off-line Project. * | |
8 | * Contributors are mentioned in the code where appropriate. * | |
9 | * * | |
10 | * Permission to use, copy, modify and distribute this software and its * | |
11 | * documentation strictly for non-commercial purposes is hereby granted * | |
12 | * without fee, provided that the above copyright notice appears in all * | |
13 | * copies and that both the copyright notice and this permission notice * | |
14 | * appear in the supporting documentation. The authors make no claims * | |
15 | * about the suitability of this software for any purpose. It is * | |
16 | * provided "as is" without express or implied warranty. * | |
17 | **************************************************************************/ | |
18 | ||
19 | //----------------------------------------------------------------- | |
20 | // AliAnalysisTaskExtractV0 class | |
21 | // ------------------------------ | |
22 | // | |
23 | // Please see cxx file for more details. | |
24 | // | |
25 | //----------------------------------------------------------------- | |
26 | ||
27 | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
28 | // | |
29 | // --- This version: 23rd March 2012 | |
30 | // | |
31 | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
32 | ||
33 | class TList; | |
34 | class TH1F; | |
35 | class TH2F; | |
36 | class TH3F; | |
37 | class TVector3; | |
38 | class THnSparse; | |
39 | ||
40 | class AliESDpid; | |
41 | class AliESDtrackCuts; | |
23518aa7 | 42 | class AliAnalysisUtils; |
bcb6ffdb | 43 | class AliESDEvent; |
44 | class AliPhysicsSelection; | |
45 | class AliCFContainer; | |
46 | ||
47 | //#include "TString.h" | |
48 | //#include "AliESDtrackCuts.h" | |
49 | #include "AliAnalysisTaskSE.h" | |
50 | ||
51 | class AliAnalysisTaskExtractV0 : public AliAnalysisTaskSE { | |
52 | public: | |
53 | AliAnalysisTaskExtractV0(); | |
54 | AliAnalysisTaskExtractV0(const char *name); | |
55 | virtual ~AliAnalysisTaskExtractV0(); | |
56 | ||
57 | virtual void UserCreateOutputObjects(); | |
58 | virtual void UserExec(Option_t *option); | |
59 | virtual void Terminate(Option_t *); | |
4f8ed367 | 60 | void CheckChargeV0(AliESDv0 *thisv0); |
bcb6ffdb | 61 | |
548bd092 | 62 | void SetIsNuclear (Bool_t lIsNuclear = kTRUE ) { fkIsNuclear = lIsNuclear; } |
048f4f8f | 63 | void SetINT7Trigger (Bool_t lSwitchINT7 = kTRUE ) { fkSwitchINT7 = lSwitchINT7; } |
548bd092 | 64 | void SetUseOnTheFly (Bool_t lUseOnTheFly = kTRUE ) { fkUseOnTheFly = lUseOnTheFly; } |
85b81f83 | 65 | void SetTakeAllTracks (Bool_t lTakeAllTracks = kTRUE ) { fkTakeAllTracks = lTakeAllTracks; } |
e039e6b3 | 66 | void SetCentralityEstimator (TString lCentralityEstimator = "V0M" ) { fCentralityEstimator = lCentralityEstimator; } |
df0fac9b | 67 | void SetLightWeightAnalysis (Bool_t lLightWeight = kTRUE) {fkLightWeight = lLightWeight; } |
c8d4cd4f | 68 | void SetFastOnly (TString lFastOnly = "kFastOnly") {fkFastOnly = lFastOnly; } |
23518aa7 | 69 | void SetpAVertexSelection (Bool_t lpAVertexSelection = kTRUE) {fkpAVertexSelection = lpAVertexSelection; } |
df0fac9b | 70 | |
bcb6ffdb | 71 | private: |
72 | // Note : In ROOT, "//!" means "do not stream the data from Master node to Worker node" ... | |
73 | // your data member object is created on the worker nodes and streaming is not needed. | |
74 | // http://root.cern.ch/download/doc/11InputOutput.pdf, page 14 | |
75 | TList *fListHistV0; //! List of output objects | |
76 | TTree *fTree; //! Output Tree | |
77 | ||
76029adc | 78 | AliPIDResponse *fPIDResponse; // PID response object |
79 | AliESDtrackCuts *fESDtrackCuts; // ESD track cuts used for primary track definition | |
23518aa7 | 80 | AliAnalysisUtils *fUtils; // analysis utils (for pA vertex selection) |
81 | ||
548bd092 | 82 | //Objects Controlling Task Behaviour |
83 | ||
84 | Bool_t fkIsNuclear; // if true, replace multiplicity est. by centrality (default FALSE) | |
048f4f8f | 85 | Bool_t fkSwitchINT7; // if true, skip FASTOnly (default FALSE) |
548bd092 | 86 | Bool_t fkUseOnTheFly; // if true, will use On-the-fly V0s instead of Offline V0s (default FALSE) |
85b81f83 | 87 | Bool_t fkTakeAllTracks; // if true, no TPC crossed rows and ratio cut |
87e78684 | 88 | TString fCentralityEstimator; //Centrality Estimator String value (default V0M, DEPRECATED) |
df0fac9b | 89 | Bool_t fkLightWeight; // if true, analysis output will exclude some non-fundamental |
c8d4cd4f | 90 | // debugging information. This creates smaller output. |
91 | TString fkFastOnly; //"" if no extra selection, "kFastOnly" -> without SDD, "NotkFastOnly" -> With SDD | |
23518aa7 | 92 | Bool_t fkpAVertexSelection; //if true, select vertex with pPb Methods |
bcb6ffdb | 93 | |
548bd092 | 94 | //Variables for Tree |
bcb6ffdb | 95 | Float_t fTreeVariableChi2V0; //! |
96 | Float_t fTreeVariableDcaV0Daughters; //! | |
97 | Float_t fTreeVariableDcaV0ToPrimVertex; //! | |
98 | Float_t fTreeVariableDcaPosToPrimVertex; //! | |
99 | Float_t fTreeVariableDcaNegToPrimVertex; //! | |
100 | Float_t fTreeVariableV0CosineOfPointingAngle; //! | |
101 | Float_t fTreeVariableV0Radius; //! | |
102 | Float_t fTreeVariablePt; //! | |
103 | Float_t fTreeVariableRapK0Short; //! | |
104 | Float_t fTreeVariableRapLambda; //! | |
105 | Float_t fTreeVariableInvMassK0s; //! | |
106 | Float_t fTreeVariableInvMassLambda; //! | |
107 | Float_t fTreeVariableInvMassAntiLambda; //! | |
108 | Float_t fTreeVariableAlphaV0; //! | |
109 | Float_t fTreeVariablePtArmV0;//! | |
110 | Float_t fTreeVariableNegTotMomentum; //! | |
111 | Float_t fTreeVariablePosTotMomentum; //! | |
112 | Float_t fTreeVariableNegdEdxSig; //! | |
113 | Float_t fTreeVariablePosdEdxSig; //! | |
114 | Float_t fTreeVariableNegEta; //! | |
115 | Float_t fTreeVariablePosEta; //! | |
116 | ||
117 | Float_t fTreeVariableNSigmasPosProton; //! | |
118 | Float_t fTreeVariableNSigmasPosPion; //! | |
119 | Float_t fTreeVariableNSigmasNegProton; //! | |
120 | Float_t fTreeVariableNSigmasNegPion; //! | |
121 | ||
122 | Float_t fTreeVariableDistOverTotMom;//! | |
123 | Int_t fTreeVariableLeastNbrCrossedRows;//! | |
124 | Float_t fTreeVariableLeastRatioCrossedRowsOverFindable;//! | |
125 | Int_t fTreeVariableMultiplicity ;//! | |
d0e77a8c | 126 | Int_t fTreeVariableMultiplicityV0A ;//! |
127 | Int_t fTreeVariableMultiplicityZNA ;//! | |
128 | Int_t fTreeVariableMultiplicityTRK ;//! | |
129 | Int_t fTreeVariableMultiplicitySPD ;//! | |
bcb6ffdb | 130 | |
0eebce93 | 131 | Int_t fTreeVariableRunNumber; //! |
132 | ULong64_t fTreeVariableEventNumber; //! | |
133 | ||
57d075b9 | 134 | Float_t fTreeVariableV0x; //! |
135 | Float_t fTreeVariableV0y; //! | |
136 | Float_t fTreeVariableV0z; //! | |
137 | ||
138 | Float_t fTreeVariableV0Px; //! | |
139 | Float_t fTreeVariableV0Py; //! | |
140 | Float_t fTreeVariableV0Pz; //! | |
bcb6ffdb | 141 | |
653265df | 142 | Float_t fTreeVariablePVx; //! |
143 | Float_t fTreeVariablePVy; //! | |
144 | Float_t fTreeVariablePVz; //! | |
3db9b379 | 145 | |
146 | //Decay Length issue debugging: ULong_t with track status | |
147 | ULong64_t fTreeVariableNegTrackStatus; | |
148 | ULong64_t fTreeVariablePosTrackStatus; | |
149 | ||
bcb6ffdb | 150 | //Note: TDistOverTotMom needs a mass hypothesis to be converted to proper decaylength. |
151 | ||
152 | TH1F *fHistV0MultiplicityBeforeTrigSel; //! V0 multiplicity distribution | |
153 | TH1F *fHistV0MultiplicityForTrigEvt; //! V0 multiplicity distribution | |
154 | TH1F *fHistV0MultiplicityForSelEvt; //! V0 multiplicity distribution | |
155 | TH1F *fHistV0MultiplicityForSelEvtNoTPCOnly; //! V0 multiplicity distribution | |
156 | TH1F *fHistV0MultiplicityForSelEvtNoTPCOnlyNoPileup;//! V0 multiplicity distribution | |
157 | ||
158 | TH1F *fHistMultiplicityBeforeTrigSel; //! multiplicity distribution | |
159 | TH1F *fHistMultiplicityForTrigEvt; //! multiplicity distribution | |
160 | TH1F *fHistMultiplicity; //! multiplicity distribution | |
161 | TH1F *fHistMultiplicityNoTPCOnly; //! multiplicity distribution | |
162 | TH1F *fHistMultiplicityNoTPCOnlyNoPileup; //! multiplicity distribution | |
163 | ||
d0e77a8c | 164 | //V0A Centrality |
165 | TH1F *fHistMultiplicityV0ABeforeTrigSel; //! multiplicity distribution | |
166 | TH1F *fHistMultiplicityV0AForTrigEvt; //! multiplicity distribution | |
167 | TH1F *fHistMultiplicityV0A; //! multiplicity distribution | |
168 | TH1F *fHistMultiplicityV0ANoTPCOnly; //! multiplicity distribution | |
169 | TH1F *fHistMultiplicityV0ANoTPCOnlyNoPileup; //! multiplicity distribution | |
170 | ||
171 | //ZNA Centrality | |
172 | TH1F *fHistMultiplicityZNABeforeTrigSel; //! multiplicity distribution | |
173 | TH1F *fHistMultiplicityZNAForTrigEvt; //! multiplicity distribution | |
174 | TH1F *fHistMultiplicityZNA; //! multiplicity distribution | |
175 | TH1F *fHistMultiplicityZNANoTPCOnly; //! multiplicity distribution | |
176 | TH1F *fHistMultiplicityZNANoTPCOnlyNoPileup; //! multiplicity distribution | |
177 | ||
178 | //TRK Centrality | |
179 | TH1F *fHistMultiplicityTRKBeforeTrigSel; //! multiplicity distribution | |
180 | TH1F *fHistMultiplicityTRKForTrigEvt; //! multiplicity distribution | |
181 | TH1F *fHistMultiplicityTRK; //! multiplicity distribution | |
182 | TH1F *fHistMultiplicityTRKNoTPCOnly; //! multiplicity distribution | |
183 | TH1F *fHistMultiplicityTRKNoTPCOnlyNoPileup; //! multiplicity distribution | |
184 | ||
185 | //SPD Centrality | |
186 | TH1F *fHistMultiplicitySPDBeforeTrigSel; //! multiplicity distribution | |
187 | TH1F *fHistMultiplicitySPDForTrigEvt; //! multiplicity distribution | |
188 | TH1F *fHistMultiplicitySPD; //! multiplicity distribution | |
189 | TH1F *fHistMultiplicitySPDNoTPCOnly; //! multiplicity distribution | |
190 | TH1F *fHistMultiplicitySPDNoTPCOnlyNoPileup; //! multiplicity distribution | |
191 | ||
192 | ||
1d94e33b | 193 | //Raw Data for Vertex Z position estimator change |
194 | TH2F *f2dHistMultiplicityVsVertexZBeforeTrigSel; //! multiplicity distribution | |
195 | TH2F *f2dHistMultiplicityVsVertexZForTrigEvt; //! multiplicity distribution | |
196 | TH2F *f2dHistMultiplicityVsVertexZ; //! multiplicity distribution | |
197 | TH2F *f2dHistMultiplicityVsVertexZNoTPCOnly; //! multiplicity distribution | |
198 | TH2F *f2dHistMultiplicityVsVertexZNoTPCOnlyNoPileup; //! multiplicity distribution | |
199 | ||
200 | ||
bcb6ffdb | 201 | TH1F *fHistPVx; //! multiplicity distribution |
202 | TH1F *fHistPVy; //! multiplicity distribution | |
203 | TH1F *fHistPVz; //! multiplicity distribution | |
204 | TH1F *fHistPVxAnalysis; //! multiplicity distribution | |
205 | TH1F *fHistPVyAnalysis; //! multiplicity distribution | |
206 | TH1F *fHistPVzAnalysis; //! multiplicity distribution | |
4f8ed367 | 207 | TH1F *fHistSwappedV0Counter; //! Swapped V0 Counter |
bcb6ffdb | 208 | |
209 | AliAnalysisTaskExtractV0(const AliAnalysisTaskExtractV0&); // not implemented | |
210 | AliAnalysisTaskExtractV0& operator=(const AliAnalysisTaskExtractV0&); // not implemented | |
211 | ||
212 | ClassDef(AliAnalysisTaskExtractV0, 11); | |
213 | }; | |
214 | ||
215 | #endif |