]>
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; | |
42 | class AliESDEvent; | |
43 | class AliPhysicsSelection; | |
44 | class AliCFContainer; | |
45 | ||
46 | //#include "TString.h" | |
47 | //#include "AliESDtrackCuts.h" | |
48 | #include "AliAnalysisTaskSE.h" | |
49 | ||
50 | class AliAnalysisTaskExtractV0 : public AliAnalysisTaskSE { | |
51 | public: | |
52 | AliAnalysisTaskExtractV0(); | |
53 | AliAnalysisTaskExtractV0(const char *name); | |
54 | virtual ~AliAnalysisTaskExtractV0(); | |
55 | ||
56 | virtual void UserCreateOutputObjects(); | |
57 | virtual void UserExec(Option_t *option); | |
58 | virtual void Terminate(Option_t *); | |
4f8ed367 | 59 | void CheckChargeV0(AliESDv0 *thisv0); |
bcb6ffdb | 60 | |
548bd092 | 61 | void SetIsNuclear (Bool_t lIsNuclear = kTRUE ) { fkIsNuclear = lIsNuclear; } |
62 | void SetIsLowEnergyPP (Bool_t lLowEnergyPP = kTRUE ) { fkLowEnergyPP = lLowEnergyPP; } | |
63 | void SetUseOnTheFly (Bool_t lUseOnTheFly = kTRUE ) { fkUseOnTheFly = lUseOnTheFly; } | |
64 | ||
bcb6ffdb | 65 | private: |
66 | // Note : In ROOT, "//!" means "do not stream the data from Master node to Worker node" ... | |
67 | // your data member object is created on the worker nodes and streaming is not needed. | |
68 | // http://root.cern.ch/download/doc/11InputOutput.pdf, page 14 | |
69 | TList *fListHistV0; //! List of output objects | |
70 | TTree *fTree; //! Output Tree | |
71 | ||
76029adc | 72 | AliPIDResponse *fPIDResponse; // PID response object |
73 | AliESDtrackCuts *fESDtrackCuts; // ESD track cuts used for primary track definition | |
bcb6ffdb | 74 | |
548bd092 | 75 | //Objects Controlling Task Behaviour |
76 | ||
77 | Bool_t fkIsNuclear; // if true, replace multiplicity est. by centrality (default FALSE) | |
78 | Bool_t fkLowEnergyPP; // if true, skip FASTOnly (default FALSE) | |
79 | Bool_t fkUseOnTheFly; // if true, will use On-the-fly V0s instead of Offline V0s (default FALSE) | |
bcb6ffdb | 80 | |
548bd092 | 81 | //Variables for Tree |
bcb6ffdb | 82 | Float_t fTreeVariableChi2V0; //! |
83 | Float_t fTreeVariableDcaV0Daughters; //! | |
84 | Float_t fTreeVariableDcaV0ToPrimVertex; //! | |
85 | Float_t fTreeVariableDcaPosToPrimVertex; //! | |
86 | Float_t fTreeVariableDcaNegToPrimVertex; //! | |
87 | Float_t fTreeVariableV0CosineOfPointingAngle; //! | |
88 | Float_t fTreeVariableV0Radius; //! | |
89 | Float_t fTreeVariablePt; //! | |
90 | Float_t fTreeVariableRapK0Short; //! | |
91 | Float_t fTreeVariableRapLambda; //! | |
92 | Float_t fTreeVariableInvMassK0s; //! | |
93 | Float_t fTreeVariableInvMassLambda; //! | |
94 | Float_t fTreeVariableInvMassAntiLambda; //! | |
95 | Float_t fTreeVariableAlphaV0; //! | |
96 | Float_t fTreeVariablePtArmV0;//! | |
97 | Float_t fTreeVariableNegTotMomentum; //! | |
98 | Float_t fTreeVariablePosTotMomentum; //! | |
99 | Float_t fTreeVariableNegdEdxSig; //! | |
100 | Float_t fTreeVariablePosdEdxSig; //! | |
101 | Float_t fTreeVariableNegEta; //! | |
102 | Float_t fTreeVariablePosEta; //! | |
103 | ||
104 | Float_t fTreeVariableNSigmasPosProton; //! | |
105 | Float_t fTreeVariableNSigmasPosPion; //! | |
106 | Float_t fTreeVariableNSigmasNegProton; //! | |
107 | Float_t fTreeVariableNSigmasNegPion; //! | |
108 | ||
109 | Float_t fTreeVariableDistOverTotMom;//! | |
110 | Int_t fTreeVariableLeastNbrCrossedRows;//! | |
111 | Float_t fTreeVariableLeastRatioCrossedRowsOverFindable;//! | |
112 | Int_t fTreeVariableMultiplicity ;//! | |
113 | ||
0eebce93 | 114 | Int_t fTreeVariableRunNumber; //! |
115 | ULong64_t fTreeVariableEventNumber; //! | |
116 | ||
57d075b9 | 117 | Float_t fTreeVariableV0x; //! |
118 | Float_t fTreeVariableV0y; //! | |
119 | Float_t fTreeVariableV0z; //! | |
120 | ||
121 | Float_t fTreeVariableV0Px; //! | |
122 | Float_t fTreeVariableV0Py; //! | |
123 | Float_t fTreeVariableV0Pz; //! | |
bcb6ffdb | 124 | |
125 | //Note: TDistOverTotMom needs a mass hypothesis to be converted to proper decaylength. | |
126 | ||
127 | TH1F *fHistV0MultiplicityBeforeTrigSel; //! V0 multiplicity distribution | |
128 | TH1F *fHistV0MultiplicityForTrigEvt; //! V0 multiplicity distribution | |
129 | TH1F *fHistV0MultiplicityForSelEvt; //! V0 multiplicity distribution | |
130 | TH1F *fHistV0MultiplicityForSelEvtNoTPCOnly; //! V0 multiplicity distribution | |
131 | TH1F *fHistV0MultiplicityForSelEvtNoTPCOnlyNoPileup;//! V0 multiplicity distribution | |
132 | ||
133 | TH1F *fHistMultiplicityBeforeTrigSel; //! multiplicity distribution | |
134 | TH1F *fHistMultiplicityForTrigEvt; //! multiplicity distribution | |
135 | TH1F *fHistMultiplicity; //! multiplicity distribution | |
136 | TH1F *fHistMultiplicityNoTPCOnly; //! multiplicity distribution | |
137 | TH1F *fHistMultiplicityNoTPCOnlyNoPileup; //! multiplicity distribution | |
138 | ||
1d94e33b | 139 | //Raw Data for Vertex Z position estimator change |
140 | TH2F *f2dHistMultiplicityVsVertexZBeforeTrigSel; //! multiplicity distribution | |
141 | TH2F *f2dHistMultiplicityVsVertexZForTrigEvt; //! multiplicity distribution | |
142 | TH2F *f2dHistMultiplicityVsVertexZ; //! multiplicity distribution | |
143 | TH2F *f2dHistMultiplicityVsVertexZNoTPCOnly; //! multiplicity distribution | |
144 | TH2F *f2dHistMultiplicityVsVertexZNoTPCOnlyNoPileup; //! multiplicity distribution | |
145 | ||
146 | ||
bcb6ffdb | 147 | TH1F *fHistPVx; //! multiplicity distribution |
148 | TH1F *fHistPVy; //! multiplicity distribution | |
149 | TH1F *fHistPVz; //! multiplicity distribution | |
150 | TH1F *fHistPVxAnalysis; //! multiplicity distribution | |
151 | TH1F *fHistPVyAnalysis; //! multiplicity distribution | |
152 | TH1F *fHistPVzAnalysis; //! multiplicity distribution | |
4f8ed367 | 153 | TH1F *fHistSwappedV0Counter; //! Swapped V0 Counter |
bcb6ffdb | 154 | |
155 | AliAnalysisTaskExtractV0(const AliAnalysisTaskExtractV0&); // not implemented | |
156 | AliAnalysisTaskExtractV0& operator=(const AliAnalysisTaskExtractV0&); // not implemented | |
157 | ||
158 | ClassDef(AliAnalysisTaskExtractV0, 11); | |
159 | }; | |
160 | ||
161 | #endif |