AliPhysics  6cf2591 (6cf2591)
 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 
184  void FillTrackHistos(const TString &eventclass, Bool_t posCharge, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t inEmcal);
185 
191  void FillPIDHistos(const TString &eventclass, const AliVTrack &track);
192 
194 
197 
201 
204 
205 private:
206 
211  class PtBinning : public TCustomBinning{
212  public:
213 
217  PtBinning();
218 
222  virtual ~PtBinning() {}
223  };
224 
227 
231 };
232 
233 } /* namespace EMCalTriggerPtAnalysis */
234 
235 #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")
void FillTrackHistos(const TString &eventclass, Bool_t posCharge, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t inEmcal)
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
const Double_t phimin