reco::tau::PATTauDiscriminationByMVAIsolationRun2::PATTauDiscriminationByMVAIsolationRun2 |
( |
const edm::ParameterSet & |
cfg | ) |
|
|
inlineexplicit |
Definition at line 81 of file PATTauDiscriminationByMVAIsolationRun2.cc.
References Exception, edm::ParameterSet::getParameter(), reco::tau::kDBnewDMwLT, reco::tau::kDBnewDMwLTwGJ, 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.
89 if (!loadMVAfromDB_) {
93 if (mvaOpt_string ==
"oldDMwoLT")
95 else if (mvaOpt_string ==
"oldDMwLT")
97 else if (mvaOpt_string ==
"newDMwoLT")
99 else if (mvaOpt_string ==
"newDMwLT")
101 else if (mvaOpt_string ==
"DBoldDMwLT")
103 else if (mvaOpt_string ==
"DBnewDMwLT")
105 else if (mvaOpt_string ==
"PWoldDMwLT")
107 else if (mvaOpt_string ==
"PWnewDMwLT")
109 else if (mvaOpt_string ==
"DBoldDMwLTwGJ")
111 else if (mvaOpt_string ==
"DBnewDMwLTwGJ")
115 <<
" Invalid Configuration Parameter 'mvaOpt' = " << mvaOpt_string <<
" !!\n";
135 produces<pat::PATTauDiscriminator>(
"category");
std::string footprintCorrection_
T getParameter(std::string const &) const
std::unique_ptr< pat::PATTauDiscriminator > category_output_
const GBRForest * mvaReader_
std::string photonPtSumOutsideSignalCone_
std::string chargedIsoPtSums_
TauDiscriminationProducerBase< pat::Tau, pat::PATTauDiscriminator > PATTauDiscriminationProducerBase
std::string neutralIsoPtSums_
std::string puCorrPtSums_
edm::FileInPath inputFileName_
reco::tau::PATTauDiscriminationByMVAIsolationRun2::~PATTauDiscriminationByMVAIsolationRun2 |
( |
| ) |
|
|
inlineoverride |
double reco::tau::PATTauDiscriminationByMVAIsolationRun2::discriminate |
( |
const TauRef & |
tau | ) |
const |
|
overridevirtual |
Implements TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 191 of file PATTauDiscriminationByMVAIsolationRun2.cc.
References taus_updatedMVAIds_cff::category, reco::tau::fillIsoMVARun2Inputs(), and edm::Ref< C, T, F >::isNull().
197 if (tau->leadChargedHadrCand().
isNull())
210 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
"<PATTauDiscriminationByMVAIsolationRun2::discriminate>:";
211 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" tau: Pt = " << tau->pt() <<
", eta = " << tau->eta();
215 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" decay mode = " << tau->decayMode();
217 <<
" impact parameter: distance = " << tau->dxy() <<
", significance = " << tau->dxy_Sig();
218 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" has decay vertex = " << tau->hasSecondaryVertex() <<
":" 219 <<
", significance = " << tau->flightLengthSig();
220 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
"--> mvaValue = " << mvaValue;
std::string footprintCorrection_
std::unique_ptr< pat::PATTauDiscriminator > category_output_
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_
bool isNull() const
Checks for null.
std::string neutralIsoPtSums_
std::string puCorrPtSums_
double GetClassifier(const float *vector) const
void reco::tau::PATTauDiscriminationByMVAIsolationRun2::endEvent |
( |
edm::Event & |
evt | ) |
|
|
overridevirtual |
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::chargedIsoPtSums_ |
|
private |
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::footprintCorrection_ |
|
private |
edm::FileInPath reco::tau::PATTauDiscriminationByMVAIsolationRun2::inputFileName_ |
|
private |
std::vector<TFile*> reco::tau::PATTauDiscriminationByMVAIsolationRun2::inputFilesToDelete_ |
|
private |
bool reco::tau::PATTauDiscriminationByMVAIsolationRun2::loadMVAfromDB_ |
|
private |
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::moduleLabel_ |
|
private |
float* reco::tau::PATTauDiscriminationByMVAIsolationRun2::mvaInput_ |
|
private |
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::mvaName_ |
|
private |
int reco::tau::PATTauDiscriminationByMVAIsolationRun2::mvaOpt_ |
|
private |
const GBRForest* reco::tau::PATTauDiscriminationByMVAIsolationRun2::mvaReader_ |
|
private |
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::neutralIsoPtSums_ |
|
private |
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::photonPtSumOutsideSignalCone_ |
|
private |
std::string reco::tau::PATTauDiscriminationByMVAIsolationRun2::puCorrPtSums_ |
|
private |
int reco::tau::PATTauDiscriminationByMVAIsolationRun2::verbosity_ |
|
private |