12#include <analysis/dataobjects/ParticleList.h>
15#include <framework/core/Module.h>
16#include <framework/database/DBObjPtr.h>
17#include <mva/dataobjects/DatabaseRepresentationOfWeightfile.h>
18#include <mva/interface/Expert.h>
19#include <mva/interface/Weightfile.h>
63 void event()
override;
Calculation of low-energy pi0 veto value.
~LowEnergyPi0VetoExpertModule()
Destructor.
std::unique_ptr< MVA::SingleDataset > m_dataset
Pointer to the current dataset.
StoreObjPtr< ParticleList > m_ListGamma
Gamma candidates.
bool m_Belle1
Belle 1 data analysis.
void initialize() override
Initializer.
void event() override
This method is called for each event.
void endRun() override
This method is called if the current run ends.
void terminate() override
This method is called at the end of the event processing.
std::unique_ptr< MVA::Expert > m_expert
Pointer to the current MVA expert.
LowEnergyPi0VetoExpertModule()
Constructor.
std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile > > m_weightfile_representation
Database pointer to the database representation of the weightfile.
void beginRun() override
Called when entering a new run.
bool m_VetoPi0Daughters
Calculate veto for pi0 daughter photons (maximum over all pairs excluding this pi0).
StoreObjPtr< ParticleList > m_ListPi0
Pi0 candidates.
void init_mva(MVA::Weightfile &weightfile)
Initialize mva expert, dataset and features Called every time the weightfile in the database changes ...
std::string m_GammaListName
Gamma particle list name.
std::string m_Pi0ListName
Pi0 particle list name.
float getMaximumVeto(const Particle *gamma1, const Particle *pi0Gamma)
Get maximum veto value over all gamma pairs including the photon gamma1.
std::string m_identifier
Database identifier or file used to load the weights.
The Weightfile class serializes all information about a training into an xml tree.
Class to store reconstructed particles.
Type-safe access to single objects in the data store.
Abstract base class for different kinds of events.