AliPhysics  vAN-20150924 (e816f45)
 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  AliAnalysisTaskChargedParticlesRefMC(const char *name);
42 
44  void UserExec(Option_t *);
45  Bool_t UserNotify();
46  void Terminate(Option_t *) {}
47 
48  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
49  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
50 
51  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut[0] = etamin; fEtaLabCut[1] = etamax; }
52  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut[0] = etamin; fEtaCmsCut[1] = etamax; }
53  void SetOutlierCut(double fracpthard = 1.2) { fFracPtHard = fracpthard; }
54 
55 protected:
56  void CreateOldPtBinning(TArrayD &binning) const;
57  void CreateNewPtBinning(TArrayD &binning) const;
58 
59  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);
60  void FillTriggerJetHistograms(Bool_t aftercut, AliGenPythiaEventHeader *const header);
61 
62  Bool_t TrackSelectionESD(AliESDtrack *track);
63  Bool_t TrackSelectionAOD(AliAODTrack *track);
64  TString GetFiredTriggerClasses(const TClonesArray * triggerpatches);
65  Bool_t PythiaInfoFromFile(const char* currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard) const;
66  AliGenPythiaEventHeader *GetPythiaHeader() const;
67  Bool_t IsPhysicalPrimary(const AliVParticle *const part, AliMCEvent *const mcevent);
68  Bool_t IsOutlier(AliGenPythiaEventHeader * const header) const;
69 
70 
71  AliESDtrackCuts *fTrackCuts;
72  AliAnalysisUtils *fAnalysisUtil;
74  AliEMCALGeometry *fGeometry;
75 
76  // Monte-Carlo specific information
77  Double_t fPtHard;
78  Int_t fPtHardBin;
79  Int_t fNTrials;
80  Float_t fXsection;
81 
82  Double_t fYshift;
83  Double_t fEtaSign;
84  Double_t fEtaLabCut[2];
85  Double_t fEtaCmsCut[2];
86  Double_t fFracPtHard;
87 
88 private:
91 
95 };
96 
97 } /* namespace EMCalTriggerPtAnalysis */
98 
99 #endif /* ALIANALYSISTASKCHARGEDPARTICLESREFMC_H */
void FillTriggerJetHistograms(Bool_t aftercut, AliGenPythiaEventHeader *const header)
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
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.