 |
Belle II Software
release-05-02-19
|
14 #include <framework/core/Module.h>
15 #include <framework/dataobjects/EventMetaData.h>
16 #include <framework/database/DBObjPtr.h>
19 #include <mva/interface/Expert.h>
20 #include <mva/interface/Dataset.h>
23 #include <analysis/dataobjects/ParticleList.h>
24 #include <analysis/VariableManager/Manager.h>
25 #include <analysis/dbobjects/ChargedPidMVAWeights.h>
44 class ChargedPidMVAMulticlassModule :
public Module {
46 typedef std::vector<std::unique_ptr<MVA::Expert> >
ExpertsList;
47 typedef std::vector<std::unique_ptr<MVA::SingleDataset> >
DatasetsList;
48 typedef std::vector< std::vector<const Variable::Manager::Var*> >
VariablesLists;
82 virtual void event()
override;
103 auto signedName = fullName.substr(0, fullName.find(delimiter));
104 signedName.pop_back();
virtual void beginRun() override
Called once before a new run begins.
DatasetsList m_datasets
List of MVA::SingleDataset objects.
ParticleList is a container class that stores a collection of Particle objects.
VariablesLists m_variables
List of lists of feature variables.
std::vector< std::vector< const Variable::Manager::Var * > > VariablesLists
Typedef.
VariablesLists m_spectators
List of lists of spectator variables.
ExpertsList m_experts
List of MVA::Expert objects.
virtual ~ChargedPidMVAMulticlassModule()
Destructor, use this to clean up anything you created in the constructor.
std::string m_payload_name
The name of the database payload object with the MVA weights.
virtual void event() override
Called once for each event.
ChargedPidMVAMulticlassModule()
Constructor, for setting module description and parameters.
const std::string getParticleName(const ParticleList *pList) const
Split the particle list name in "particleName", "particleLabel", and return the particle name w/o the...
virtual void initialize() override
Use this to initialize resources or memory your module needs.
Abstract base class for different kinds of events.
std::vector< std::unique_ptr< MVA::Expert > > ExpertsList
Typedef.
Type-safe access to single objects in the data store.
std::vector< std::string > m_particle_lists
The input list of ParticleList names.
std::vector< std::string > m_classes
List of MVA class names.
StoreObjPtr< EventMetaData > m_event_metadata
The event information.
std::unique_ptr< DBObjPtr< ChargedPidMVAWeights > > m_weightfiles_representation
Interface to get the database payload with the MVA weight files.
bool m_ecl_only
Flag to specify if we use an ECL-only based training.
std::vector< std::unique_ptr< MVA::SingleDataset > > DatasetsList
Typedef.
std::string getParticleListName() const
Returns the name this ParticleList.