AliPhysics  vAN-20151012 (2287573)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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 
8 class TArrayD;
9 class TString;
10 class AliAnalysisUtils;
11 class AliAODTrack;
12 class AliEMCALGeometry;
13 class AliESDtrackCuts;
14 class AliESDtrack;
15 
16 namespace EMCalTriggerPtAnalysis {
17 
18 class AliEMCalHistoContainer;
19 
29 class AliAnalysisTaskChargedParticlesRef : public AliAnalysisTaskSE {
30 public:
32  kpPb = 1,
33  kPbp = -1
34  };
36  kCPREL0 = 0,
42  };
44  AliAnalysisTaskChargedParticlesRef(const char *name);
46 
48  void UserExec(Option_t *);
49  void Terminate(Option_t *) {}
50 
51  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
52  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
53  void UseTriggerPatches(Bool_t doUse) { fTriggerStringFromPatches = doUse; }
54 
55  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut[0] = etamin; fEtaLabCut[1] = etamax; }
56  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut[0] = etamin; fEtaCmsCut[1] = etamax; }
57 
58  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
59 
60 protected:
61  void CreateOldPtBinning(TArrayD &binning) const;
62  void CreateNewPtBinning(TArrayD &binning) const;
63 
64  void FillEventCounterHists(const char *triggerclass, double vtxz, bool isSelected);
65  void FillTrackHistos(const char *eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD);
66  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
67  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
68 
69  Bool_t TrackSelectionESD(AliESDtrack *track);
70  Bool_t TrackSelectionAOD(AliAODTrack *track);
71 
72  AliESDtrackCuts *fTrackCuts;
73  AliAnalysisUtils *fAnalysisUtil;
75  AliEMCALGeometry *fGeometry;
76 
78  Double_t fYshift;
79  Double_t fEtaSign;
80 
81  Double_t fEtaLabCut[2];
82  Double_t fEtaCmsCut[2];
83 
85 
86 private:
89 
93 };
94 
95 } /* namespace EMCalTriggerPtAnalysis */
96 
97 #endif /* ALIANALYSISTASKCHARGEDPARTICLESREF_H */
Double_t fEtaSign
Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1.
Double_t fOfflineEnergyThreshold[kCPRntrig]
Threhold applied on offline patches.
void FillTrackHistos(const char *eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD)
Container class for histograms for the high- charged particle analysis.
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
const Double_t etamin
void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold)
Bool_t fTriggerStringFromPatches
Do rebuild the trigger string from trigger patches.
void FillEventCounterHists(const char *triggerclass, double vtxz, bool isSelected)
Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
Double_t fEtaCmsCut[2]
Cut applied in Eta centre-of-mass frame.
const Double_t etamax
AliAnalysisTaskChargedParticlesRef & operator=(const AliAnalysisTaskChargedParticlesRef &)