]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/STRANGENESS/LambdaK0/AliAnalysisTaskExtractV0.h
Modification to allow switching on and off pileup rejection for cross-checking false...
[u/mrichter/AliRoot.git] / PWGLF / STRANGENESS / LambdaK0 / AliAnalysisTaskExtractV0.h
CommitLineData
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
33class TList;
34class TH1F;
35class TH2F;
36class TH3F;
37class TVector3;
38class THnSparse;
39
40class AliESDpid;
41class AliESDtrackCuts;
23518aa7 42class AliAnalysisUtils;
bcb6ffdb 43class AliESDEvent;
44class AliPhysicsSelection;
45class AliCFContainer;
46
47//#include "TString.h"
48//#include "AliESDtrackCuts.h"
49#include "AliAnalysisTaskSE.h"
50
51class 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
af819bba 62//---------------------------------------------------------------------------------------
63
548bd092 64 void SetIsNuclear (Bool_t lIsNuclear = kTRUE ) { fkIsNuclear = lIsNuclear; }
048f4f8f 65 void SetINT7Trigger (Bool_t lSwitchINT7 = kTRUE ) { fkSwitchINT7 = lSwitchINT7; }
548bd092 66 void SetUseOnTheFly (Bool_t lUseOnTheFly = kTRUE ) { fkUseOnTheFly = lUseOnTheFly; }
85b81f83 67 void SetTakeAllTracks (Bool_t lTakeAllTracks = kTRUE ) { fkTakeAllTracks = lTakeAllTracks; }
e039e6b3 68 void SetCentralityEstimator (TString lCentralityEstimator = "V0M" ) { fCentralityEstimator = lCentralityEstimator; }
df0fac9b 69 void SetLightWeightAnalysis (Bool_t lLightWeight = kTRUE) {fkLightWeight = lLightWeight; }
c8d4cd4f 70 void SetFastOnly (TString lFastOnly = "kFastOnly") {fkFastOnly = lFastOnly; }
23518aa7 71 void SetpAVertexSelection (Bool_t lpAVertexSelection = kTRUE) {fkpAVertexSelection = lpAVertexSelection; }
f0813b85 72 void SetRunV0Vertexer ( Bool_t lRunV0Vertexer = kTRUE) { fkRunV0Vertexer = lRunV0Vertexer; }
df0fac9b 73
af819bba 74//---------------------------------------------------------------------------------------
75//Setters for the V0 Vertexer Parameters
76 void SetV0VertexerMaxChisquare ( Double_t lParameter ){ fV0Sels[0] = lParameter; }
77 void SetV0VertexerDCAFirstToPV ( Double_t lParameter ){ fV0Sels[1] = lParameter; }
78 void SetV0VertexerDCASecondtoPV ( Double_t lParameter ){ fV0Sels[2] = lParameter; }
79 void SetV0VertexerDCAV0Daughters ( Double_t lParameter ){ fV0Sels[3] = lParameter; }
80 void SetV0VertexerCosinePA ( Double_t lParameter ){ fV0Sels[4] = lParameter; }
81 void SetV0VertexerMinRadius ( Double_t lParameter ){ fV0Sels[5] = lParameter; }
82 void SetV0VertexerMaxRadius ( Double_t lParameter ){ fV0Sels[6] = lParameter; }
83//---------------------------------------------------------------------------------------
84
bcb6ffdb 85 private:
86 // Note : In ROOT, "//!" means "do not stream the data from Master node to Worker node" ...
87 // your data member object is created on the worker nodes and streaming is not needed.
88 // http://root.cern.ch/download/doc/11InputOutput.pdf, page 14
89 TList *fListHistV0; //! List of output objects
90 TTree *fTree; //! Output Tree
91
76029adc 92 AliPIDResponse *fPIDResponse; // PID response object
93 AliESDtrackCuts *fESDtrackCuts; // ESD track cuts used for primary track definition
23518aa7 94 AliAnalysisUtils *fUtils; // analysis utils (for pA vertex selection)
95
548bd092 96 //Objects Controlling Task Behaviour
97
98 Bool_t fkIsNuclear; // if true, replace multiplicity est. by centrality (default FALSE)
048f4f8f 99 Bool_t fkSwitchINT7; // if true, skip FASTOnly (default FALSE)
548bd092 100 Bool_t fkUseOnTheFly; // if true, will use On-the-fly V0s instead of Offline V0s (default FALSE)
85b81f83 101 Bool_t fkTakeAllTracks; // if true, no TPC crossed rows and ratio cut
87e78684 102 TString fCentralityEstimator; //Centrality Estimator String value (default V0M, DEPRECATED)
df0fac9b 103 Bool_t fkLightWeight; // if true, analysis output will exclude some non-fundamental
c8d4cd4f 104 // debugging information. This creates smaller output.
105 TString fkFastOnly; //"" if no extra selection, "kFastOnly" -> without SDD, "NotkFastOnly" -> With SDD
23518aa7 106 Bool_t fkpAVertexSelection; //if true, select vertex with pPb Methods
f0813b85 107 Bool_t fkRunV0Vertexer; //if true, re-run vertexer with loose cuts. CARE MUST BE TAKEN in PbPb!
108
109 Double_t fV0Sels[7]; // Array to store the 7 values for the different selections V0 related
bcb6ffdb 110
548bd092 111 //Variables for Tree
bcb6ffdb 112 Float_t fTreeVariableChi2V0; //!
113 Float_t fTreeVariableDcaV0Daughters; //!
114 Float_t fTreeVariableDcaV0ToPrimVertex; //!
115 Float_t fTreeVariableDcaPosToPrimVertex; //!
116 Float_t fTreeVariableDcaNegToPrimVertex; //!
117 Float_t fTreeVariableV0CosineOfPointingAngle; //!
118 Float_t fTreeVariableV0Radius; //!
119 Float_t fTreeVariablePt; //!
120 Float_t fTreeVariableRapK0Short; //!
121 Float_t fTreeVariableRapLambda; //!
122 Float_t fTreeVariableInvMassK0s; //!
123 Float_t fTreeVariableInvMassLambda; //!
124 Float_t fTreeVariableInvMassAntiLambda; //!
125 Float_t fTreeVariableAlphaV0; //!
126 Float_t fTreeVariablePtArmV0;//!
127 Float_t fTreeVariableNegTotMomentum; //!
128 Float_t fTreeVariablePosTotMomentum; //!
129 Float_t fTreeVariableNegdEdxSig; //!
130 Float_t fTreeVariablePosdEdxSig; //!
131 Float_t fTreeVariableNegEta; //!
132 Float_t fTreeVariablePosEta; //!
133
134 Float_t fTreeVariableNSigmasPosProton; //!
135 Float_t fTreeVariableNSigmasPosPion; //!
136 Float_t fTreeVariableNSigmasNegProton; //!
137 Float_t fTreeVariableNSigmasNegPion; //!
138
139 Float_t fTreeVariableDistOverTotMom;//!
140 Int_t fTreeVariableLeastNbrCrossedRows;//!
141 Float_t fTreeVariableLeastRatioCrossedRowsOverFindable;//!
142 Int_t fTreeVariableMultiplicity ;//!
d0e77a8c 143 Int_t fTreeVariableMultiplicityV0A ;//!
144 Int_t fTreeVariableMultiplicityZNA ;//!
145 Int_t fTreeVariableMultiplicityTRK ;//!
146 Int_t fTreeVariableMultiplicitySPD ;//!
bcb6ffdb 147
0eebce93 148 Int_t fTreeVariableRunNumber; //!
149 ULong64_t fTreeVariableEventNumber; //!
150
57d075b9 151 Float_t fTreeVariableV0x; //!
152 Float_t fTreeVariableV0y; //!
153 Float_t fTreeVariableV0z; //!
154
155 Float_t fTreeVariableV0Px; //!
156 Float_t fTreeVariableV0Py; //!
157 Float_t fTreeVariableV0Pz; //!
bcb6ffdb 158
653265df 159 Float_t fTreeVariablePVx; //!
160 Float_t fTreeVariablePVy; //!
161 Float_t fTreeVariablePVz; //!
3db9b379 162
163 //Decay Length issue debugging: ULong_t with track status
164 ULong64_t fTreeVariableNegTrackStatus;
165 ULong64_t fTreeVariablePosTrackStatus;
166
bcb6ffdb 167//Note: TDistOverTotMom needs a mass hypothesis to be converted to proper decaylength.
168
af819bba 169//---------------------------------------------------------------------------------------
170
bcb6ffdb 171 TH1F *fHistV0MultiplicityBeforeTrigSel; //! V0 multiplicity distribution
172 TH1F *fHistV0MultiplicityForTrigEvt; //! V0 multiplicity distribution
173 TH1F *fHistV0MultiplicityForSelEvt; //! V0 multiplicity distribution
174 TH1F *fHistV0MultiplicityForSelEvtNoTPCOnly; //! V0 multiplicity distribution
175 TH1F *fHistV0MultiplicityForSelEvtNoTPCOnlyNoPileup;//! V0 multiplicity distribution
176
177 TH1F *fHistMultiplicityBeforeTrigSel; //! multiplicity distribution
178 TH1F *fHistMultiplicityForTrigEvt; //! multiplicity distribution
179 TH1F *fHistMultiplicity; //! multiplicity distribution
180 TH1F *fHistMultiplicityNoTPCOnly; //! multiplicity distribution
181 TH1F *fHistMultiplicityNoTPCOnlyNoPileup; //! multiplicity distribution
182
d0e77a8c 183 //V0A Centrality
184 TH1F *fHistMultiplicityV0ABeforeTrigSel; //! multiplicity distribution
185 TH1F *fHistMultiplicityV0AForTrigEvt; //! multiplicity distribution
186 TH1F *fHistMultiplicityV0A; //! multiplicity distribution
187 TH1F *fHistMultiplicityV0ANoTPCOnly; //! multiplicity distribution
188 TH1F *fHistMultiplicityV0ANoTPCOnlyNoPileup; //! multiplicity distribution
189
190 //ZNA Centrality
191 TH1F *fHistMultiplicityZNABeforeTrigSel; //! multiplicity distribution
192 TH1F *fHistMultiplicityZNAForTrigEvt; //! multiplicity distribution
193 TH1F *fHistMultiplicityZNA; //! multiplicity distribution
194 TH1F *fHistMultiplicityZNANoTPCOnly; //! multiplicity distribution
195 TH1F *fHistMultiplicityZNANoTPCOnlyNoPileup; //! multiplicity distribution
196
197 //TRK Centrality
198 TH1F *fHistMultiplicityTRKBeforeTrigSel; //! multiplicity distribution
199 TH1F *fHistMultiplicityTRKForTrigEvt; //! multiplicity distribution
200 TH1F *fHistMultiplicityTRK; //! multiplicity distribution
201 TH1F *fHistMultiplicityTRKNoTPCOnly; //! multiplicity distribution
202 TH1F *fHistMultiplicityTRKNoTPCOnlyNoPileup; //! multiplicity distribution
203
204 //SPD Centrality
205 TH1F *fHistMultiplicitySPDBeforeTrigSel; //! multiplicity distribution
206 TH1F *fHistMultiplicitySPDForTrigEvt; //! multiplicity distribution
207 TH1F *fHistMultiplicitySPD; //! multiplicity distribution
208 TH1F *fHistMultiplicitySPDNoTPCOnly; //! multiplicity distribution
209 TH1F *fHistMultiplicitySPDNoTPCOnlyNoPileup; //! multiplicity distribution
210
af819bba 211//---------------------------------------------------------------------------------------
d0e77a8c 212
1d94e33b 213 //Raw Data for Vertex Z position estimator change
214 TH2F *f2dHistMultiplicityVsVertexZBeforeTrigSel; //! multiplicity distribution
215 TH2F *f2dHistMultiplicityVsVertexZForTrigEvt; //! multiplicity distribution
216 TH2F *f2dHistMultiplicityVsVertexZ; //! multiplicity distribution
217 TH2F *f2dHistMultiplicityVsVertexZNoTPCOnly; //! multiplicity distribution
218 TH2F *f2dHistMultiplicityVsVertexZNoTPCOnlyNoPileup; //! multiplicity distribution
219
bcb6ffdb 220 TH1F *fHistPVx; //! multiplicity distribution
221 TH1F *fHistPVy; //! multiplicity distribution
222 TH1F *fHistPVz; //! multiplicity distribution
223 TH1F *fHistPVxAnalysis; //! multiplicity distribution
224 TH1F *fHistPVyAnalysis; //! multiplicity distribution
225 TH1F *fHistPVzAnalysis; //! multiplicity distribution
4f8ed367 226 TH1F *fHistSwappedV0Counter; //! Swapped V0 Counter
bcb6ffdb 227
228 AliAnalysisTaskExtractV0(const AliAnalysisTaskExtractV0&); // not implemented
229 AliAnalysisTaskExtractV0& operator=(const AliAnalysisTaskExtractV0&); // not implemented
230
231 ClassDef(AliAnalysisTaskExtractV0, 11);
232};
233
234#endif