#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, bool usePuppi) |
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 41 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 117 of file PileupJetIdAlgo.cc.
int PileupJetIdAlgo::computeCutIDflag | ( | float | betaStarClassic, |
float | dR2Mean, | ||
float | nvtx, | ||
float | jetPt, | ||
float | jetEta | ||
) |
Definition at line 199 of file PileupJetIdAlgo.cc.
References getJetIdKey(), PileupJetIdentifier::kLoose, PileupJetIdentifier::kMedium, PileupJetIdentifier::kTight, and cmsBatch::log.
Referenced by runMva().
int PileupJetIdAlgo::computeIDflag | ( | float | mva, |
float | jetPt, | ||
float | jetEta | ||
) |
Definition at line 218 of file PileupJetIdAlgo.cc.
References getJetIdKey().
Referenced by runMva().
int PileupJetIdAlgo::computeIDflag | ( | float | mva, |
int | ptId, | ||
int | etaId | ||
) |
Definition at line 225 of file PileupJetIdAlgo.cc.
References cache_, PileupJetIdentifier::kLoose, PileupJetIdentifier::kMedium, PileupJetIdentifier::kTight, and PileupJetIdAlgo::AlgoGBRForestsAndConstants::mvacut().
PileupJetIdentifier PileupJetIdAlgo::computeIdVariables | ( | const reco::Jet * | jet, |
float | jec, | ||
const reco::Vertex * | vtx, | ||
const reco::VertexCollection & | allvtx, | ||
double | rho, | ||
bool | usePuppi | ||
) |
Definition at line 243 of file PileupJetIdAlgo.cc.
References funct::abs(), 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::CompositePtrCandidate::daughterPtr(), reco::deltaPhi(), reco::deltaR(), PileupJetIdentifier::dRLead2nd_, PileupJetIdentifier::dRLeadCent_, PileupJetIdentifier::dRMeanCh_, PileupJetIdentifier::dRMeanEm_, PileupJetIdentifier::dRMeanNeut_, reco::TrackBase::dxy(), pat::PackedCandidate::dxy(), reco::TrackBase::dz(), pat::PackedCandidate::dz(), PileupJetIdentifier::emFrac01_, PileupJetIdentifier::emFrac02_, PileupJetIdentifier::emFrac03_, PileupJetIdentifier::emFrac04_, PileupJetIdentifier::emFrac05_, PileupJetIdentifier::emFrac06_, PileupJetIdentifier::emFrac07_, reco::LeafCandidate::energy(), reco::Candidate::eta(), reco::LeafCandidate::eta(), PileupJetIdentifier::etaW_, PileupJetIdentifier::fourthChFrac_, PileupJetIdentifier::fourthEmFrac_, PileupJetIdentifier::fourthFrac_, PileupJetIdentifier::fourthNeutFrac_, cropTnPTrees::frac, pat::PackedCandidate::fromPV(), edm::Ptr< T >::get(), edm::Ref< C, T, F >::get(), reco::PFCandidate::gsfTrackRef(), mps_fire::i, internalId_, reco::Vertex::isFake(), edm::Ref< C, T, F >::isNonnull(), patTestJEC_cfi::jec, metsig::jet, PileupJetIdentifier::jetM_, PileupJetIdentifier::jetPhi_, reco::btau::jetPt, PileupJetIdentifier::jetW_, 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_, reco::LeafCandidate::mass(), min(), reco::PFCandidate::muonRef(), reco::Jet::nConstituents(), reco::Vertex::ndof(), 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::CompositePtrCandidate::numberOfDaughters(), reco::CompositePtrCandidate::numberOfSourceCandidatePtrs(), reco::Candidate::pdgId(), PileupJetIdentifier::phiW_, reco::Vertex::position(), EnergyCorrector::pt, reco::Candidate::pt(), reco::LeafCandidate::pt(), PileupJetIdentifier::pt2A_, PileupJetIdentifier::ptDCh_, PileupJetIdentifier::ptDNe_, PileupJetIdentifier::ptMean_, PileupJetIdentifier::ptRMS_, pat::PackedCandidate::puppiWeight(), 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(), reco::CompositePtrCandidate::sourceCandidatePtr(), mathSSE::sqrt(), PileupJetIdentifier::sumChPt_, PileupJetIdentifier::sumNePt_, TtFullHadEvtBuilder_cfi::sumPt, PileupJetIdentifier::sumPt_, std::swap(), PileupJetIdentifier::thirdChFrac_, PileupJetIdentifier::thirdEmFrac_, PileupJetIdentifier::thirdFrac_, PileupJetIdentifier::thirdNeutFrac_, reco::PFCandidate::trackRef(), reco::Vertex::trackWeight(), and mps_merge::weight.
Referenced by PileupJetIdProducer::produce().
PileupJetIdentifier PileupJetIdAlgo::computeMva | ( | ) |
Definition at line 236 of file PileupJetIdAlgo.cc.
References internalId_, and runMva().
Referenced by PileupJetIdProducer::produce().
std::string PileupJetIdAlgo::dumpVariables | ( | ) | const |
Definition at line 642 of file PileupJetIdAlgo.cc.
References MillePedeFileConverter_cfg::out, and variables_.
Referenced by method().
std::pair< int, int > PileupJetIdAlgo::getJetIdKey | ( | float | jetPt, |
float | jetEta | ||
) |
Definition at line 184 of file PileupJetIdAlgo.cc.
References funct::abs().
Referenced by computeCutIDflag(), and computeIDflag().
float PileupJetIdAlgo::getMVAval | ( | const std::vector< std::string > & | varList, |
const std::unique_ptr< const GBRForest > & | reader | ||
) |
Definition at line 146 of file PileupJetIdAlgo.cc.
References JetChargeProducer_cfi::var, and variables_.
Referenced by runMva().
|
inline |
const PileupJetIdentifier::variables_list_t & getVariables() const { return variables_; };
Definition at line 49 of file PileupJetIdAlgo.h.
References variables_.
|
protected |
Definition at line 670 of file PileupJetIdAlgo.cc.
References pfBoostedDoubleSVAK8TagInfos_cfi::beta, BeamSpotFakeParameters_cfi::betaStar, allConversions_cfi::d0, METSignificanceParams_cfi::dRMatch, PileupJetIdentifier::idFlag_, INIT_VARIABLE, internalId_, reco::btau::jetEta, reco::btau::jetPhi, reco::btau::jetPt, large_val, DetachedQuadStep_cff::mva, hpstanc_transforms::nCharged, jets_cff::ptD, rho, and TtFullHadEvtBuilder_cfi::sumPt.
Referenced by PileupJetIdAlgo().
|
inline |
Definition at line 37 of file PileupJetIdAlgo.h.
References cache_, dumpVariables(), AlCaHLTBitMon_QueryRunRegistry::string, and PileupJetIdAlgo::AlgoGBRForestsAndConstants::tmvaMethod().
|
protected |
Definition at line 655 of file PileupJetIdAlgo.cc.
References PileupJetIdentifier::idFlag_, internalId_, and variables_.
Referenced by computeIdVariables().
|
protected |
Definition at line 156 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 139 of file PileupJetIdAlgo.cc.
References triggerObjects_cff::id, and internalId_.
Referenced by PileupJetIdProducer::produce().
|
protected |
Definition at line 109 of file PileupJetIdAlgo.h.
Referenced by computeIDflag(), computeIdVariables(), method(), and runMva().
|
protected |
Definition at line 107 of file PileupJetIdAlgo.h.
Referenced by computeIdVariables(), computeMva(), initVariables(), resetVariables(), runMva(), and set().
|
protected |
Definition at line 108 of file PileupJetIdAlgo.h.
Referenced by dumpVariables(), getMVAval(), getVariables(), and resetVariables().