 |
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>
20 #include <analysis/VariableManager/Manager.h>
62 virtual void event()
override;
95 std::unique_ptr<DBObjPtr<DatabaseRepresentationOfWeightfile>>
This module adds an ExtraInfo to the Particle objects in a given ParticleList.
std::string m_identifier
weight-file
std::string m_extraInfoName
Name under which the SignalProbability is stored in the extraInfo of the Particle object.
The Weightfile class serializes all information about a training into an xml tree.
std::unique_ptr< MVA::Expert > m_expert
Pointer to the current MVA Expert.
MVAExpertModule()
Constructor.
std::vector< std::string > m_listNames
input particle list names
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...
std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile > > m_weightfile_representation
Database pointer to the Database representation of the weightfile.
Abstract base class for different kinds of events.
virtual void terminate() override
Called at the end of the event processing.
Class to store reconstructed particles.
double m_signal_fraction_override
Signal Fraction which should be used.
float analyse(Particle *)
Calculates expert output for given Particle pointer.
std::unique_ptr< MVA::SingleDataset > m_dataset
Pointer to the current dataset.
virtual void beginRun() override
Called at the beginning of a new run.
virtual void event() override
Called for each event.
std::vector< const Variable::Manager::Var * > m_feature_variables
Pointers to the feature variables.