11#include <framework/core/Module.h>
13#include <mva/dataobjects/DatabaseRepresentationOfWeightfile.h>
14#include <mva/interface/Weightfile.h>
15#include <mva/interface/Expert.h>
17#include <framework/database/DBObjPtr.h>
54 virtual void event()
override;
68 std::unique_ptr<DBObjPtr<DatabaseRepresentationOfWeightfile>>
This module can be used as a prototype for your own module which uses MVA weightfiles.
std::unique_ptr< MVA::SingleDataset > m_dataset
Pointer to the current dataset.
virtual void initialize() override
Initialize the module.
virtual void event() override
Called for each event.
std::unique_ptr< MVA::Expert > m_expert
Pointer to the current MVA Expert.
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.
virtual void beginRun() override
Called at the beginning of a new run.
void init_mva(MVA::Weightfile &weightfile)
Initialize mva expert, dataset and features Called every time the weightfile in the database changes ...
MVAPrototypeModule()
Constructor.
std::string m_identifier
database identifier or filename of the weightfile
The Weightfile class serializes all information about a training into an xml tree.
Abstract base class for different kinds of events.