10 #include <tracking/trackFindingCDC/filters/base/FilterOnVarSet.dcl.h>
11 #include <tracking/trackFindingCDC/filters/base/Filter.fwd.h>
13 #include <tracking/trackFindingCDC/varsets/BaseVarSet.h>
15 #include <tracking/trackFindingCDC/numerics/Weight.h>
26 class ModuleParamList;
28 namespace TrackFindingCDC {
32 template<
class AFilter>
41 using Object =
typename AFilter::Object;
49 explicit MVA(std::unique_ptr<AVarSet> varSet,
50 const std::string& identifier =
"",
51 double defaultCut = NAN);
84 template<
class AVarSet>
96 explicit MVAFilter(
const std::string& defaultTrainingName =
"",
97 double defaultCut = NAN);
The Module parameter list class.
Generic class that generates some named float values from a given object.
AObject Object
Object type from which variables shall be extracted.
AObject Object
Type of the object to be analysed.
Convience template to create a mva filter for a set of variables.
MVAFilter(const std::string &defaultTrainingName="", double defaultCut=NAN)
Constructor of the filter.
~MVAFilter()
Default destructor.
Filter based on a mva method.
virtual ~MVA()
Default destructor.
void initialize() override
Initialize the expert before event processing.
std::string m_param_identifier
Database identifier of the expert or weight file name.
Weight operator()(const Object &obj) override
Function to object for its signalness.
std::unique_ptr< MVAExpert > m_mvaExpert
MVA Expert to examine the object.
void beginRun() override
Signal to load new run parameters.
MVA(std::unique_ptr< AVarSet > varSet, const std::string &identifier="", double defaultCut=NAN)
Constructor of the filter.
virtual double predict(const Object &obj)
Evaluate the mva method.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
double m_param_cut
The cut on the MVA output.
Filter adapter to make a filter work on a set of variables.
AFilter Super
Type of the base class.
typename AFilter::Object Object
Type of pbject to be filtered.
Abstract base class for different kinds of events.