19 namespace EMCALJetTasks {
41 double maxTrackPt = 0;
42 double maxClusterPt = 0;
44 if (leadingHadronType ==
kCharged || leadingHadronType ==
kBoth) {
47 maxTrackPt = particle->
Pt();
50 if (leadingHadronType ==
kNeutral || leadingHadronType ==
kBoth) {
60 maxClusterPt = cluster->
Pt();
66 return (maxTrackPt > maxClusterPt) ? maxTrackPt : maxClusterPt;
80 double dphi = (epAngle - jetAngle);
83 if( dphi<-1*TMath::Pi() ) {
84 dphi = dphi + 1*TMath::Pi();
87 if( (dphi>0) && (dphi<1*TMath::Pi()/2) ) {
89 }
else if ( (dphi>1*TMath::Pi()/2) && (dphi<1*TMath::Pi()) ) {
90 dphi = 1*TMath::Pi() - dphi;
91 }
else if ( (dphi<0) && (dphi>-1*TMath::Pi()/2) ) {
92 dphi = std::abs(dphi);
93 }
else if ( (dphi<-1*TMath::Pi()/2) && (dphi>-1*TMath::Pi()) ) {
94 dphi = dphi + 1*TMath::Pi();
98 if ( dphi < 0 || dphi > TMath::Pi()/2 ) {
99 AliWarningGeneralStream(
"AliAnalysisTaskEmcalJetHUtils") <<
": dPHI not in range [0, 0.5*Pi]!\n";
! Leading is from the leader of both
const PWG::JETFW::AliEmcalParticleJetConstituent * GetLeadingParticleConstituent() const
Get the leading particle constituent.
ELeadingHadronBiasType_t
Determine the jet leading hadron bias type.
static double RelativeEPAngle(double jetAngle, double epAngle)
static double GetLeadingHadronPt(AliEmcalJet *jet, ELeadingHadronBiasType_t leadingHadronType)
const PWG::JETFW::AliEmcalClusterJetConstituent * GetLeadingClusterConstituent() const
Get the leading cluster constituent.
virtual double Pt() const
Access to transverse momentum.
virtual double Pt() const
Access to transverse momentum.
Represent a jet reconstructed using the EMCal jet framework.
static const std::map< std::string, ELeadingHadronBiasType_t > fgkLeadingHadronBiasMap
! Map from name to leading hadron bias used with the YAML config