1 #ifndef AliAnalysisTaskEmcalJetHMEC_H
2 #define AliAnalysisTaskEmcalJetHMEC_H
25 class AliEventPoolManager;
87 const char *nTracks =
"usedefault",
88 const char *nCaloClusters =
"usedefault",
94 const Int_t nTracksMixedEvent = 0,
95 const Int_t minNTracksMixedEvent = 5000,
96 const Int_t minNEventsMixedEvent = 5,
97 const UInt_t nCentBinsMixedEvent = 10,
99 UInt_t trigEvent = AliVEvent::kAny,
100 UInt_t mixEvent = AliVEvent::kAny,
103 const Bool_t lessSparseAxes = 0,
104 const Bool_t widerTrackBin = 0,
106 const Int_t doEffCorrSW = 0,
107 const Bool_t JESCorrection = kFALSE,
108 const char * JESCorrectionFilename =
"alien:///alice/cern.ch/user/r/rehlersi/JESCorrection.root",
109 const char * JESCorrectionHistName =
"JESCorrection",
110 const char *
suffix =
"biased"
Jet-hadron correlations analysis task for central Pb-Pb and pp.
virtual void SetTriggerType(UInt_t te)
Set the trigger event trigger selection.
void GetDeltaEtaDeltaPhiDeltaR(AliTLorentzVector &particleOne, AliVParticle *particleTwo, Double_t &deltaEta, Double_t &deltaPhi, Double_t &deltaR)
void SetJESCorrectionHist(TH2D *hist)
virtual ~AliAnalysisTaskEmcalJetHMEC()
Bool_t fDoEventMixing
flag to do evt mixing
Int_t fMinNEventsMixedEvents
threshold to use event pool # events
UInt_t fNCentBinsMixedEvent
N cent bins for the event mixing pool.
TH2D * fJESCorrectionHist
Histogram containing the jet energy scale correction.
Bool_t GetDisableFastPartition() const
Int_t GetTrackPtBin(Double_t pt) const
! Number of elements in track pt binned arrays
! Number of elements in mixed event multiplicity binned arrays
static AliAnalysisTaskEmcalJetHMEC * AddTaskEmcalJetHMEC(const char *nTracks="usedefault", const char *nCaloClusters="usedefault", const Double_t trackBias=5, const Double_t clusterBias=5, const Double_t minJetArea=0.4, const Int_t nTracksMixedEvent=0, const Int_t minNTracksMixedEvent=5000, const Int_t minNEventsMixedEvent=5, const UInt_t nCentBinsMixedEvent=10, UInt_t trigEvent=AliVEvent::kAny, UInt_t mixEvent=AliVEvent::kAny, const Double_t trackEta=0.9, const Bool_t lessSparseAxes=0, const Bool_t widerTrackBin=0, const Int_t doEffCorrSW=0, const Bool_t JESCorrection=kFALSE, const char *JESCorrectionFilename="alien:///alice/cern.ch/user/r/rehlersi/JESCorrection.root", const char *JESCorrectionHistName="JESCorrection", const char *suffix="biased")
TH1 * fHistTrackPt
! Track pt spectrum
void SetNoMixedEventJESCorrection(Bool_t b)
! Number of elements in jet pt binned arrays
Bool_t RetrieveAndInitializeJESCorrectionHist(TString filename, TString histName, Double_t trackBias=AliAnalysisTaskEmcalJetHMEC::kDisableBias, Double_t clusterBias=AliAnalysisTaskEmcalJetHMEC::kDisableBias)
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
static Double_t p50_90SG[17]
50-90% centrality semi-good runs
static Double_t p0_10SG[17]
0-10% centrality semi-good runs
TH2 * fHistJetHEtaPhi
! Eta-phi distribution of jets which are in jet-hadron correlations
virtual void UserCreateOutputObjects()
AliEventPoolManager * fPoolMgr
! Event pool manager
jetBias_t
Default value used to disable constituent bias.
void ExecOnce()
Perform steps needed to initialize the analysis.
TH2 * fHistJetHBias[6][5][3]
! Jet-hadron correlations of jets which meet the constituent bias criteria (the arrays correspond to ...
static Double_t p50_90G[17]
50-90% centrality good runs
Double_t GetClusterBias() const
Int_t fDoEffCorrection
Control the efficiency correction. See EffCorrection() for meaning of values.
Int_t GetJetPtBin(Double_t pt) const
Bool_t fDoWiderTrackBin
True if the track pt bins in the THnSparse should be wider.
Int_t fMinNTracksMixedEvents
threshold to use event pool # tracks
virtual THnSparse * NewTHnSparseF(const char *name, UInt_t entries)
Bool_t BiasedJet(AliEmcalJet *jet)
! Number of elements in eta binned arrays
AliAnalysisTaskEmcalJetHMEC & operator=(const AliAnalysisTaskEmcalJetHMEC &)
! Arbitrarily large value which can be used to disable the constituent bias. Can be used for either t...
TH1 * fHistJetPtBias[6]
! Jet pt spectrum of jets which meet the constituent bias criteria (the array corresponds to centrali...
BeamType
Switch for the beam type.
TObjArray * CloneAndReduceTrackList()
static Double_t p30_50SG[17]
30-50% centrality semi-good runs
TH1 * fHistJetPt[6]
! Jet pt spectrum (the array corresponds to centrality bins)
static Double_t p10_30G[17]
10-30% centrality good runs
static Double_t p0_10G[17]
0-10% centrality good runs
Double_t GetTrackBias() const
TH3 * fHistJHPsi
! Psi angle distribution
Bool_t fNoMixedEventJESCorrection
True if the jet energy scale correction should be applied to mixed event histograms.
virtual void SetMinNTracksForMixedEvents(Int_t nmt)
void FillHist(TH1 *hist, Double_t fillValue, Double_t weight=1.0, Bool_t noCorrection=kFALSE)
UInt_t fTriggerType
Event selection for jets (ie triggered events).
Int_t GetEtaBin(Double_t eta) const
static Double_t p30_50G[17]
30-50% centrality good runs
AliAnalysisTaskEmcalJetHMEC()
Double_t fClusterBias
Jet cluster bias.
void InitializeArraysToZero()
void SetDoLessSparseAxes(Bool_t dlsa)
virtual void SetClusterBias(Double_t b)
Require a cluster with pt > b in jet.
virtual void SetEventMixing(Bool_t enable)
static Double_t p10_30SG[17]
10-30% centrality semi-good runs
Bool_t fDisableFastPartition
True if task should be disabled for the fast partition, where the EMCal is not included.
Double_t fTrackBias
Jet track bias.
TH2 * fHistJetEtaPhi
! Jet eta-phi distribution
virtual void SetNumberOfMixingTracks(Int_t tracks)
binArrayLimits_t
Define the number of elements in various arrays.
Double_t EffCorrection(Double_t trkETA, Double_t trkPT, AliAnalysisTaskEmcal::BeamType beamType) const
! Number of elements in centrality binned arrays
void SetDoEffCorr(Int_t effcorr)
THnSparse * fhnMixedEvents
! Mixed events THnSparse
void AccessSetOfYBinValues(TH2D *hist, Int_t xBin, std::vector< Double_t > &yBinsContent, Double_t scaleFactor=-1.0)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
virtual void SetMixedEventTriggerType(UInt_t me)
Set the mixed event trigger selection.
Bool_t fDoLessSparseAxes
True if there should be fewer THnSparse axes.
virtual void SetMinNEventsForMixedEvents(Int_t nme)
virtual void Terminate(Option_t *)
void SetDisableFastPartition(Bool_t b=kTRUE)
True if the task should be disabled for the fast parititon.
Int_t fNMixingTracks
size of track buffer for event mixing
UInt_t fMixingEventType
Event selection for mixed events.
void SetDoWiderTrackBin(Bool_t wtrbin)
virtual void SetNCentBinsMixedEvent(Bool_t centbins)
virtual void SetTrackBias(Double_t b)
Require a track with pt > b in jet.
TH2 * fHistJetH[6][5][3]
! Jet-hadron correlations (the arrays correspond to centrality, jet pt bins, and eta bins) ...
THnSparse * fhnJH
! JetH THnSparse
TH2 * fHistTrackEtaPhi[7]
! Track eta-phi distribution (the array corresponds to track pt)
virtual void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)