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 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.
|
private |
Definition at line 130 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 143 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 108 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 119 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 152 of file MVAModuleHelper.h.
References utilities::cache(), list(), filterCSVwithJSON::target, update, and contentValuesCheck::values.
|
private |
Definition at line 79 of file MVAModuleHelper.h.
|
private |
Definition at line 78 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 104 of file MVAModuleHelper.h.
Referenced by genericValidation.ValidationWithPlotsSummaryBase.SummaryItem::value().