#include <PileupJetIdAlgo.h>
Public Types | |
typedef std::map< std::string, std::pair< float *, float > > | variables_list_t |
typedef std::map< std::string, std::pair< float *, float > > | variables_list_t |
enum | version_t { USER =-1, PHILv0 =0, USER =-1, PHILv0 =0 } |
enum | version_t { USER =-1, PHILv0 =0, USER =-1, PHILv0 =0 } |
Public Member Functions | |
int | computeCutIDflag (float betaStarClassic, float dR2Mean, float nvtx, float jetPt, float jetEta) |
int | computeCutIDflag (float betaStarClassic, float dR2Mean, float nvtx, float jetPt, float jetEta) |
int | computeIDflag (float mva, float jetPt, float jetEta) |
int | computeIDflag (float mva, float jetPt, float jetEta) |
int | computeIDflag (float mva, int ptId, int etaId) |
int | computeIDflag (float mva, int ptId, int etaId) |
PileupJetIdentifier | computeIdVariables (const reco::Jet *jet, float jec, const reco::Vertex *, const reco::VertexCollection &, bool calculateMva=false) |
PileupJetIdentifier | computeIdVariables (const reco::Jet *jet, float jec, const reco::Vertex *, const reco::VertexCollection &, bool calculateMva=false) |
PileupJetIdentifier | computeMva () |
PileupJetIdentifier | computeMva () |
std::string | dumpVariables () const |
std::string | dumpVariables () const |
std::pair< int, int > | getJetIdKey (float jetPt, float jetEta) |
std::pair< int, int > | getJetIdKey (float jetPt, float jetEta) |
const variables_list_t & | getVariables () const |
const PileupJetIdentifier::variables_list_t & getVariables() const { return variables_; }; More... | |
const variables_list_t & | getVariables () const |
const PileupJetIdentifier::variables_list_t & getVariables() const { return variables_; }; More... | |
const std::string | method () const |
const std::string | method () const |
PileupJetIdAlgo (int version=PHILv0, const std::string &tmvaWeight="", const std::string &tmvaMethod="", Float_t impactParTkThreshod_=1., const std::vector< std::string > &tmvaVariables=std::vector< std::string >()) | |
PileupJetIdAlgo (int version=PHILv0, const std::string &tmvaWeight="", const std::string &tmvaMethod="", Float_t impactParTkThreshod_=1., const std::vector< std::string > &tmvaVariables=std::vector< std::string >()) | |
PileupJetIdAlgo (const edm::ParameterSet &ps) | |
PileupJetIdAlgo (const edm::ParameterSet &ps) | |
void | set (const PileupJetIdentifier &) |
void | set (const PileupJetIdentifier &) |
~PileupJetIdAlgo () | |
~PileupJetIdAlgo () | |
Protected Member Functions | |
void | bookReader () |
void | bookReader () |
void | initVariables () |
void | initVariables () |
void | resetVariables () |
void | resetVariables () |
void | runMva () |
void | runMva () |
void | setup () |
void | setup () |
Protected Attributes | |
Float_t | betaStarCut_ [3][4][4] |
bool | cutBased_ |
Float_t | impactParTkThreshod_ |
PileupJetIdentifier | internalId_ |
Float_t | mvacut_ [3][4][4] |
TMVA::Reader * | reader_ |
Float_t | rmsCut_ [3][4][4] |
std::string | tmvaMethod_ |
std::map< std::string, std::string > | tmvaNames_ |
std::vector< std::string > | tmvaSpectators_ |
std::vector< std::string > | tmvaVariables_ |
std::string | tmvaWeights_ |
variables_list_t | variables_ |
Int_t | version_ |
Definition at line 25 of file PileupJetIdAlgo.h.
typedef std::map<std::string,std::pair<float *,float> > PileupJetIdAlgo::variables_list_t |
Definition at line 44 of file PileupJetIdAlgo.h.
typedef std::map<std::string,std::pair<float *,float> > PileupJetIdAlgo::variables_list_t |
Definition at line 44 of file PileupJetIdAlgo.h.
Enumerator | |
---|---|
USER | |
PHILv0 | |
USER | |
PHILv0 |
Definition at line 27 of file PileupJetIdAlgo.h.
Enumerator | |
---|---|
USER | |
PHILv0 | |
USER | |
PHILv0 |
Definition at line 27 of file PileupJetIdAlgo.h.
PileupJetIdAlgo::PileupJetIdAlgo | ( | int | version = PHILv0 , |
const std::string & | tmvaWeight = "" , |
||
const std::string & | tmvaMethod = "" , |
||
Float_t | impactParTkThreshod_ = 1. , |
||
const std::vector< std::string > & | tmvaVariables = std::vector<std::string>() |
||
) |
Definition at line 72 of file PileupJetIdAlgo.cc.
References impactParTkThreshod_, reader_, setup(), mvaPFMET_cff::tmvaMethod, tmvaMethod_, mvaPFMET_cff::tmvaVariables, tmvaVariables_, mvaPFMET_cff::tmvaWeights, tmvaWeights_, BeamSplash_cfg::version, and version_.
PileupJetIdAlgo::PileupJetIdAlgo | ( | const edm::ParameterSet & | ps | ) |
ps.getParameter<double>("impactParTkThreshod");
Definition at line 17 of file PileupJetIdAlgo.cc.
References betaStarCut_, cutBased_, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), impactParTkThreshod_, PileupJetIdentifier::kLoose, PileupJetIdentifier::kMedium, mvacut_, reader_, rmsCut_, setup(), AlCaHLTBitMon_QueryRunRegistry::string, tmvaMethod_, tmvaSpectators_, tmvaVariables_, tmvaWeights_, and version_.
PileupJetIdAlgo::~PileupJetIdAlgo | ( | ) |
PileupJetIdAlgo::PileupJetIdAlgo | ( | int | version = PHILv0 , |
const std::string & | tmvaWeight = "" , |
||
const std::string & | tmvaMethod = "" , |
||
Float_t | impactParTkThreshod_ = 1. , |
||
const std::vector< std::string > & | tmvaVariables = std::vector< std::string >() |
||
) |
PileupJetIdAlgo::PileupJetIdAlgo | ( | const edm::ParameterSet & | ps | ) |
PileupJetIdAlgo::~PileupJetIdAlgo | ( | ) |
|
protected |
Definition at line 190 of file PileupJetIdAlgo.cc.
References relativeConstraints::empty, first, reader_, tmvaMethod_, tmvaNames_, tmvaSpectators_, tmvaVariables_, tmvaWeights_, and variables_.
Referenced by runMva().
|
protected |
int PileupJetIdAlgo::computeCutIDflag | ( | float | betaStarClassic, |
float | dR2Mean, | ||
float | nvtx, | ||
float | jetPt, | ||
float | jetEta | ||
) |
int PileupJetIdAlgo::computeCutIDflag | ( | float | betaStarClassic, |
float | dR2Mean, | ||
float | nvtx, | ||
float | jetPt, | ||
float | jetEta | ||
) |
Definition at line 244 of file PileupJetIdAlgo.cc.
References betaStarCut_, getJetIdKey(), PileupJetIdentifier::kLoose, PileupJetIdentifier::kMedium, PileupJetIdentifier::kTight, create_public_lumi_plots::log, and rmsCut_.
Referenced by runMva().
int PileupJetIdAlgo::computeIDflag | ( | float | mva, |
float | jetPt, | ||
float | jetEta | ||
) |
Definition at line 263 of file PileupJetIdAlgo.cc.
References getJetIdKey().
Referenced by runMva().
int PileupJetIdAlgo::computeIDflag | ( | float | mva, |
float | jetPt, | ||
float | jetEta | ||
) |
int PileupJetIdAlgo::computeIDflag | ( | float | mva, |
int | ptId, | ||
int | etaId | ||
) |
Definition at line 270 of file PileupJetIdAlgo.cc.
References PileupJetIdentifier::kLoose, PileupJetIdentifier::kMedium, PileupJetIdentifier::kTight, and mvacut_.
int PileupJetIdAlgo::computeIDflag | ( | float | mva, |
int | ptId, | ||
int | etaId | ||
) |
PileupJetIdentifier PileupJetIdAlgo::computeIdVariables | ( | const reco::Jet * | jet, |
float | jec, | ||
const reco::Vertex * | , | ||
const reco::VertexCollection & | , | ||
bool | calculateMva = false |
||
) |
PileupJetIdentifier PileupJetIdAlgo::computeIdVariables | ( | const reco::Jet * | jet, |
float | jec, | ||
const reco::Vertex * | vtx, | ||
const reco::VertexCollection & | allvtx, | ||
bool | calculateMva = false |
||
) |
Definition at line 288 of file PileupJetIdAlgo.cc.
References assign, 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_, alignCSCRings::e, PileupJetIdentifier::emFrac01_, PileupJetIdentifier::emFrac02_, PileupJetIdentifier::emFrac03_, PileupJetIdentifier::emFrac04_, PileupJetIdentifier::emFrac05_, PileupJetIdentifier::emFrac06_, PileupJetIdentifier::emFrac07_, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), PileupJetIdentifier::etaW_, spr::find(), PileupJetIdentifier::fourthChFrac_, PileupJetIdentifier::fourthEmFrac_, PileupJetIdentifier::fourthFrac_, PileupJetIdentifier::fourthNeutFrac_, cropTnPTrees::frac, reco::PFCandidate::gamma, reco::PFJet::getPFConstituents(), pat::Jet::getPFConstituents(), reco::PFCandidate::h0, internalId_, edm::Ptr< T >::isAvailable(), edm::Ref< C, T, F >::isAvailable(), reco::Vertex::isFake(), edm::Ptr< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), edm::Ptr< T >::isNull(), 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_, PileupJetIdentifier::majW_, reco::LeafCandidate::mass(), min(), PileupJetIdentifier::minW_, 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(), PileupJetIdentifier::phiW_, reco::Vertex::position(), EnergyCorrector::pt, reco::LeafCandidate::pt(), PileupJetIdentifier::pt2A_, PileupJetIdentifier::ptDCh_, PileupJetIdentifier::ptDNe_, PileupJetIdentifier::ptMean_, PileupJetIdentifier::ptRMS_, alignCSCRings::r, resetVariables(), runMva(), PileupJetIdentifier::secondChFrac_, PileupJetIdentifier::secondEmFrac_, PileupJetIdentifier::secondEta_, PileupJetIdentifier::secondFrac_, PileupJetIdentifier::secondNeutFrac_, PileupJetIdentifier::secondPhi_, PileupJetIdentifier::secondPt_, setPtEtaPhi(), python.multivaluedict::sort(), mathSSE::sqrt(), PileupJetIdentifier::sumChPt_, PileupJetIdentifier::sumNePt_, PileupJetIdentifier::sumPt_, std::swap(), PileupJetIdentifier::thirdChFrac_, PileupJetIdentifier::thirdEmFrac_, PileupJetIdentifier::thirdFrac_, PileupJetIdentifier::thirdNeutFrac_, reco::Vertex::tracks_begin(), and reco::Vertex::tracks_end().
Referenced by reco::PFMETProducerMVA::computeJetInfo(), PileupJetIdProducer::produce(), and MVAJetIdMaker::SetVars().
PileupJetIdentifier PileupJetIdAlgo::computeMva | ( | ) |
PileupJetIdentifier PileupJetIdAlgo::computeMva | ( | ) |
Definition at line 281 of file PileupJetIdAlgo.cc.
References internalId_, and runMva().
Referenced by PileupJetIdProducer::produce().
std::string PileupJetIdAlgo::dumpVariables | ( | ) | const |
std::string PileupJetIdAlgo::dumpVariables | ( | ) | const |
std::pair<int,int> PileupJetIdAlgo::getJetIdKey | ( | float | jetPt, |
float | jetEta | ||
) |
std::pair< int, int > PileupJetIdAlgo::getJetIdKey | ( | float | jetPt, |
float | jetEta | ||
) |
Definition at line 229 of file PileupJetIdAlgo.cc.
Referenced by computeCutIDflag(), and computeIDflag().
|
inline |
const PileupJetIdentifier::variables_list_t & getVariables() const { return variables_; };
Definition at line 52 of file PileupJetIdAlgo.h.
References variables_.
|
inline |
const PileupJetIdentifier::variables_list_t & getVariables() const { return variables_; };
Definition at line 52 of file PileupJetIdAlgo.h.
References variables_.
|
protected |
Definition at line 566 of file PileupJetIdAlgo.cc.
References beta, PileupJetIdentifier::idFlag_, INIT_VARIABLE, internalId_, reco::btau::jetEta, reco::btau::jetPhi, reco::btau::jetPt, large_val, and reco::tau::helpers::nCharged().
Referenced by setup().
|
protected |
|
inline |
|
inline |
|
protected |
|
protected |
Definition at line 551 of file PileupJetIdAlgo.cc.
References PileupJetIdentifier::idFlag_, internalId_, and variables_.
Referenced by computeIdVariables().
|
protected |
Definition at line 216 of file PileupJetIdAlgo.cc.
References bookReader(), computeCutIDflag(), computeIDflag(), cutBased_, PileupJetIdentifier::idFlag_, internalId_, PileupJetIdentifier::mva_, reader_, and tmvaMethod_.
Referenced by computeIdVariables(), and computeMva().
|
protected |
void PileupJetIdAlgo::set | ( | const PileupJetIdentifier & | ) |
Referenced by betterConfigParser.BetterConfigParser::getGeneral().
void PileupJetIdAlgo::set | ( | const PileupJetIdentifier & | id | ) |
Definition at line 210 of file PileupJetIdAlgo.cc.
References internalId_.
Referenced by betterConfigParser.BetterConfigParser::getGeneral(), and PileupJetIdProducer::produce().
|
protected |
|
protected |
Definition at line 91 of file PileupJetIdAlgo.cc.
References cutBased_, initVariables(), PHILv0, tmvaMethod_, tmvaNames_, tmvaVariables_, USER, and version_.
Referenced by PileupJetIdAlgo().
|
protected |
Definition at line 77 of file PileupJetIdAlgo.h.
Referenced by computeCutIDflag(), and PileupJetIdAlgo().
|
protected |
Definition at line 74 of file PileupJetIdAlgo.h.
Referenced by PileupJetIdAlgo(), runMva(), and setup().
|
protected |
Definition at line 73 of file PileupJetIdAlgo.h.
Referenced by PileupJetIdAlgo().
|
protected |
Definition at line 63 of file PileupJetIdAlgo.h.
Referenced by computeIdVariables(), computeMva(), initVariables(), resetVariables(), runMva(), and set().
|
protected |
Definition at line 75 of file PileupJetIdAlgo.h.
Referenced by computeIDflag(), and PileupJetIdAlgo().
|
protected |
Definition at line 66 of file PileupJetIdAlgo.h.
Referenced by bookReader(), PileupJetIdAlgo(), runMva(), and ~PileupJetIdAlgo().
|
protected |
Definition at line 76 of file PileupJetIdAlgo.h.
Referenced by computeCutIDflag(), and PileupJetIdAlgo().
|
protected |
Definition at line 67 of file PileupJetIdAlgo.h.
Referenced by bookReader(), method(), PileupJetIdAlgo(), runMva(), and setup().
|
protected |
Definition at line 70 of file PileupJetIdAlgo.h.
Referenced by bookReader(), and setup().
|
protected |
Definition at line 69 of file PileupJetIdAlgo.h.
Referenced by bookReader(), and PileupJetIdAlgo().
|
protected |
Definition at line 68 of file PileupJetIdAlgo.h.
Referenced by bookReader(), PileupJetIdAlgo(), and setup().
|
protected |
Definition at line 67 of file PileupJetIdAlgo.h.
Referenced by bookReader(), and PileupJetIdAlgo().
|
protected |
Definition at line 64 of file PileupJetIdAlgo.h.
Referenced by bookReader(), dumpVariables(), getVariables(), and resetVariables().
|
protected |
Definition at line 72 of file PileupJetIdAlgo.h.
Referenced by PileupJetIdAlgo(), and setup().