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>
17 #include <framework/database/DBObjPtr.h>
18 #include <tracking/dbobjects/TrackingMVAFilterParameters.h>
29 class ModuleParamList;
31 namespace TrackFindingCDC {
35 template<
class AFilter>
44 using Object =
typename AFilter::Object;
52 explicit MVA(std::unique_ptr<AVarSet> varSet,
53 const std::string& identifier =
"",
54 double defaultCut = NAN,
55 const std::string& dbObjectName =
"");
91 template<
class AVarSet>
103 explicit MVAFilter(
const std::string& defaultTrainingName =
"",
104 double defaultCut = NAN,
105 const std::string& defaultDBObjectName =
"");
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()
Default destructor.
MVAFilter(const std::string &defaultTrainingName="", double defaultCut=NAN, const std::string &defaultDBObjectName="")
Constructor of the filter.
Filter based on a mva method.
virtual ~MVA()
Default destructor.
void initialize() override
Initialize the expert before event processing.
Weight operator()(const Object &obj) override
Function to object for its signalness.
std::unique_ptr< MVAExpert > m_mvaExpert
MVA Expert to examine the object.
std::string m_DBPayloadName
Name of the DB payload.
void beginRun() override
Signal to load new run parameters.
MVA(std::unique_ptr< AVarSet > varSet, const std::string &identifier="", double defaultCut=NAN, const std::string &dbObjectName="")
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_cutValue
The cut on the MVA output.
std::string m_identifier
Database identifier of the expert or weight file name.
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.