AliPhysics  a9863a5 (a9863a5)
 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 
8 class TArrayD;
9 class THistManager;
10 class TString;
11 class AliAnalysisUtils;
13 class AliEMCALGeometry;
14 
15 namespace EMCalTriggerPtAnalysis {
16 
17 class AliEmcalTriggerOfflineSelection;
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 
47  void InitializeTrackCuts(TString cutname, bool isAOD);
49  void SetAnalysisUtil(AliAnalysisUtils *util) { fAnalysisUtil = util; }
50  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut[0] = etamin; fEtaLabCut[1] = etamax; }
51  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut[0] = etamin; fEtaCmsCut[1] = etamax; }
52 
53 protected:
54  void CreateOldPtBinning(TArrayD &binning) const;
55  void CreateNewPtBinning(TArrayD &binning) const;
56 
57  void FillEventCounterHists(const char *triggerclass, double vtxz, bool isSelected);
58  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);
59  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
60 
62  AliAnalysisUtils *fAnalysisUtil;
64  THistManager *fHistos;
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 */
Interface for virtual track selection.
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.
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)
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 &)