 |
Belle II Software
release-05-01-25
|
12 #include <tracking/trackFindingCDC/filters/base/FilterOnVarSet.dcl.h>
13 #include <tracking/trackFindingCDC/filters/base/Filter.fwd.h>
15 #include <tracking/trackFindingCDC/varsets/BaseVarSet.h>
17 #include <tracking/trackFindingCDC/numerics/Weight.h>
28 class ModuleParamList;
30 namespace TrackFindingCDC {
34 template<
class AFilter>
35 class MVA :
public OnVarSet<AFilter> {
39 using Super = OnVarSet<AFilter>;
43 using Object =
typename AFilter::Object;
51 explicit MVA(std::unique_ptr<AVarSet> varSet,
52 const std::string& identifier =
"",
53 double defaultCut = NAN);
86 template<
class AVarSet>
98 explicit MVAFilter(
const std::string& defaultTrainingName =
"",
99 double defaultCut = NAN);
Weight operator()(const Object &obj) override
Function to object for its signalness.
Convience template to create a mva filter for a set of variables.
virtual ~MVA()
Default destructor.
std::unique_ptr< MVAExpert > m_mvaExpert
MVA Expert to examine the object.
typename AFilter::Object Object
Type of pbject to be filtered.
OnVarSet< AFilter > Super
Type of the super class.
void initialize() override
Initialize the expert before event processing.
Interface for an algorithm part that needs to receive the module processing signals.
Abstract base class for different kinds of events.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
MVAFilter(const std::string &defaultTrainingName="", double defaultCut=NAN)
Constructor of the filter.
Filter based on a mva method.
MVA(std::unique_ptr< AVarSet > varSet, const std::string &identifier="", double defaultCut=NAN)
Constructor of the filter.
~MVAFilter()
Default destructor.
virtual double predict(const Object &obj)
Evaluate the mva method.
double m_param_cut
The cut on the MVA output.
void beginRun() override
Signal to load new run parameters.
The Module parameter list class.
typename AVarSet::Object Object
Type of the object to be analysed.
Object Object
Object type from which variables shall be extracted.
AVarSet::Object Object
Type of the object to be analysed.
std::string m_param_identifier
Database identifier of the expert or weight file name.