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 63 of file MVAModuleHelper.h.
|
inline |
Definition at line 65 of file MVAModuleHelper.h.
|
inline |
Definition at line 66 of file MVAModuleHelper.h.
|
inline |
Definition at line 67 of file MVAModuleHelper.h.
|
private |
Definition at line 131 of file MVAModuleHelper.h.
References PhysicsTools::Calibration::MVAComputerContainer::find(), diffTwoXMLs::label, and makeHLTPrescaleTable::values.
double PhysicsTools::MVAModuleHelper< Record, Object, Filler >::operator() | ( | const Object & | object | ) | const |
Definition at line 144 of file MVAModuleHelper.h.
References update, and makeHLTPrescaleTable::values.
void PhysicsTools::MVAModuleHelper< Record, Object, Filler >::setEventSetup | ( | const edm::EventSetup & | setup | ) |
Definition at line 109 of file MVAModuleHelper.h.
References edm::EventSetup::get(), patZpeak::handle, init, diffTwoXMLs::label, and edm::ESHandle< class >::product().
void PhysicsTools::MVAModuleHelper< Record, Object, Filler >::setEventSetup | ( | const edm::EventSetup & | setup, |
const char * | esLabel | ||
) |
Definition at line 120 of file MVAModuleHelper.h.
References edm::EventSetup::get(), patZpeak::handle, init, diffTwoXMLs::label, and edm::ESHandle< class >::product().
void PhysicsTools::MVAModuleHelper< Record, Object, Filler >::train | ( | const Object & | object, |
bool | target, | ||
double | weight = 1.0 |
||
) | const |
Definition at line 153 of file MVAModuleHelper.h.
References PhysicsTools::Variable::ValueList::add(), list(), update, and makeHLTPrescaleTable::values.
|
private |
Definition at line 80 of file MVAModuleHelper.h.
|
private |
Definition at line 79 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 105 of file MVAModuleHelper.h.
Referenced by python.seqvaluedict.seqdict::items().