1 #ifndef AliAnalysisTaskEmcalJetHCorrelations_H 2 #define AliAnalysisTaskEmcalJetHCorrelations_H 25 class AliEventPoolManager;
90 const char *nTracks =
"usedefault",
91 const char *nCaloClusters =
"usedefault",
96 const Int_t nTracksMixedEvent = 0,
97 const Int_t minNTracksMixedEvent = 5000,
98 const Int_t minNEventsMixedEvent = 5,
99 const UInt_t nCentBinsMixedEvent = 10,
101 UInt_t trigEvent = AliVEvent::kAny,
102 UInt_t mixEvent = AliVEvent::kAny,
104 const Bool_t lessSparseAxes = kFALSE,
105 const Bool_t widerTrackBin = kFALSE,
107 const Int_t doEffCorrSW = 0,
108 const Bool_t JESCorrection = kFALSE,
109 const char * JESCorrectionFilename =
"alien:///alice/cern.ch/user/r/rehlersi/JESCorrection.root",
110 const char * JESCorrectionHistName =
"JESCorrection",
111 const char *
suffix =
"biased" 115 std::string clusName =
"usedefault",
116 const double jetConstituentPtCut = 3,
117 const double trackEta = 0.8,
118 const double jetRadius = 0.2);
121 std::string clusName =
"caloClustersCombined",
122 const double jetConstituentPtCut = 3,
123 const double trackEta = 0.8,
124 const double jetRadius = 0.2,
125 const std::string & jetTag =
"hybridJets",
126 const std::string & correlationsTracksCutsPeriod =
"lhc11a");
static AliAnalysisTaskEmcalJetHCorrelations * AddTaskEmcalJetHCorrelations(const char *nTracks="usedefault", const char *nCaloClusters="usedefault", const Double_t trackBias=5, const Double_t clusterBias=5, 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 Bool_t lessSparseAxes=kFALSE, const Bool_t widerTrackBin=kFALSE, 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")
virtual void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)
Bool_t RetrieveAndInitializeJESCorrectionHist(TString filename, TString histName, Double_t trackBias=AliAnalysisTaskEmcalJetHCorrelations::kDisableBias, Double_t clusterBias=AliAnalysisTaskEmcalJetHCorrelations::kDisableBias)
Double_t GetRelativeEPAngle(Double_t jetAngle, Double_t epAngle) const
void FillHist(TH1 *hist, Double_t fillValue, Double_t weight=1.0, Bool_t noCorrection=kFALSE)
virtual void UserCreateOutputObjects()
virtual void SetTrackBias(Double_t b)
Require a track with pt > b in jet.
void SetDisableFastPartition(Bool_t b=kTRUE)
True if the task should be disabled for the fast parititon.
jetBias_t
Default value used to disable constituent bias.
void SetDoLessSparseAxes(Bool_t dlsa)
static Double_t p50_90SG[17]
50-90% centrality semi-good runs
AliParticleContainer * CreateParticleOrTrackContainer(std::string const &collectionName) const
Bool_t fDisableFastPartition
True if task should be disabled for the fast partition, where the EMCal is not included.
void AccessSetOfYBinValues(TH2D *hist, Int_t xBin, std::vector< Double_t > &yBinsContent, Double_t scaleFactor=-1.0)
void SetDoEffCorr(Int_t effcorr)
virtual void SetMinNTracksForMixedEvents(Int_t nmt)
Bool_t GetRequireMatchedJetWhenEmbedding() const
Require jet to be matched when embedding.
void SetNoMixedEventJESCorrection(Bool_t b)
THnSparse * fhnJH
! JetH THnSparse
Double_t fClusterBias
Jet cluster bias.
static Double_t p0_10SG[17]
0-10% centrality semi-good runs
void SetJESCorrectionHist(TH2D *hist)
UInt_t RetrieveTriggerMask() const
void InitializeArraysToZero()
THnSparse * fhnTrigger
! JetH trigger sparse
Bool_t fRequireMatchedJetWhenEmbedding
True if jets are required to be matched (ie. jet->MatchedJet() != nullptr)
static Double_t p10_30G[17]
10-30% centrality good runs
Double_t GetTrackBias() const
virtual void SetMixedEventTriggerType(UInt_t me)
Set the mixed event trigger selection.
AliAnalysisTaskEmcalJetHCorrelations()
TH2D * fJESCorrectionHist
Histogram containing the jet energy scale correction.
virtual void SetNCentBinsMixedEvent(Bool_t centbins)
TH1 * fHistJetPt[6]
! Jet pt spectrum (the array corresponds to centrality bins)
TObjArray * CloneAndReduceTrackList()
TH2 * fHistJetHEtaPhi
! Eta-phi distribution of jets which are in jet-hadron correlations
UInt_t fTriggerType
Event selection for jets (ie triggered events).
Container for particles within the EMCAL framework.
BeamType
Switch for the beam type.
virtual void SetMinNEventsForMixedEvents(Int_t nme)
TH2 * fHistTrackEtaPhi[7]
! Track eta-phi distribution (the array corresponds to track pt)
void SetDoWiderTrackBin(Bool_t wtrbin)
Double_t fTrackBias
Jet track bias.
bool ConfigureForEmbeddingAnalysis(std::string trackName="usedefault", std::string clusName="caloClustersCombined", const double jetConstituentPtCut=3, const double trackEta=0.8, const double jetRadius=0.2, const std::string &jetTag="hybridJets", const std::string &correlationsTracksCutsPeriod="lhc11a")
TH2 * fHistJetEtaPhi
! Jet eta-phi distribution
virtual void SetTriggerType(UInt_t te)
Set the trigger event trigger selection.
Bool_t fDoWiderTrackBin
True if the track pt bins in the THnSparse should be wider.
THnSparse * fhnMixedEvents
! Mixed events THnSparse
UInt_t fMixingEventType
Event selection for mixed events.
static Double_t p50_90G[17]
50-90% centrality good runs
! Number of elements in mixed event multiplicity binned arrays
Bool_t GetDisableFastPartition() const
virtual void SetNumberOfMixingTracks(Int_t tracks)
Int_t fMinNTracksMixedEvents
threshold to use event pool # tracks
! Number of elements in track pt binned arrays
! Number of elements in centrality binned arrays
Double_t GetClusterBias() const
AliAnalysisTaskEmcalJetHCorrelations & operator=(const AliAnalysisTaskEmcalJetHCorrelations &)
! Arbitrarily large value which can be used to disable the constituent bias. Can be used for either t...
bool ConfigureForStandardAnalysis(std::string trackName="usedefault", std::string clusName="usedefault", const double jetConstituentPtCut=3, const double trackEta=0.8, const double jetRadius=0.2)
Bool_t fNoMixedEventJESCorrection
True if the jet energy scale correction should be applied to mixed event histograms.
AliEventPoolManager * fPoolMgr
! Event pool manager
Int_t fDoEffCorrection
Control the efficiency correction. See EffCorrection() for meaning of values.
virtual THnSparse * NewTHnSparseF(const char *name, UInt_t entries)
static Double_t p0_10G[17]
0-10% centrality good runs
virtual void SetEventMixing(Bool_t enable)
virtual ~AliAnalysisTaskEmcalJetHCorrelations()
TH1 * fHistTrackPt
! Track pt spectrum
Int_t GetTrackPtBin(Double_t pt) const
Base task in the EMCAL jet framework.
Double_t EffCorrection(Double_t trkETA, Double_t trkPT, AliAnalysisTaskEmcal::BeamType beamType) const
Represent a jet reconstructed using the EMCal jet framework.
static Double_t p30_50SG[17]
30-50% centrality semi-good runs
void GetDeltaEtaDeltaPhiDeltaR(AliTLorentzVector &particleOne, AliVParticle *particleTwo, Double_t &deltaEta, Double_t &deltaPhi, Double_t &deltaR)
Bool_t fDoEventMixing
flag to do evt mixing
Bool_t BiasedJet(AliEmcalJet *jet)
binArrayLimits_t
Define the number of elements in various arrays.
Bool_t fDoLessSparseAxes
True if there should be fewer THnSparse axes.
Jet-hadron correlations analysis task for central Pb-Pb and pp.
UInt_t fNCentBinsMixedEvent
N cent bins for the event mixing pool.
TH1 * fHistJetPtBias[6]
! Jet pt spectrum of jets which meet the constituent bias criteria (the array corresponds to centrali...
virtual void SetClusterBias(Double_t b)
Require a cluster with pt > b in jet.
Int_t fMinNEventsMixedEvents
threshold to use event pool # events
Int_t fNMixingTracks
size of track buffer for event mixing
static Double_t p30_50G[17]
30-50% centrality good runs
static Double_t p10_30SG[17]
10-30% centrality semi-good runs
void SetRequireMatchedJetWhenEmbedding(Bool_t b)