AliPhysics  e59a9ba (e59a9ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 class THistManager;
12 
13 class AliAnalysisUtils;
14 class AliAODTrack;
15 class AliEMCALGeometry;
16 class AliESDtrack;
18 class AliGenPythiaEventHeader;
19 class AliVParticle;
20 class AliMCEvent;
21 
22 namespace EMCalTriggerPtAnalysis {
23 
24 class AliEMCalTriggerWeightHandler;
25 
35 class AliAnalysisTaskChargedParticlesRefMC: public AliAnalysisTaskSE {
36 public:
38  kpPb = 1,
39  kPbp = -1
40  };
41 
43  AliAnalysisTaskChargedParticlesRefMC(const char *name);
45 
47  void UserExec(Option_t *);
48  Bool_t UserNotify();
49  void Terminate(Option_t *) {}
50 
51  void SetRapidityShift(Double_t yshift) { fYshift = yshift; }
52  void SetBeamDirection(BeamDirection_t beamdir) { fEtaSign = static_cast<Double_t>(beamdir); }
53 
54  void SetAnalysisUtil(AliAnalysisUtils *util) { fAnalysisUtil = util; }
56  void SetEtaLabCut(double etamin, double etamax) { fEtaLabCut[0] = etamin; fEtaLabCut[1] = etamax; }
57  void SetEtaCMSCut(double etamin, double etamax) { fEtaCmsCut[0] = etamin; fEtaCmsCut[1] = etamax; }
58  void SetOutlierCut(double fracpthard = 1.2) { fFracPtHard = fracpthard; }
60  void SetUsePythiaHard(Bool_t usePythiaHard) { fUsePythiaHard = usePythiaHard; }
61  void InitializeTrackCuts(TString cutname, bool isAOD);
63 
64 protected:
65  void CreateOldPtBinning(TArrayD &binning) const;
66  void CreateNewPtBinning(TArrayD &binning) const;
67 
68  void FillTrackHistos(const char *eventclass, Double_t weight, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD, const char *pid);
69  void FillTriggerJetHistograms(Bool_t aftercut, AliGenPythiaEventHeader *const header);
70 
71  TString GetFiredTriggerClasses(const TClonesArray * triggerpatches);
72  Bool_t PythiaInfoFromFile(const char* currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard) const;
73  AliGenPythiaEventHeader *GetPythiaHeader() const;
74  Bool_t IsPhysicalPrimary(const AliVParticle *const part, AliMCEvent *const mcevent);
75  Bool_t IsOutlier(AliGenPythiaEventHeader * const header) const;
76 
77 
79  AliAnalysisUtils *fAnalysisUtil;
82  AliEMCALGeometry *fGeometry;
84 
85  // Monte-Carlo specific information
86  Bool_t fUsePythiaHard;
87  Double_t fPtHard;
88  Int_t fPtHardBin;
89  Int_t fNTrials;
90  Float_t fXsection;
91 
92  Double_t fYshift;
93  Double_t fEtaSign;
94  Double_t fEtaLabCut[2];
95  Double_t fEtaCmsCut[2];
96  Double_t fFracPtHard;
97 
98 private:
101 
105 };
106 
107 } /* namespace EMCalTriggerPtAnalysis */
108 
109 #endif /* ALIANALYSISTASKCHARGEDPARTICLESREFMC_H */
Interface for virtual track selection.
const AliEMCalTriggerWeightHandler * fWeightHandler
Weight handler (optional)
void FillTriggerJetHistograms(Bool_t aftercut, AliGenPythiaEventHeader *const header)
Double_t fFracPtHard
Cut on the maximum fraction of pt hard of any trigger jet.
AliAnalysisTaskChargedParticlesRefMC & operator=(const AliAnalysisTaskChargedParticlesRefMC &)
const Double_t etamin
AliEmcalTriggerOfflineSelection * fTriggerSelection
Offline trigger selection.
Bool_t IsPhysicalPrimary(const AliVParticle *const part, AliMCEvent *const mcevent)
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)
void FillTrackHistos(const char *eventclass, Double_t weight, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD, const char *pid)
const Double_t etamax
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.
Definition: THistManager.h:43