AliPhysics  f05a842 (f05a842)
 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 <string>
8 #include <TCustomBinning.h>
9 #include <TString.h>
10 
11 class TArrayD;
12 class THistManager;
13 class TObjArray;
14 
15 class AliAnalysisUtils;
17 class AliEMCALGeometry;
18 class AliOADBContainer;
19 
20 namespace EMCalTriggerPtAnalysis {
21 
22 class AliEmcalTriggerOfflineSelection;
23 
34 public:
36  kpPb = 1,
37  kPbp = -1
38  };
40  AliAnalysisTaskChargedParticlesRef(const char *name);
42 
44  void UserExec(Option_t *);
45  void Terminate(Option_t *) {}
46 
47  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
48  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
50 
51  void SetKineCorrelation(Bool_t useKineCorrelation) { fKineCorrelation = useKineCorrelation; }
52  void SetPlotPID(Bool_t plotPID) { fStudyPID = plotPID; }
54  void InitializeTrackCuts(TString cutname, bool isAOD);
56  void SetAnalysisUtil(AliAnalysisUtils *util) { fAnalysisUtil = util; }
57  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut[0] = etamin; fEtaLabCut[1] = etamax; }
58  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut[0] = etamin; fEtaCmsCut[1] = etamax; }
59  void SetDownscaleOADB(TString oadbname) { fNameDownscaleOADB = oadbname; }
60 
61 protected:
62  virtual void ExecOnce();
63  virtual void RunChanged(Int_t runnuber);
64 
65  Double_t GetTriggerWeight(const std::string &triggerclass) const;
66  void FillEventCounterHists(const std::string &triggerclass, double vtxz, bool isSelected);
67  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);
68  void FillPIDHistos(const std::string &eventclass, const AliVTrack &track);
69  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
70 
72  AliAnalysisUtils *fAnalysisUtil;
75  AliEMCALGeometry *fGeometry;
76  TClonesArray *fTriggerPatches;
77 
81 
84 
87 
89  AliOADBContainer *fDownscaleOADB;
91 
94 
95 private:
96 
97  class NewPtBinning : public TCustomBinning{
98  public:
99  NewPtBinning();
100  virtual ~NewPtBinning() {}
101  };
102 
105 
109 };
110 
111 } /* namespace EMCalTriggerPtAnalysis */
112 
113 #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)
Double_t fEtaCmsCut[2]
Cut applied in Eta centre-of-mass frame.
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