 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/Module.h>
14 #include <mva/dataobjects/DatabaseRepresentationOfWeightfile.h>
15 #include <mva/interface/Weightfile.h>
16 #include <mva/interface/Expert.h>
18 #include <framework/database/DBObjPtr.h>
58 virtual void event()
override;
72 std::unique_ptr<DBObjPtr<DatabaseRepresentationOfWeightfile>>
std::unique_ptr< MVA::Expert > m_expert
Pointer to the current MVA Expert.
The Weightfile class serializes all information about a training into an xml tree.
This module can be used as a prototype for your own module which uses MVA weightfiles.
virtual void initialize() override
Initialize the module.
void init_mva(MVA::Weightfile &weightfile)
Initialize mva expert, dataset and features Called everytime the weightfile in the database changes i...
Abstract base class for different kinds of events.
double m_signal_fraction_override
Signal Fraction which should be used.
std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile > > m_weightfile_representation
Database pointer to the Database representation of the weightfile.
std::string m_identifier
database identifier or filename of the weightfile
virtual void beginRun() override
Called at the beginning of a new run.
virtual void event() override
Called for each event.
MVAPrototypeModule()
Constructor.
std::unique_ptr< MVA::SingleDataset > m_dataset
Pointer to the current dataset.