#include <PileupJetIdAlgo.h>
Classes | |
class | AlgoGBRForestsAndConstants |
Public Types | |
typedef std::map< std::string, std::pair< float *, float > > | variables_list_t |
enum | version_t { USER = -1, PHILv0 = 0 } |
Public Member Functions | |
int | computeCutIDflag (float betaStarClassic, float dR2Mean, float nvtx, float jetPt, float jetEta) |
int | computeIDflag (float mva, float jetPt, float jetEta) |
int | computeIDflag (float mva, int ptId, int etaId) |
PileupJetIdentifier | computeIdVariables (const reco::Jet *jet, float jec, const reco::Vertex *, const reco::VertexCollection &, double rho, edm::ValueMap< float > &constituentWeights, bool applyConstituentWeight) |
PileupJetIdentifier | computeMva () |
std::string | dumpVariables () const |
std::pair< int, int > | getJetIdKey (float jetPt, float jetEta) |
float | getMVAval (const std::vector< std::string > &, const std::unique_ptr< const GBRForest > &) |
const variables_list_t & | getVariables () const |
const PileupJetIdentifier::variables_list_t & getVariables() const { return variables_; }; More... | |
const std::string | method () const |
PileupJetIdAlgo (AlgoGBRForestsAndConstants const *cache) | |
void | set (const PileupJetIdentifier &) |
~PileupJetIdAlgo () | |
Protected Member Functions | |
void | initVariables () |
void | resetVariables () |
void | runMva () |
Protected Attributes | |
AlgoGBRForestsAndConstants const * | cache_ |
PileupJetIdentifier | internalId_ |
variables_list_t | variables_ |
Definition at line 22 of file PileupJetIdAlgo.h.
typedef std::map<std::string, std::pair<float*, float> > PileupJetIdAlgo::variables_list_t |
Definition at line 46 of file PileupJetIdAlgo.h.
Enumerator | |
---|---|
USER | |
PHILv0 |
Definition at line 24 of file PileupJetIdAlgo.h.
PileupJetIdAlgo::PileupJetIdAlgo | ( | AlgoGBRForestsAndConstants const * | cache | ) |
PileupJetIdAlgo::~PileupJetIdAlgo | ( | ) |
Definition at line 136 of file PileupJetIdAlgo.cc.
int PileupJetIdAlgo::computeCutIDflag | ( | float | betaStarClassic, |
float | dR2Mean, | ||
float | nvtx, | ||
float | jetPt, | ||
float | jetEta | ||
) |
Definition at line 219 of file PileupJetIdAlgo.cc.
References getJetIdKey(), reco::btau::jetEta, reco::btau::jetPt, PileupJetIdentifier::kLoose, PileupJetIdentifier::kMedium, PileupJetIdentifier::kTight, and CrabHelper::log.
Referenced by runMva().
int PileupJetIdAlgo::computeIDflag | ( | float | mva, |
float | jetPt, | ||
float | jetEta | ||
) |
Definition at line 237 of file PileupJetIdAlgo.cc.
References getJetIdKey(), reco::btau::jetEta, reco::btau::jetPt, and beam_dqm_sourceclient-live_cfg::mva.
Referenced by runMva().
int PileupJetIdAlgo::computeIDflag | ( | float | mva, |
int | ptId, | ||
int | etaId | ||
) |
Definition at line 243 of file PileupJetIdAlgo.cc.
References cache_, PileupJetIdentifier::kLoose, PileupJetIdentifier::kMedium, PileupJetIdentifier::kTight, beam_dqm_sourceclient-live_cfg::mva, and PileupJetIdAlgo::AlgoGBRForestsAndConstants::mvacut().
PileupJetIdentifier PileupJetIdAlgo::computeIdVariables | ( | const reco::Jet * | jet, |
float | jec, | ||
const reco::Vertex * | vtx, | ||
const reco::VertexCollection & | allvtx, | ||
double | rho, | ||
edm::ValueMap< float > & | constituentWeights, | ||
bool | applyConstituentWeight | ||
) |
Definition at line 261 of file PileupJetIdAlgo.cc.
References funct::abs(), cms::cuda::assert(), assign(), reco::Muon::bestTrack(), reco::Candidate::bestTrack(), cache_, reco::Candidate::charge(), reco::PFJet::chargedEmEnergy(), pat::Jet::chargedEmEnergy(), reco::PFJet::chargedHadronEnergy(), pat::Jet::chargedHadronEnergy(), reco::PFJet::chargedMultiplicity(), pat::Jet::chargedMultiplicity(), PileupJetIdentifier::chFrac01_, PileupJetIdentifier::chFrac02_, PileupJetIdentifier::chFrac03_, PileupJetIdentifier::chFrac04_, PileupJetIdentifier::chFrac05_, PileupJetIdentifier::chFrac06_, PileupJetIdentifier::chFrac07_, PileupJetIdentifier::chgEMfrac_, PileupJetIdentifier::chgHadrfrac_, pat::Jet::correctedJet(), PileupJetIdentifier::d0_, reco::deltaPhi(), reco::deltaR(), PileupJetIdentifier::dRLead2nd_, PileupJetIdentifier::dRLeadCent_, PileupJetIdentifier::dRMeanCh_, PileupJetIdentifier::dRMeanEm_, PileupJetIdentifier::dRMeanNeut_, HLT_2024v14_cff::dRmin, reco::TrackBase::dxy(), pat::PackedCandidate::dxy(), l1ctLayer1_cff::dZ, reco::TrackBase::dz(), pat::PackedCandidate::dz(), PileupJetIdentifier::emFrac01_, PileupJetIdentifier::emFrac02_, PileupJetIdentifier::emFrac03_, PileupJetIdentifier::emFrac04_, PileupJetIdentifier::emFrac05_, PileupJetIdentifier::emFrac06_, PileupJetIdentifier::emFrac07_, reco::Candidate::eta(), PileupJetIdentifier::etaW_, PileupJetIdentifier::fourthChFrac_, PileupJetIdentifier::fourthEmFrac_, PileupJetIdentifier::fourthFrac_, PileupJetIdentifier::fourthNeutFrac_, DivergingColor::frac, pat::PackedCandidate::fromPV(), edm::Ptr< T >::get(), edm::Ref< C, T, F >::get(), reco::PFCandidate::gsfTrackRef(), mps_fire::i, internalId_, edm::Ref< C, T, F >::isNonnull(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, jetMETDQMOfflineSource_cff::jec, metsig::jet, PileupJetIdentifier::jetM_, PileupJetIdentifier::jetPhi_, reco::btau::jetPt, PileupJetIdentifier::jetW_, isotrackApplyRegressor::k, large_val, PileupJetIdentifier::leadChEta_, PileupJetIdentifier::leadChFrac_, PileupJetIdentifier::leadChPhi_, PileupJetIdentifier::leadChPt_, PileupJetIdentifier::leadEmEta_, PileupJetIdentifier::leadEmFrac_, PileupJetIdentifier::leadEmPhi_, PileupJetIdentifier::leadEmPt_, PileupJetIdentifier::leadEta_, PileupJetIdentifier::leadFrac_, PileupJetIdentifier::leadNeutEta_, PileupJetIdentifier::leadNeutFrac_, PileupJetIdentifier::leadNeutPhi_, PileupJetIdentifier::leadNeutPt_, PileupJetIdentifier::leadPhi_, PileupJetIdentifier::leadPt_, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, SiStripPI::min, reco::PFCandidate::muonRef(), PileupJetIdentifier::neuEMfrac_, PileupJetIdentifier::neuHadrfrac_, PileupJetIdentifier::neutFrac01_, PileupJetIdentifier::neutFrac02_, PileupJetIdentifier::neutFrac03_, PileupJetIdentifier::neutFrac04_, PileupJetIdentifier::neutFrac05_, PileupJetIdentifier::neutFrac06_, PileupJetIdentifier::neutFrac07_, reco::PFJet::neutralEmEnergy(), pat::Jet::neutralEmEnergy(), reco::PFJet::neutralHadronEnergy(), pat::Jet::neutralHadronEnergy(), reco::PFJet::neutralMultiplicity(), pat::Jet::neutralMultiplicity(), reco::Candidate::pdgId(), reco::Candidate::phi(), PileupJetIdentifier::phiW_, reco::Candidate::pt(), reco::LeafCandidate::pt(), PileupJetIdentifier::pt2A_, PileupJetIdentifier::ptDCh_, PileupJetIdentifier::ptDNe_, PileupJetIdentifier::ptMean_, PileupJetIdentifier::ptRMS_, pat::PackedCandidate::PVUsedInFit, alignCSCRings::r, resetVariables(), rho, runMva(), PileupJetIdAlgo::AlgoGBRForestsAndConstants::runMvas(), PileupJetIdentifier::secondChFrac_, PileupJetIdentifier::secondEmFrac_, PileupJetIdentifier::secondEta_, PileupJetIdentifier::secondFrac_, PileupJetIdentifier::secondNeutFrac_, PileupJetIdentifier::secondPhi_, PileupJetIdentifier::secondPt_, setPtEtaPhi(), jetUpdater_cfi::sort, mathSSE::sqrt(), PileupJetIdentifier::sumChPt_, PileupJetIdentifier::sumNePt_, TtFullHadEvtBuilder_cfi::sumPt, PileupJetIdentifier::sumPt_, edm::swap(), PileupJetIdentifier::thirdChFrac_, PileupJetIdentifier::thirdEmFrac_, PileupJetIdentifier::thirdFrac_, PileupJetIdentifier::thirdNeutFrac_, reco::PFCandidate::trackRef(), L1BJetProducer_cff::vtx, and mps_merge::weight.
Referenced by PileupJetIdProducer::produce().
PileupJetIdentifier PileupJetIdAlgo::computeMva | ( | ) |
Definition at line 255 of file PileupJetIdAlgo.cc.
References internalId_, and runMva().
Referenced by PileupJetIdProducer::produce().
std::string PileupJetIdAlgo::dumpVariables | ( | ) | const |
Definition at line 772 of file PileupJetIdAlgo.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, MillePedeFileConverter_cfg::out, and variables_.
std::pair< int, int > PileupJetIdAlgo::getJetIdKey | ( | float | jetPt, |
float | jetEta | ||
) |
Definition at line 197 of file PileupJetIdAlgo.cc.
References funct::abs(), reco::btau::jetEta, and reco::btau::jetPt.
Referenced by computeCutIDflag(), and computeIDflag().
float PileupJetIdAlgo::getMVAval | ( | const std::vector< std::string > & | varList, |
const std::unique_ptr< const GBRForest > & | reader | ||
) |
Definition at line 158 of file PileupJetIdAlgo.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, SQLiteCheck_cfg::reader, ALCARECOEcalPhiSym_cff::var, and variables_.
Referenced by runMva().
|
inline |
const PileupJetIdentifier::variables_list_t & getVariables() const { return variables_; };
Definition at line 54 of file PileupJetIdAlgo.h.
References variables_.
|
protected |
Definition at line 795 of file PileupJetIdAlgo.cc.
References HLT_2024v14_cff::beta, simBeamSpotPI::betaStar, d0, METSignificanceParams_cfi::dRMatch, l1ctLayer1_cff::dZ, PileupJetIdentifier::idFlag_, INIT_VARIABLE, internalId_, reco::btau::jetEta, reco::btau::jetPhi, reco::btau::jetPt, LHEJetFilter_cfi::jetR, large_val, beam_dqm_sourceclient-live_cfg::mva, HLT_2024v14_cff::nCharged, jetsAK4_CHS_cff::ptD, rho, and TtFullHadEvtBuilder_cfi::sumPt.
Referenced by PileupJetIdAlgo().
|
inline |
Definition at line 42 of file PileupJetIdAlgo.h.
References cache_, and PileupJetIdAlgo::AlgoGBRForestsAndConstants::tmvaMethod().
|
protected |
Definition at line 782 of file PileupJetIdAlgo.cc.
References PileupJetIdentifier::idFlag_, internalId_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and variables_.
Referenced by computeIdVariables().
|
protected |
Definition at line 168 of file PileupJetIdAlgo.cc.
References funct::abs(), cache_, computeCutIDflag(), computeIDflag(), PileupJetIdAlgo::AlgoGBRForestsAndConstants::cutBased(), PileupJetIdAlgo::AlgoGBRForestsAndConstants::etaBinnedWeights(), PileupJetIdAlgo::AlgoGBRForestsAndConstants::etaReader(), getMVAval(), PileupJetIdentifier::idFlag_, internalId_, PileupJetIdAlgo::AlgoGBRForestsAndConstants::jEtaMax(), PileupJetIdAlgo::AlgoGBRForestsAndConstants::jEtaMin(), PileupJetIdentifier::mva_, PileupJetIdAlgo::AlgoGBRForestsAndConstants::nEtaBins(), PileupJetIdAlgo::AlgoGBRForestsAndConstants::reader(), PileupJetIdAlgo::AlgoGBRForestsAndConstants::tmvaEtaVariables(), PileupJetIdAlgo::AlgoGBRForestsAndConstants::tmvaVariables(), and findQualityFiles::v.
Referenced by computeIdVariables(), and computeMva().
void PileupJetIdAlgo::set | ( | const PileupJetIdentifier & | id | ) |
Definition at line 154 of file PileupJetIdAlgo.cc.
References EcalPhiSymFlatTableProducers_cfi::id, and internalId_.
Referenced by PileupJetIdProducer::produce().
|
protected |
Definition at line 111 of file PileupJetIdAlgo.h.
Referenced by computeIDflag(), computeIdVariables(), method(), and runMva().
|
protected |
Definition at line 109 of file PileupJetIdAlgo.h.
Referenced by computeIdVariables(), computeMva(), initVariables(), resetVariables(), runMva(), and set().
|
protected |
Definition at line 110 of file PileupJetIdAlgo.h.
Referenced by dumpVariables(), getMVAval(), getVariables(), and resetVariables().