9#include <tracking/modules/flipQualityModule/FlipQualityModule.h>
10#include <mva/interface/Interface.h>
12#include <boost/algorithm/string/predicate.hpp>
25 setDescription(
"This Module is meant to apply the (index 1 or 2) mva based filter to determine if a recoTracks should be flipped");
29 addParam(
"identifier",
m_identifier,
"The database identifier or filename which is used to load the weights during the training.",
48 B2FATAL(
"no input value extractor!");
60 B2FATAL(
"MVA Expert is not loaded!");
77 recoTrack.setFlipQualityIndicator(probability);
84 if (RecoTrackflipped) {
87 recoTrack.set2ndFlipQualityIndicator(probability);
90 B2DEBUG(20,
"Nothing will be saved into the flipping qi");
std::unique_ptr< MVAExpert > m_mvaExpert
Pointer to the current MVA Expert
std::vector< Named< float * > > m_variableSet
the variable set for the MVA
std::unique_ptr< FlipRecoTrackExtractor > m_recoTrackExtractor
the dataExtractor for the 1st MVA
StoreArray< RecoTrack > m_recoTracks
Store Array of the recoTracks.
std::string m_recoTracksStoreArrayName
the recoTracks StoreArray Name
int m_flipMVAIndex
index of the QI (must be 1 or 2)
std::unique_ptr< FlipRecoTrackExtractor2nd > m_recoTrackExtractor2nd
the dataExtractor for the 2nd MVA
std::string m_identifier
database identifier or filename of the weightfile
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
This is the Reconstruction Event-Data Model Track.
FROM * getRelatedFrom(const std::string &name="", const std::string &namedRelation="") const
Get the object from which this object has a relation.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
FlipQualityModule()
Constructor.
virtual void initialize() override
Initialize the module.
virtual void event() override
Called for each event.
virtual void beginRun() override
Called at the beginning of a new run.
Abstract base class for different kinds of events.