AliPhysics  32b88a8 (32b88a8)
 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 
6 #include "AliAnalysisTaskSE.h"
7 #include "AliCutValueRange.h"
8 #include <string>
9 #include <TCustomBinning.h>
10 #include <TString.h>
11 
12 class TArrayD;
13 class THistManager;
14 class TObjArray;
15 
16 class AliAnalysisUtils;
18 class AliEMCALGeometry;
19 class AliOADBContainer;
20 
21 namespace EMCalTriggerPtAnalysis {
22 
23 class AliEmcalTriggerOfflineSelection;
24 
35 public:
37  kpPb = 1,
38  kPbp = -1
39  };
41  AliAnalysisTaskChargedParticlesRef(const char *name);
43 
45  void UserExec(Option_t *);
46  void Terminate(Option_t *) {}
47 
48  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
49  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
51 
52  void SetKineCorrelation(Bool_t useKineCorrelation) { fKineCorrelation = useKineCorrelation; }
53  void SetPlotPID(Bool_t plotPID) { fStudyPID = plotPID; }
55  void InitializeTrackCuts(TString cutname, bool isAOD);
57  void SetAnalysisUtil(AliAnalysisUtils *util) { fAnalysisUtil = util; }
58  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut.SetLimits(etamin, etamax); }
59  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut.SetLimits(etamin, etamax); }
60  void SetTrackPhiCut(double phimin, double phimax) { fPhiCut.SetLimits(phimin, phimax); }
61  void SetDownscaleOADB(TString oadbname) { fNameDownscaleOADB = oadbname; }
62 
63 protected:
64  virtual void ExecOnce();
65  virtual void RunChanged(Int_t runnuber);
66 
67  Double_t GetTriggerWeight(const std::string &triggerclass) const;
68  void FillEventCounterHists(const std::string &triggerclass, double vtxz, bool isSelected);
69  void FillTrackHistos(const std::string &eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD);
70  void FillPIDHistos(const std::string &eventclass, const AliVTrack &track);
71  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
72 
74  AliAnalysisUtils *fAnalysisUtil;
77  AliEMCALGeometry *fGeometry;
78  TClonesArray *fTriggerPatches;
79 
83 
87 
90 
92  AliOADBContainer *fDownscaleOADB;
94 
97 
98 private:
99 
100  class NewPtBinning : public TCustomBinning{
101  public:
102  NewPtBinning();
103  virtual ~NewPtBinning() {}
104  };
105 
108 
112 };
113 
114 } /* namespace EMCalTriggerPtAnalysis */
115 
116 #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.
AliEmcalTriggerOfflineSelection * fTriggerSelection
Offline trigger selection.
AliEmcalTrackSelection * fTrackCuts
Standard track selection.
AliOADBContainer * fDownscaleOADB
! Container with downscale factors for different triggers
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
const Double_t etamin
int Int_t
Definition: External.C:63
Bool_t fTriggerStringFromPatches
Do rebuild the trigger string from trigger patches.
void FillPIDHistos(const std::string &eventclass, const AliVTrack &track)
Helper class creating user defined custom binning.
void FillEventCounterHists(const std::string &triggerclass, double vtxz, bool isSelected)
const Double_t etamax
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
const char Option_t
Definition: External.C:48
AliAnalysisTaskChargedParticlesRef & operator=(const AliAnalysisTaskChargedParticlesRef &)
void FillTrackHistos(const std::string &eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD)
bool Bool_t
Definition: External.C:53
const Double_t phimin