◆ PATTauDiscriminationByMVAIsolationRun2()
reco::tau::PATTauDiscriminationByMVAIsolationRun2::PATTauDiscriminationByMVAIsolationRun2 |
( |
const edm::ParameterSet & |
cfg | ) |
|
|
inlineexplicit |
Definition at line 74 of file PATTauDiscriminationByMVAIsolationRun2.cc.
References cms::cuda::assert(), looper::cfg, deDxTools::esConsumes(), Exception, reco::tau::kDBnewDMwLT, reco::tau::kDBnewDMwLTwGJ, reco::tau::kDBnewDMwLTwGJPhase2, reco::tau::kDBoldDMwLT, reco::tau::kDBoldDMwLTwGJ, reco::tau::kNewDMwLT, reco::tau::kNewDMwoLT, reco::tau::kOldDMwLT, reco::tau::kOldDMwoLT, reco::tau::kPWnewDMwLT, reco::tau::kPWoldDMwLT, and AlCaHLTBitMon_QueryRunRegistry::string.
87 if (mvaOpt_string ==
"oldDMwoLT")
89 else if (mvaOpt_string ==
"oldDMwLT")
91 else if (mvaOpt_string ==
"newDMwoLT")
93 else if (mvaOpt_string ==
"newDMwLT")
95 else if (mvaOpt_string ==
"DBoldDMwLT")
97 else if (mvaOpt_string ==
"DBnewDMwLT")
99 else if (mvaOpt_string ==
"PWoldDMwLT")
101 else if (mvaOpt_string ==
"PWnewDMwLT")
103 else if (mvaOpt_string ==
"DBoldDMwLTwGJ")
105 else if (mvaOpt_string ==
"DBnewDMwLTwGJ")
107 else if (mvaOpt_string ==
"DBnewDMwLTwGJPhase2")
111 <<
" Invalid Configuration Parameter 'mvaOpt' = " << mvaOpt_string <<
" !!\n";
std::string footprintCorrection_
const GBRForest * mvaReader_
std::string photonPtSumOutsideSignalCone_
edm::ESGetToken< GBRForest, GBRWrapperRcd > mvaToken_
std::string chargedIsoPtSums_
std::string neutralIsoPtSums_
std::string puCorrPtSums_
edm::FileInPath inputFileName_
TauDiscriminationProducerBase< pat::Tau, reco::TauDiscriminatorContainer, reco::SingleTauDiscriminatorContainer, pat::PATTauDiscriminator > PATTauDiscriminationContainerProducerBase
◆ ~PATTauDiscriminationByMVAIsolationRun2()
reco::tau::PATTauDiscriminationByMVAIsolationRun2::~PATTauDiscriminationByMVAIsolationRun2 |
( |
| ) |
|
|
inlineoverride |
◆ beginEvent()
◆ discriminate()
Implements TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >.
Definition at line 184 of file PATTauDiscriminationByMVAIsolationRun2.cc.
References reco::tau::fillIsoMVARun2Inputs(), mps_fire::result, and metsig::tau.
190 if (
tau->leadChargedHadrCand().isNull()) {
191 result.rawValues.at(0) = 0.;
205 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
"<PATTauDiscriminationByMVAIsolationRun2::discriminate>:";
206 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" tau: Pt = " <<
tau->pt() <<
", eta = " <<
tau->eta();
210 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" decay mode = " <<
tau->decayMode();
212 <<
" impact parameter: distance = " <<
tau->dxy() <<
", significance = " <<
tau->dxy_Sig();
213 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" has decay vertex = " <<
tau->hasSecondaryVertex() <<
":" 214 <<
", significance = " <<
tau->flightLengthSig();
215 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
"--> mvaValue = " << mvaValue;
217 result.rawValues.at(0) = mvaValue;
std::string footprintCorrection_
const GBRForest * mvaReader_
bool fillIsoMVARun2Inputs(float *mvaInput, const pat::Tau &tau, int mvaOpt, const std::string &nameCharged, const std::string &nameNeutral, const std::string &namePu, const std::string &nameOutside, const std::string &nameFootprint)
std::string photonPtSumOutsideSignalCone_
std::string chargedIsoPtSums_
Log< level::Warning, true > LogPrint
double GetClassifier(const float *vector) const
std::string neutralIsoPtSums_
std::string puCorrPtSums_
◆ fillDescriptions()
◆ chargedIsoPtSums_
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::chargedIsoPtSums_ |
|
private |
◆ footprintCorrection_
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::footprintCorrection_ |
|
private |
◆ inputFileName_
edm::FileInPath reco::tau::PATTauDiscriminationByMVAIsolationRun2::inputFileName_ |
|
private |
◆ inputFilesToDelete_
std::vector<TFile*> reco::tau::PATTauDiscriminationByMVAIsolationRun2::inputFilesToDelete_ |
|
private |
◆ loadMVAfromDB_
bool reco::tau::PATTauDiscriminationByMVAIsolationRun2::loadMVAfromDB_ |
|
private |
◆ moduleLabel_
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::moduleLabel_ |
|
private |
◆ mvaInput_
float* reco::tau::PATTauDiscriminationByMVAIsolationRun2::mvaInput_ |
|
private |
◆ mvaName_
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::mvaName_ |
|
private |
◆ mvaOpt_
int reco::tau::PATTauDiscriminationByMVAIsolationRun2::mvaOpt_ |
|
private |
◆ mvaReader_
const GBRForest* reco::tau::PATTauDiscriminationByMVAIsolationRun2::mvaReader_ |
|
private |
◆ mvaToken_
◆ neutralIsoPtSums_
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::neutralIsoPtSums_ |
|
private |
◆ photonPtSumOutsideSignalCone_
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::photonPtSumOutsideSignalCone_ |
|
private |
◆ puCorrPtSums_
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::puCorrPtSums_ |
|
private |
◆ taus_
◆ verbosity_
int reco::tau::PATTauDiscriminationByMVAIsolationRun2::verbosity_ |
|
private |