]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/STRANGENESS/LambdaK0/AliAnalysisTaskExtractV0AOD.h
---> Added Cascade information to the histograms acquired:
[u/mrichter/AliRoot.git] / PWGLF / STRANGENESS / LambdaK0 / AliAnalysisTaskExtractV0AOD.h
CommitLineData
a0879a26 1#ifndef ALIANALYSISTASKEXTRACTV0AOD_H
2#define ALIANALYSISTASKEXTRACTV0AOD_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// AliAnalysisTaskExtractV0AOD 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;
42class AliESDEvent;
43class AliAODEvent;
44class AliPhysicsSelection;
45class AliCFContainer;
46
47//#include "TString.h"
48//#include "AliESDtrackCuts.h"
49#include "AliAnalysisTaskSE.h"
50
51class AliAnalysisTaskExtractV0AOD : public AliAnalysisTaskSE {
52 public:
53 AliAnalysisTaskExtractV0AOD();
54 AliAnalysisTaskExtractV0AOD(const char *name);
55 virtual ~AliAnalysisTaskExtractV0AOD();
56
57 virtual void UserCreateOutputObjects();
58 virtual void UserExec(Option_t *option);
59 virtual void Terminate(Option_t *);
60 void CheckChargeV0(AliESDv0 *thisv0);
61
62 void SetIsNuclear (Bool_t lIsNuclear = kTRUE ) { fkIsNuclear = lIsNuclear; }
63 void SetIsLowEnergyPP (Bool_t lLowEnergyPP = kTRUE ) { fkLowEnergyPP = lLowEnergyPP; }
64 void SetUseOnTheFly (Bool_t lUseOnTheFly = kTRUE ) { fkUseOnTheFly = lUseOnTheFly; }
65
66 private:
67 // Note : In ROOT, "//!" means "do not stream the data from Master node to Worker node" ...
68 // your data member object is created on the worker nodes and streaming is not needed.
69 // http://root.cern.ch/download/doc/11InputOutput.pdf, page 14
70 TList *fListHistV0; //! List of output objects
71 TTree *fTree; //! Output Tree
72
73 AliPIDResponse *fPIDResponse; // PID response object
74
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)
80
81 //Variables for Tree
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
114 Int_t fTreeVariableRunNumber; //!
115 ULong64_t fTreeVariableEventNumber; //!
116
117
118//Note: TDistOverTotMom needs a mass hypothesis to be converted to proper decaylength.
119
120 TH1F *fHistV0MultiplicityBeforeTrigSel; //! V0 multiplicity distribution
121 TH1F *fHistV0MultiplicityForTrigEvt; //! V0 multiplicity distribution
122 TH1F *fHistV0MultiplicityForSelEvt; //! V0 multiplicity distribution
123 TH1F *fHistV0MultiplicityForSelEvtNoTPCOnly; //! V0 multiplicity distribution
124 TH1F *fHistV0MultiplicityForSelEvtNoTPCOnlyNoPileup;//! V0 multiplicity distribution
125
126 TH1F *fHistMultiplicityBeforeTrigSel; //! multiplicity distribution
127 TH1F *fHistMultiplicityForTrigEvt; //! multiplicity distribution
128 TH1F *fHistMultiplicity; //! multiplicity distribution
129 TH1F *fHistMultiplicityNoTPCOnly; //! multiplicity distribution
130 TH1F *fHistMultiplicityNoTPCOnlyNoPileup; //! multiplicity distribution
131
132 TH1F *fHistPVx; //! multiplicity distribution
133 TH1F *fHistPVy; //! multiplicity distribution
134 TH1F *fHistPVz; //! multiplicity distribution
135 TH1F *fHistPVxAnalysis; //! multiplicity distribution
136 TH1F *fHistPVyAnalysis; //! multiplicity distribution
137 TH1F *fHistPVzAnalysis; //! multiplicity distribution
138 TH1F *fHistSwappedV0Counter; //! Swapped V0 Counter
139
140 AliAnalysisTaskExtractV0AOD(const AliAnalysisTaskExtractV0AOD&); // not implemented
141 AliAnalysisTaskExtractV0AOD& operator=(const AliAnalysisTaskExtractV0AOD&); // not implemented
142
143 ClassDef(AliAnalysisTaskExtractV0AOD, 11);
144};
145
146#endif