reco::tau::PATTauDiscriminationByMVAIsolationRun2::PATTauDiscriminationByMVAIsolationRun2 |
( |
const edm::ParameterSet & |
cfg | ) |
|
|
inlineexplicit |
Definition at line 80 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_ ) {
103 else throw cms::Exception(
"PATTauDiscriminationByMVAIsolationRun2")
104 <<
" Invalid Configuration Parameter 'mvaOpt' = " << mvaOpt_string <<
" !!\n";
121 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 180 of file PATTauDiscriminationByMVAIsolationRun2.cc.
References taus_updatedMVAIds_cff::category, reco::tau::fillIsoMVARun2Inputs(), and edm::Ref< C, T, F >::isNull().
187 if ( tau->leadChargedHadrCand().
isNull() )
return 0.;
192 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
"<PATTauDiscriminationByMVAIsolationRun2::discriminate>:";
193 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" tau: Pt = " << tau->pt() <<
", eta = " << tau->eta();
195 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" decay mode = " << tau->decayMode();
196 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" impact parameter: distance = " << tau->dxy() <<
", significance = " << tau->dxy_Sig();
197 edm::LogPrint(
"PATTauDiscByMVAIsolRun2") <<
" has decay vertex = " << tau->hasSecondaryVertex() <<
":" 198 <<
", significance = " << tau->flightLengthSig();
199 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 |