AliPhysics  v5-07-15-01 (b3d7633)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskChargedParticlesRefMC.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKCHARGEDPARTICLESREFMC_H
2 #define ALIANALYSISTASKCHARGEDPARTICLESREFMC_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 #include <TString.h>
8 
9 class TArrayD;
10 class TClonesArray;
11 
12 class AliAnalysisUtils;
13 class AliAODTrack;
14 class AliEMCALGeometry;
15 class AliESDtrack;
16 class AliESDtrackCuts;
17 class AliGenPythiaEventHeader;
18 class AliVParticle;
19 class AliMCEvent;
20 
21 namespace EMCalTriggerPtAnalysis {
22 
23 class AliEMCalHistoContainer;
33 class AliAnalysisTaskChargedParticlesRefMC: public AliAnalysisTaskSE {
34 public:
36  kpPb = 1,
37  kPbp = -1
38  };
40  kCPREL0 = 0,
46  };
47 
49  AliAnalysisTaskChargedParticlesRefMC(const char *name);
51 
53  void UserExec(Option_t *);
54  Bool_t UserNotify();
55  void Terminate(Option_t *) {}
56 
57  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
58  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
59 
60  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut[0] = etamin; fEtaLabCut[1] = etamax; }
61  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut[0] = etamin; fEtaCmsCut[1] = etamax; }
62  void SetOutlierCut(double fracpthard = 1.2) { fFracPtHard = fracpthard; }
63  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
64 
65 protected:
66  void CreateOldPtBinning(TArrayD &binning) const;
67  void CreateNewPtBinning(TArrayD &binning) const;
68 
69  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);
70  void FillTriggerJetHistograms(Bool_t aftercut, AliGenPythiaEventHeader *const header);
71 
72  Bool_t TrackSelectionESD(AliESDtrack *track);
73  Bool_t TrackSelectionAOD(AliAODTrack *track);
74  TString GetFiredTriggerClasses(const TClonesArray * triggerpatches);
75  Bool_t PythiaInfoFromFile(const char* currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard) const;
76  AliGenPythiaEventHeader *GetPythiaHeader() const;
77  Bool_t IsPhysicalPrimary(const AliVParticle *const part, AliMCEvent *const mcevent);
78  Bool_t IsOutlier(AliGenPythiaEventHeader * const header) const;
79  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
80 
81 
82  AliESDtrackCuts *fTrackCuts;
83  AliAnalysisUtils *fAnalysisUtil;
85  AliEMCALGeometry *fGeometry;
86 
87  // Monte-Carlo specific information
88  Double_t fPtHard;
89  Int_t fPtHardBin;
90  Int_t fNTrials;
91  Float_t fXsection;
92 
93  Double_t fYshift;
94  Double_t fEtaSign;
95  Double_t fEtaLabCut[2];
96  Double_t fEtaCmsCut[2];
97  Double_t fFracPtHard;
99 
100 private:
103 
107 };
108 
109 } /* namespace EMCalTriggerPtAnalysis */
110 
111 #endif /* ALIANALYSISTASKCHARGEDPARTICLESREFMC_H */
void FillTriggerJetHistograms(Bool_t aftercut, AliGenPythiaEventHeader *const header)
Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
Container class for histograms for the high- charged particle analysis.
Double_t fFracPtHard
Cut on the maximum fraction of pt hard of any trigger jet.
AliAnalysisTaskChargedParticlesRefMC & operator=(const AliAnalysisTaskChargedParticlesRefMC &)
const Double_t etamin
void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold)
Bool_t IsPhysicalPrimary(const AliVParticle *const part, AliMCEvent *const mcevent)
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)
Bool_t PythiaInfoFromFile(const char *currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard) const
Unit test class for charged particle distributions (MC case)
const Double_t etamax
Double_t fEtaSign
Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1.