Template for automated variable collection and MVA computation in EDM modules. More...
#include <MVAModuleHelper.h>
Classes | |
class | Value |
Public Member Functions | |
MVAModuleHelper (const MVAModuleHelper &orig) | |
MVAModuleHelper (const std::string &label) | |
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 57 of file MVAModuleHelper.h.
|
inline |
Definition at line 59 of file MVAModuleHelper.h.
|
inline |
Definition at line 60 of file MVAModuleHelper.h.
|
inline |
Definition at line 61 of file MVAModuleHelper.h.
|
private |
Definition at line 118 of file MVAModuleHelper.h.
References PhysicsTools::Calibration::MVAComputerContainer::find(), label, and contentValuesCheck::values.
double PhysicsTools::MVAModuleHelper< Record, Object, Filler >::operator() | ( | const Object & | object | ) | const |
Definition at line 128 of file MVAModuleHelper.h.
References utilities::cache(), update, and contentValuesCheck::values.
void PhysicsTools::MVAModuleHelper< Record, Object, Filler >::setEventSetup | ( | const edm::EventSetup & | setup | ) |
Definition at line 100 of file MVAModuleHelper.h.
References utilities::cache(), get, patZpeak::handle, init, label, and singleTopDQM_cfi::setup.
void PhysicsTools::MVAModuleHelper< Record, Object, Filler >::setEventSetup | ( | const edm::EventSetup & | setup, |
const char * | esLabel | ||
) |
Definition at line 109 of file MVAModuleHelper.h.
References utilities::cache(), get, patZpeak::handle, init, label, and singleTopDQM_cfi::setup.
void PhysicsTools::MVAModuleHelper< Record, Object, Filler >::train | ( | const Object & | object, |
bool | target, | ||
double | weight = 1.0 |
||
) | const |
Definition at line 134 of file MVAModuleHelper.h.
References PhysicsTools::Variable::ValueList::add(), utilities::cache(), filterCSVwithJSON::target, update, and contentValuesCheck::values.
|
private |
Definition at line 74 of file MVAModuleHelper.h.
|
private |
Definition at line 73 of file MVAModuleHelper.h.
Referenced by python.rootplot.root2matplotlib.Hist::bar(), python.rootplot.root2matplotlib.Hist::barh(), python.rootplot.root2matplotlib.Hist::errorbar(), and python.rootplot.root2matplotlib.Hist::errorbarh().
|
private |
Definition at line 96 of file MVAModuleHelper.h.
Referenced by genericValidation.ValidationWithPlotsSummaryBase.SummaryItem::value().