AliPhysics  v5-06-40-01 (42bb456)
 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 AliESDtrackCuts;
13 class AliESDtrack;
14 
15 namespace EMCalTriggerPtAnalysis {
16 
17 class AliEMCalHistoContainer;
18 
28 class AliAnalysisTaskChargedParticlesRef : public AliAnalysisTaskSE {
29 public:
31  kpPb = 1,
32  kPbp = -1
33  };
35  AliAnalysisTaskChargedParticlesRef(const char *name);
37 
39  void UserExec(Option_t *);
40  void Terminate(Option_t *) {}
41 
42  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
43  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
44  void UseTriggerPatches(Bool_t doUse) { fTriggerStringFromPatches = doUse; }
45 
46  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut[0] = etamin; fEtaLabCut[1] = etamax; }
47  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut[0] = etamin; fEtaCmsCut[1] = etamax; }
48 
49 
50 protected:
51  void CreateOldPtBinning(TArrayD &binning) const;
52  void CreateNewPtBinning(TArrayD &binning) const;
53 
54  void FillTrackHistos(const char *eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal);
55  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
56 
57  Bool_t TrackSelectionESD(AliESDtrack *track);
58  Bool_t TrackSelectionAOD(AliAODTrack *track);
59 
60  AliESDtrackCuts *fTrackCuts;
61  AliAnalysisUtils *fAnalysisUtil;
63 
65  Double_t fYshift;
66  Double_t fEtaSign;
67 
68  Double_t fEtaLabCut[2];
69  Double_t fEtaCmsCut[2];
70 
71 private:
74 
78 };
79 
80 } /* namespace EMCalTriggerPtAnalysis */
81 
82 #endif /* ALIANALYSISTASKCHARGEDPARTICLESREF_H */
Double_t fEtaSign
Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1.
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 FillTrackHistos(const char *eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal)
Double_t fEtaCmsCut[2]
Cut applied in Eta centre-of-mass frame.
const Double_t etamax
AliAnalysisTaskChargedParticlesRef & operator=(const AliAnalysisTaskChargedParticlesRef &)