#include <RecoTauMVAHelper.h>
Public Member Functions | |
const PhysicsTools::Variable::ValueList & | discriminants (const PFTauRef &tau) const |
double | operator() (const PFTauRef &tau) const |
RecoTauMVAHelper (const std::string &name, const std::string &eslabel, const edm::ParameterSet &pluginOptions) | |
void | setEvent (const edm::Event &evt, const edm::EventSetup &es) |
void | train (const PFTauRef &tau, bool target, double weight=1.0) const |
~RecoTauMVAHelper () | |
Private Types | |
typedef boost::ptr_map < PhysicsTools::AtomicId, RecoTauDiscriminantPlugin > | PluginMap |
Private Member Functions | |
void | fillValues (const reco::PFTauRef &tau) const |
void | loadDiscriminantPlugins (const PhysicsTools::Calibration::MVAComputer &computer) |
Private Attributes | |
PhysicsTools::MVAComputerCache | computer_ |
std::string | eslabel_ |
std::string | name_ |
edm::ParameterSet | pluginOptions_ |
PluginMap | plugins_ |
PhysicsTools::Variable::ValueList | values_ |
Definition at line 40 of file RecoTauMVAHelper.h.
|
private |
Definition at line 70 of file RecoTauMVAHelper.h.
|
explicit |
Definition at line 16 of file RecoTauMVAHelper.cc.
|
inline |
Definition at line 45 of file RecoTauMVAHelper.h.
const PhysicsTools::Variable::ValueList & reco::tau::RecoTauMVAHelper::discriminants | ( | const PFTauRef & | tau | ) | const |
Definition at line 108 of file RecoTauMVAHelper.cc.
References PhysicsTools::Variable::ValueList::clear(), fillValues(), and values_.
|
private |
Definition at line 80 of file RecoTauMVAHelper.cc.
References PhysicsTools::Variable::ValueList::add(), error, instance, edm::detail::isnan(), pfTaus_cff::plugin, plugins_, metsig::tau, and values_.
Referenced by discriminants(), operator()(), and train().
|
private |
Definition at line 43 of file RecoTauMVAHelper.cc.
References edm::ParameterSet::addParameter(), SurfaceDeformationFactory::create(), reco::tau::discPluginName(), edm::ParameterSet::exists(), reco::get(), edm::ParameterSet::getParameter(), PhysicsTools::Calibration::MVAComputer::inputSet, AlCaHLTBitMon_ParallelJobs::options, pluginOptions_, and plugins_.
Referenced by setEvent().
double reco::tau::RecoTauMVAHelper::operator() | ( | const PFTauRef & | tau | ) | const |
Definition at line 115 of file RecoTauMVAHelper.cc.
References PhysicsTools::Variable::ValueList::clear(), computer_, PhysicsTools::MVAComputer::eval(), fillValues(), and values_.
void reco::tau::RecoTauMVAHelper::setEvent | ( | const edm::Event & | evt, |
const edm::EventSetup & | es | ||
) |
Definition at line 21 of file RecoTauMVAHelper.cc.
References computer_, eslabel_, edm::EventSetup::get(), PhysicsTools::MVAComputerCache::get(), patZpeak::handle, loadDiscriminantPlugins(), name_, pfTaus_cff::plugin, plugins_, edm::ESHandle< class >::product(), and PhysicsTools::MVAComputerCache::update().
Referenced by RecoTauMVATrainer::analyze().
void reco::tau::RecoTauMVAHelper::train | ( | const PFTauRef & | tau, |
bool | target, | ||
double | weight = 1.0 |
||
) | const |
Definition at line 124 of file RecoTauMVAHelper.cc.
References PhysicsTools::Variable::ValueList::add(), PhysicsTools::Variable::ValueList::clear(), computer_, PhysicsTools::MVAComputer::eval(), fillValues(), and values_.
|
private |
Definition at line 67 of file RecoTauMVAHelper.h.
Referenced by operator()(), setEvent(), and train().
|
private |
Definition at line 63 of file RecoTauMVAHelper.h.
Referenced by setEvent().
|
private |
Definition at line 61 of file RecoTauMVAHelper.h.
Referenced by setEvent().
|
private |
Definition at line 65 of file RecoTauMVAHelper.h.
Referenced by loadDiscriminantPlugins().
|
private |
Definition at line 71 of file RecoTauMVAHelper.h.
Referenced by fillValues(), loadDiscriminantPlugins(), and setEvent().
|
mutableprivate |
Definition at line 77 of file RecoTauMVAHelper.h.
Referenced by discriminants(), fillValues(), operator()(), and train().