AliPhysics  c923f52 (c923f52)
 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 <vector>
10 #include <TCustomBinning.h>
11 #include <TString.h>
12 
13 class TArrayD;
14 class THistManager;
15 class TObjArray;
16 
17 class AliAnalysisUtils;
19 class AliEMCALGeometry;
20 class AliOADBContainer;
21 
22 namespace EMCalTriggerPtAnalysis {
23 
24 class AliEmcalTriggerOfflineSelection;
25 
36 public:
38  kpPb = 1,
39  kPbp = -1
40  };
42  kCPREG1 = 0,
43  kCPREG2 = 1,
44  kCPREJ1 = 2,
45  kCPREJ2 = 3,
46  kCPREL0 = 4
47  };
49  AliAnalysisTaskChargedParticlesRef(const char *name);
51 
53  void UserExec(Option_t *);
54  void Terminate(Option_t *) {}
55 
56  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
57  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
59 
60  void SetKineCorrelation(Bool_t useKineCorrelation) { fKineCorrelation = useKineCorrelation; }
61  void SetPlotPID(Bool_t plotPID) { fStudyPID = plotPID; }
63  void InitializeTrackCuts(TString cutname, bool isAOD);
65  void SetAnalysisUtil(AliAnalysisUtils *util) { fAnalysisUtil = util; }
66  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut.SetLimits(etamin, etamax); }
67  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut.SetLimits(etamin, etamax); }
68  void SetTrackPhiCut(double phimin, double phimax) { fPhiCut.SetLimits(phimin, phimax); }
69  void SetDownscaleOADB(TString oadbname) { fNameDownscaleOADB = oadbname; }
70  void SetExcludeNoiseEvents(Bool_t doExclude = true) { fRejectNoiseEvents = doExclude; }
71  void SetSelectNoiseEvents(Bool_t doSelect = true) { fSelectNoiseEvents = doSelect; }
72  void AddMaskedFastor(int fastorID) { fMaskedFastors.push_back(fastorID); }
73  void SetMaskedFastorOADB(TString oadbname) { fNameMaskedFastorOADB = oadbname; }
75 
76 protected:
77  virtual void ExecOnce();
78  virtual void RunChanged(Int_t runnuber);
79 
80  Double_t GetTriggerWeight(const std::string &triggerclass) const;
81  void FillEventCounterHists(const std::string &triggerclass, double vtxz, bool isSelected);
82  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);
83  void FillPIDHistos(const std::string &eventclass, const AliVTrack &track);
84  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
85 
88 
90  AliAnalysisUtils *fAnalysisUtil;
93  AliEMCALGeometry *fGeometry;
94  TClonesArray *fTriggerPatches;
95 
99 
103 
106 
108  AliOADBContainer *fDownscaleOADB;
111  AliOADBContainer *fMaskedFastorOADB;
112  std::vector<int> fMaskedFastors;
116 
119 
120 private:
121 
122  class NewPtBinning : public TCustomBinning{
123  public:
124  NewPtBinning();
125  virtual ~NewPtBinning() {}
126  };
127 
130 
134 };
135 
136 } /* namespace EMCalTriggerPtAnalysis */
137 
138 #endif /* ALIANALYSISTASKCHARGEDPARTICLESREF_H */
Interface for virtual track selection.
Bool_t fSelectNoiseEvents
Explicitly select events triggered only by noisy fastors.
Bool_t fUseOnlineTriggerSelectorV1
Switch separating between different trigger selection methods.
TString fNameMaskedFastorOADB
Name of the masked fastor OADB container.
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 * fMaskedFastorOADB
! Container with masked fastors
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)
Bool_t fRejectNoiseEvents
Reject events triggered by noisy fastors.
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