AliPhysics  vAN-20150827 (3e81cbb)
 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 
23 class AliAnalysisTaskChargedParticlesRef : public AliAnalysisTaskSE {
24 public:
26  kpPb = 1,
27  kPbp = -1
28  };
30  AliAnalysisTaskChargedParticlesRef(const char *name);
32 
34  void UserExec(Option_t *);
35  void Terminate(Option_t *) {}
36 
37  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
38  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
39  void UseTriggerPatches(Bool_t doUse) { fTriggerStringFromPatches = doUse; }
40 
41 protected:
42  void CreateOldPtBinning(TArrayD &binning) const;
43  void CreateNewPtBinning(TArrayD &binning) const;
44 
45  void FillTrackHistos(const char *eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal);
46  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
47 
48  Bool_t TrackSelectionESD(AliESDtrack *track);
49  Bool_t TrackSelectionAOD(AliAODTrack *track);
50 
51  AliESDtrackCuts *fTrackCuts;
52  AliAnalysisUtils *fAnalysisUtil;
54 
56  Double_t fYshift;
57  Double_t fEtaSign;
58 
59 private:
62 
66 };
67 
68 } /* namespace EMCalTriggerPtAnalysis */
69 
70 #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
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)
AliAnalysisTaskChargedParticlesRef & operator=(const AliAnalysisTaskChargedParticlesRef &)