Template for automated variable collection and MVA computation in EDM modules. More...
#include <MVAModuleHelper.h>
Classes | |
class | Value |
Public Member Functions | |
MVAModuleHelper (const std::string &label) | |
MVAModuleHelper (const MVAModuleHelper &orig) | |
double | operator() (const Object &object) const |
void | setEventSetup (const edm::EventSetup &setup) |
void | setEventSetup (const edm::EventSetup &setup, const char *esLabel) |
void | train (const Object &object, bool target, double weight=1.0) const |
~MVAModuleHelper () | |
Private Member Functions | |
void | init (const PhysicsTools::Calibration::MVAComputerContainer *container) |
Private Attributes | |
PhysicsTools::MVAComputerCache | cache |
const std::string | label |
std::vector< Value > | values |
Template for automated variable collection and MVA computation in EDM modules.
The class MVAModuleHelper can be embedded in EDM modules. It automatically collects the variables listed in the MVA training description using type traits and passes them on to the computer. The calibration and or trainer is automatically collected from the EventSetup.
Definition at line 62 of file MVAModuleHelper.h.
|
inline |
Definition at line 64 of file MVAModuleHelper.h.
|
inline |
Definition at line 65 of file MVAModuleHelper.h.
|
inline |
Definition at line 66 of file MVAModuleHelper.h.
References StGenEvtProducer_cfi::init, PhysicsTools::MVAModuleHelperDefaultFiller< Object >::operator()(), GeneralSetup::setup(), and edmPickEvents::target.
|
private |
Definition at line 130 of file MVAModuleHelper.h.
References PhysicsTools::Calibration::MVAComputerContainer::find(), PhysicsTools::Calibration::MVAComputer::inputSet, diffTwoXMLs::label, and MuonErrorMatrixValues_cff::values.
double PhysicsTools::MVAModuleHelper< Record, Object, Filler >::operator() | ( | const Object & | object | ) | const |
Definition at line 143 of file MVAModuleHelper.h.
References helperFunctions::cache(), update, and MuonErrorMatrixValues_cff::values.
void PhysicsTools::MVAModuleHelper< Record, Object, Filler >::setEventSetup | ( | const edm::EventSetup & | setup | ) |
Definition at line 108 of file MVAModuleHelper.h.
References helperFunctions::cache(), edm::EventSetup::get(), cmsBatch::handle, StGenEvtProducer_cfi::init, diffTwoXMLs::label, and edm::ESHandle< T >::product().
void PhysicsTools::MVAModuleHelper< Record, Object, Filler >::setEventSetup | ( | const edm::EventSetup & | setup, |
const char * | esLabel | ||
) |
Definition at line 119 of file MVAModuleHelper.h.
References helperFunctions::cache(), edm::EventSetup::get(), cmsBatch::handle, StGenEvtProducer_cfi::init, diffTwoXMLs::label, and edm::ESHandle< T >::product().
void PhysicsTools::MVAModuleHelper< Record, Object, Filler >::train | ( | const Object & | object, |
bool | target, | ||
double | weight = 1.0 |
||
) | const |
Definition at line 152 of file MVAModuleHelper.h.
References PhysicsTools::Variable::ValueList::add(), helperFunctions::cache(), list(), update, and MuonErrorMatrixValues_cff::values.
|
private |
Definition at line 79 of file MVAModuleHelper.h.
|
private |
Definition at line 78 of file MVAModuleHelper.h.
Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::_sort_list(), python.rootplot.root2matplotlib.Hist::bar(), python.rootplot.root2matplotlib.Hist::barh(), python.rootplot.root2matplotlib.Hist::errorbar(), python.rootplot.root2matplotlib.Hist::errorbarh(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::foundIn(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::fullFilename(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor::properties(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::readConnections(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor::updateProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::usedBy().
|
private |
Definition at line 104 of file MVAModuleHelper.h.
Referenced by genericValidation.ValidationWithPlotsSummaryBase.SummaryItem::value().