AliPhysics  cdeda5a (cdeda5a)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskChargedParticlesRef.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKCHARGEDPARTICLESREF_H
2 #define ALIANALYSISTASKCHARGEDPARTICLESREF_H
3 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
7 #include "AliCutValueRange.h"
8 #include <vector>
9 #include <TCustomBinning.h>
10 #include <TString.h>
11 
12 class THistManager;
14 
15 namespace EMCalTriggerPtAnalysis {
16 
30 public:
31 
41  kpPb = 1,
42  kPbp = -1
43  };
44 
49 
54  AliAnalysisTaskChargedParticlesRef(const char *name);
55 
60 
67  void EnableSumw2(Bool_t doEnable) { fEnableSumw2 = doEnable; }
68 
75  void InitializeTrackCuts(TString cutname, bool isAOD);
76 
82  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
83 
88  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
89 
94  void SetPlotPID(Bool_t plotPID) { fStudyPID = plotPID; }
95 
102 
108  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut.SetLimits(etamin, etamax); }
109 
115  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut.SetLimits(etamin, etamax); }
116 
122  void SetTrackPhiCut(double phimin, double phimax) { fPhiCut.SetLimits(phimin, phimax); }
123 
130 
137 
138 protected:
139 
143  virtual void CreateUserHistos();
144 
150  virtual void CreateUserObjects();
151 
160  virtual bool Run();
161 
166  virtual void UserFillHistosBeforeEventSelection();
167 
172  virtual void UserFillHistosAfterEventSelection();
173 
183  void FillTrackHistos(const TString &eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t inEmcal);
184 
190  void FillPIDHistos(const TString &eventclass, const AliVTrack &track);
191 
193 
196 
200 
203 
204 private:
205 
210  class PtBinning : public TCustomBinning{
211  public:
212 
216  PtBinning();
217 
221  virtual ~PtBinning() {}
222  };
223 
226 
230 };
231 
232 } /* namespace EMCalTriggerPtAnalysis */
233 
234 #endif /* ALIANALYSISTASKCHARGEDPARTICLESREF_H */
Interface for virtual track selection.
BeamDirection_t
Direction of the beams in an asymmetric collision system.
double Double_t
Definition: External.C:58
Double_t fEtaSign
Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1.
static AliAnalysisTaskChargedParticlesRef * AddTaskChargedParticlesRef(const TString &suffix)
const Double_t etamin
static AliAnalysisTaskChargedParticlesRef * AddTaskChargedParticlesRefDefault(const TString &cutname="standard")
Helper class creating user defined custom binning.
void FillPIDHistos(const TString &eventclass, const AliVTrack &track)
const Double_t etamax
Container class for histograms.
Definition: THistManager.h:43
AliAnalysisTaskChargedParticlesRef & operator=(const AliAnalysisTaskChargedParticlesRef &)
bool Bool_t
Definition: External.C:53
void FillTrackHistos(const TString &eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t inEmcal)
const Double_t phimin