AliPhysics  7273240 (7273240)
 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 
27 public:
29  kpPb = 1,
30  kPbp = -1
31  };
33  AliAnalysisTaskChargedParticlesRef(const char *name);
35 
36  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
37  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
38 
39  void SetKineCorrelation(Bool_t useKineCorrelation) { fKineCorrelation = useKineCorrelation; }
40  void SetPlotPID(Bool_t plotPID) { fStudyPID = plotPID; }
42  void InitializeTrackCuts(TString cutname, bool isAOD);
43  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut.SetLimits(etamin, etamax); }
44  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut.SetLimits(etamin, etamax); }
45  void SetTrackPhiCut(double phimin, double phimax) { fPhiCut.SetLimits(phimin, phimax); }
46 
47 protected:
48  virtual void CreateUserHistos();
49  virtual void CreateUserObjects();
50  virtual bool Run();
51 
53  virtual void UserFillHistosAfterEventSelection();
54 
55  void FillEventCounterHists(const TString &triggerclass, double vtxz, bool isSelected);
56  void FillTrackHistos(const TString &eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD);
57  void FillPIDHistos(const TString &eventclass, const AliVTrack &track);
58 
60 
63 
67 
70 
71 private:
72 
73  class NewPtBinning : public TCustomBinning{
74  public:
75  NewPtBinning();
76  virtual ~NewPtBinning() {}
77  };
78 
81 
85 };
86 
87 } /* namespace EMCalTriggerPtAnalysis */
88 
89 #endif /* ALIANALYSISTASKCHARGEDPARTICLESREF_H */
Interface for virtual track selection.
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.
AliEmcalTrackSelection * fTrackCuts
Standard track selection.
const Double_t etamin
Helper class creating user defined custom binning.
void FillEventCounterHists(const TString &triggerclass, double vtxz, bool isSelected)
void FillPIDHistos(const TString &eventclass, const AliVTrack &track)
const Double_t etamax
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
AliAnalysisTaskChargedParticlesRef & operator=(const AliAnalysisTaskChargedParticlesRef &)
bool Bool_t
Definition: External.C:53
const Double_t phimin
void FillTrackHistos(const TString &eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD)