1 #ifndef AliAnalysisTaskEmcalJetHCorrelations_H 2 #define AliAnalysisTaskEmcalJetHCorrelations_H 27 class AliEventPoolManager;
38 namespace EMCALJetTasks {
119 const char *nTracks =
"usedefault",
120 const char *nCaloClusters =
"usedefault",
125 const Int_t nTracksMixedEvent = 0,
126 const Int_t minNTracksMixedEvent = 5000,
127 const Int_t minNEventsMixedEvent = 5,
128 const UInt_t nCentBinsMixedEvent = 10,
130 UInt_t trigEvent = AliVEvent::kAny,
131 UInt_t mixEvent = AliVEvent::kAny,
133 const Bool_t lessSparseAxes = kFALSE,
134 const Bool_t widerTrackBin = kFALSE,
137 const Bool_t JESCorrection = kFALSE,
138 const char * JESCorrectionFilename =
"alien:///alice/cern.ch/user/r/rehlersi/JESCorrection.root",
139 const char * JESCorrectionHistName =
"JESCorrection",
140 const char *
suffix =
"biased" 144 std::string clusName =
"usedefault",
145 const double jetConstituentPtCut = 3,
146 const double trackEta = 0.8,
147 const double jetRadius = 0.2);
150 std::string clusName =
"caloClustersCombined",
151 const double jetConstituentPtCut = 3,
152 const double trackEta = 0.8,
153 const double jetRadius = 0.2,
154 const std::string & jetTag =
"hybridLevelJets",
155 const std::string & correlationsTracksCutsPeriod =
"lhc11a");
virtual void SetEventMixing(Bool_t enable)
bool CheckArtificialTrackEfficiency(unsigned int trackIndex, std::vector< unsigned int > &rejectedTrackIndices, bool useRejectedList)
Bool_t fNoMixedEventJESCorrection
True if the jet energy scale correction should be applied to mixed event histograms.
void AccessSetOfYBinValues(TH2D *hist, Int_t xBin, std::vector< Double_t > &yBinsContent, Double_t scaleFactor=-1.0)
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="hybridLevelJets", const std::string &correlationsTracksCutsPeriod="lhc11a")
THnSparse * fhnTrigger
! JetH trigger sparse
Int_t fMinNEventsMixedEvents
threshold to use event pool # events
void SetDoWiderTrackBin(Bool_t wtrbin)
Int_t fNMixingTracks
size of track buffer for event mixing
virtual void SetMinNTracksForMixedEvents(Int_t nmt)
UInt_t fMixingEventType
Event selection for mixed events.
bool CheckForMatchedJet(AliJetContainer *jets, AliEmcalJet *jet, const std::string &histName)
static Double_t p10_30SG[17]
10-30% centrality semi-good runs
Double_t GetRelativeEPAngle(Double_t jetAngle, Double_t epAngle) const
Bool_t fDoEventMixing
flag to do event mixing
! Explicitly select pp single track efficiency
virtual void UserCreateOutputObjects()
AliAnalysisTaskEmcalJetHCorrelations & operator=(const AliAnalysisTaskEmcalJetHCorrelations &)
UInt_t RetrieveTriggerMask() const
THnSparse * fhnJH
! JetH THnSparse
TH2D * fJESCorrectionHist
Histogram containing the jet energy scale correction.
THistManager fHistManager
Histogram manager.
virtual ~AliAnalysisTaskEmcalJetHCorrelations()
void SetRequireMatchedJetWhenEmbedding(Bool_t b)
virtual void SetTrackBias(Double_t b)
Require a track with pt > b in jet.
Int_t fMinNTracksMixedEvents
threshold to use event pool # tracks
TH1 * fHistJetPtBias[6]
! Jet pt spectrum of jets which meet the constituent bias criteria (the array corresponds to centrali...
Bool_t fDoLessSparseAxes
True if there should be fewer THnSparse axes.
Double_t fMaxMatchedJetDistance
Maximum distance between two matched jets.
Bool_t fDoWiderTrackBin
True if the track pt bins in the THnSparse should be wider.
AliAnalysisTaskEmcalJetHCorrelations()
Double_t fClusterBias
Jet cluster bias.
UInt_t fTriggerType
Event selection for jets (ie triggered events).
THnSparse * fhnMixedEvents
! Mixed events THnSparse
binArrayLimits_t
Define the number of elements in various arrays.
void SetMinimumSharedMomentumFraction(double d)
bool ConfigureForStandardAnalysis(std::string trackName="usedefault", std::string clusName="usedefault", const double jetConstituentPtCut=3, const double trackEta=0.8, const double jetRadius=0.2)
Container for particles within the EMCAL framework.
TObjArray * CloneAndReduceTrackList(std::vector< unsigned int > &rejectedTrackIndices, const bool useRejectedList)
AliParticleContainer * CreateParticleOrTrackContainer(const std::string &collectionName) const
Int_t GetTrackPtBin(Double_t pt) const
void SetSingleTrackEfficiencyType(ESingleTrackEfficiency_t trackEffType)
BeamType
Switch for the beam type.
jetBias_t
Default value used to disable constituent bias.
TH1 * fHistTrackPt
! Track pt spectrum
void SetRequireMatchedPartLevelJet(bool b)
double GetMinimumSharedMomentumFraction() const
Mimimum shared momentum fraction for matched jet.
virtual void SetNCentBinsMixedEvent(Bool_t centbins)
static Double_t p30_50G[17]
30-50% centrality good runs
virtual THnSparse * NewTHnSparseF(const char *name, UInt_t entries)
virtual void SetClusterBias(Double_t b)
Require a cluster with pt > b in jet.
static Double_t p10_30G[17]
10-30% centrality good runs
Double_t GetTrackBias() const
Bool_t GetDisableFastPartition() const
! Disable single track efficiency
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 AliAnalysisTaskEmcalJetHCorrelations::ESingleTrackEfficiency_t singleTrackEfficiency=AliAnalysisTaskEmcalJetHCorrelations::kEffDisable, 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")
bool GetRequireMatchedPartLevelJet() const
static Double_t p50_90G[17]
50-90% centrality good runs
Bool_t BiasedJet(AliEmcalJet *jet)
void FillHist(TH1 *hist, Double_t fillValue, Double_t weight=1.0, Bool_t noCorrection=kFALSE)
static Double_t p50_90SG[17]
50-90% centrality semi-good runs
virtual void SetMixedEventTriggerType(UInt_t me)
Set the mixed event trigger selection.
Bool_t RetrieveAndInitializeJESCorrectionHist(TString filename, TString histName, Double_t trackBias=AliAnalysisTaskEmcalJetHCorrelations::kDisableBias, Double_t clusterBias=AliAnalysisTaskEmcalJetHCorrelations::kDisableBias)
Double_t EffCorrection(Double_t trkETA, Double_t trkPT, AliAnalysisTaskEmcal::BeamType beamType) const
Bool_t GetRequireMatchedJetWhenEmbedding() const
Require jet to be matched when embedding.
virtual void SetNumberOfMixingTracks(Int_t tracks)
Double_t fMinSharedMomentumFraction
Minimum shared momentum with matched jet.
ESingleTrackEfficiency_t
Define the single track efficiency to apply.
! Number of elements in track pt binned arrays
UInt_t fNCentBinsMixedEvent
N cent bins for the event mixing pool.
! Number of elements in centrality binned arrays
static Double_t p0_10SG[17]
0-10% centrality semi-good runs
! Number of elements in mixed event multiplicity binned arrays
Bool_t fRequireMatchedJetWhenEmbedding
True if jets are required to be matched (ie. jet->MatchedJet() != nullptr)
void SetMaximumMatchedJetDistance(double d)
void SetJESCorrectionHist(TH2D *hist)
TH2 * fHistTrackEtaPhi[7]
! Track eta-phi distribution (the array corresponds to track pt)
virtual void SetMinNEventsForMixedEvents(Int_t nme)
TH1 * fHistJetPt[6]
! Jet pt spectrum (the array corresponds to centrality bins)
static Double_t p30_50SG[17]
30-50% centrality semi-good runs
Bool_t fDisableFastPartition
True if task should be disabled for the fast partition, where the EMCal is not included.
void InitializeArraysToZero()
Double_t fTrackBias
Jet track bias.
void SetArtificialTrackingInefficiency(double eff)
Artificial tracking inefficiency from 0 to 1. 1.0 (default) will disable it.
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Container class for histograms.
void ExecOnce()
Perform steps needed to initialize the analysis.
TH2 * fHistJetEtaPhi
! Jet eta-phi distribution
void SetNoMixedEventJESCorrection(Bool_t b)
Double_t GetClusterBias() const
TH2 * fHistJetHEtaPhi
! Eta-phi distribution of jets which are in jet-hadron correlations
void GetDeltaEtaDeltaPhiDeltaR(AliTLorentzVector &particleOne, AliVParticle *particleTwo, Double_t &deltaEta, Double_t &deltaPhi, Double_t &deltaR)
static Double_t p0_10G[17]
0-10% centrality good runs
! Auto configure the single track efficiency based on the beam type, centrality, and run quality (num...
ESingleTrackEfficiency_t fSingleTrackEfficiencyCorrectionType
Control the efficiency correction. See EffCorrection() for meaning of values.
virtual void SetTriggerType(UInt_t te)
Set the trigger event trigger selection.
AliEventPoolManager * fPoolMgr
! Event pool manager
void SetDoLessSparseAxes(Bool_t dlsa)
! Arbitrarily large value which can be used to disable the constituent bias. Can be used for either t...
void SetDisableFastPartition(Bool_t b=kTRUE)
True if the task should be disabled for the fast partition.
virtual void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)
Container for jet within the EMCAL jet framework.
bool fRequireMatchedPartLevelJet
True if matched jets are required to be matched to a particle level jet.
Double_t fArtificialTrackInefficiency
Artificial track inefficiency. Enabled if < 1.0.
double GetMaximumMatchedJetDistance() const