]>
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 | ||
548bd092 | 72 | AliPIDResponse *fPIDResponse; // PID response object |
bcb6ffdb | 73 | |
548bd092 | 74 | //Objects Controlling Task Behaviour |
75 | ||
76 | Bool_t fkIsNuclear; // if true, replace multiplicity est. by centrality (default FALSE) | |
77 | Bool_t fkLowEnergyPP; // if true, skip FASTOnly (default FALSE) | |
78 | Bool_t fkUseOnTheFly; // if true, will use On-the-fly V0s instead of Offline V0s (default FALSE) | |
bcb6ffdb | 79 | |
548bd092 | 80 | //Variables for Tree |
bcb6ffdb | 81 | Float_t fTreeVariableChi2V0; //! |
82 | Float_t fTreeVariableDcaV0Daughters; //! | |
83 | Float_t fTreeVariableDcaV0ToPrimVertex; //! | |
84 | Float_t fTreeVariableDcaPosToPrimVertex; //! | |
85 | Float_t fTreeVariableDcaNegToPrimVertex; //! | |
86 | Float_t fTreeVariableV0CosineOfPointingAngle; //! | |
87 | Float_t fTreeVariableV0Radius; //! | |
88 | Float_t fTreeVariablePt; //! | |
89 | Float_t fTreeVariableRapK0Short; //! | |
90 | Float_t fTreeVariableRapLambda; //! | |
91 | Float_t fTreeVariableInvMassK0s; //! | |
92 | Float_t fTreeVariableInvMassLambda; //! | |
93 | Float_t fTreeVariableInvMassAntiLambda; //! | |
94 | Float_t fTreeVariableAlphaV0; //! | |
95 | Float_t fTreeVariablePtArmV0;//! | |
96 | Float_t fTreeVariableNegTotMomentum; //! | |
97 | Float_t fTreeVariablePosTotMomentum; //! | |
98 | Float_t fTreeVariableNegdEdxSig; //! | |
99 | Float_t fTreeVariablePosdEdxSig; //! | |
100 | Float_t fTreeVariableNegEta; //! | |
101 | Float_t fTreeVariablePosEta; //! | |
102 | ||
103 | Float_t fTreeVariableNSigmasPosProton; //! | |
104 | Float_t fTreeVariableNSigmasPosPion; //! | |
105 | Float_t fTreeVariableNSigmasNegProton; //! | |
106 | Float_t fTreeVariableNSigmasNegPion; //! | |
107 | ||
108 | Float_t fTreeVariableDistOverTotMom;//! | |
109 | Int_t fTreeVariableLeastNbrCrossedRows;//! | |
110 | Float_t fTreeVariableLeastRatioCrossedRowsOverFindable;//! | |
111 | Int_t fTreeVariableMultiplicity ;//! | |
112 | ||
0eebce93 | 113 | Int_t fTreeVariableRunNumber; //! |
114 | ULong64_t fTreeVariableEventNumber; //! | |
115 | ||
bcb6ffdb | 116 | |
117 | //Note: TDistOverTotMom needs a mass hypothesis to be converted to proper decaylength. | |
118 | ||
119 | TH1F *fHistV0MultiplicityBeforeTrigSel; //! V0 multiplicity distribution | |
120 | TH1F *fHistV0MultiplicityForTrigEvt; //! V0 multiplicity distribution | |
121 | TH1F *fHistV0MultiplicityForSelEvt; //! V0 multiplicity distribution | |
122 | TH1F *fHistV0MultiplicityForSelEvtNoTPCOnly; //! V0 multiplicity distribution | |
123 | TH1F *fHistV0MultiplicityForSelEvtNoTPCOnlyNoPileup;//! V0 multiplicity distribution | |
124 | ||
125 | TH1F *fHistMultiplicityBeforeTrigSel; //! multiplicity distribution | |
126 | TH1F *fHistMultiplicityForTrigEvt; //! multiplicity distribution | |
127 | TH1F *fHistMultiplicity; //! multiplicity distribution | |
128 | TH1F *fHistMultiplicityNoTPCOnly; //! multiplicity distribution | |
129 | TH1F *fHistMultiplicityNoTPCOnlyNoPileup; //! multiplicity distribution | |
130 | ||
131 | TH1F *fHistPVx; //! multiplicity distribution | |
132 | TH1F *fHistPVy; //! multiplicity distribution | |
133 | TH1F *fHistPVz; //! multiplicity distribution | |
134 | TH1F *fHistPVxAnalysis; //! multiplicity distribution | |
135 | TH1F *fHistPVyAnalysis; //! multiplicity distribution | |
136 | TH1F *fHistPVzAnalysis; //! multiplicity distribution | |
4f8ed367 | 137 | TH1F *fHistSwappedV0Counter; //! Swapped V0 Counter |
bcb6ffdb | 138 | |
139 | AliAnalysisTaskExtractV0(const AliAnalysisTaskExtractV0&); // not implemented | |
140 | AliAnalysisTaskExtractV0& operator=(const AliAnalysisTaskExtractV0&); // not implemented | |
141 | ||
142 | ClassDef(AliAnalysisTaskExtractV0, 11); | |
143 | }; | |
144 | ||
145 | #endif |