AliPhysics  vAN-20150924 (e816f45)
 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  AliAnalysisTaskChargedParticlesRef(const char *name);
38 
40  void UserExec(Option_t *);
41  void Terminate(Option_t *) {}
42 
43  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
44  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
45  void UseTriggerPatches(Bool_t doUse) { fTriggerStringFromPatches = doUse; }
46 
47  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut[0] = etamin; fEtaLabCut[1] = etamax; }
48  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut[0] = etamin; fEtaCmsCut[1] = etamax; }
49 
50 
51 protected:
52  void CreateOldPtBinning(TArrayD &binning) const;
53  void CreateNewPtBinning(TArrayD &binning) const;
54 
55  void FillEventCounterHists(const char *triggerclass, double vtxz, bool isSelected);
56  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);
57  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
58 
59  Bool_t TrackSelectionESD(AliESDtrack *track);
60  Bool_t TrackSelectionAOD(AliAODTrack *track);
61 
62  AliESDtrackCuts *fTrackCuts;
63  AliAnalysisUtils *fAnalysisUtil;
65  AliEMCALGeometry *fGeometry;
66 
68  Double_t fYshift;
69  Double_t fEtaSign;
70 
71  Double_t fEtaLabCut[2];
72  Double_t fEtaCmsCut[2];
73 
74 private:
77 
81 };
82 
83 } /* namespace EMCalTriggerPtAnalysis */
84 
85 #endif /* ALIANALYSISTASKCHARGEDPARTICLESREF_H */
Double_t fEtaSign
Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1.
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
Bool_t fTriggerStringFromPatches
Do rebuild the trigger string from trigger patches.
void FillEventCounterHists(const char *triggerclass, double vtxz, bool isSelected)
Double_t fEtaCmsCut[2]
Cut applied in Eta centre-of-mass frame.
const Double_t etamax
AliAnalysisTaskChargedParticlesRef & operator=(const AliAnalysisTaskChargedParticlesRef &)