9#include <tracking/modules/flipAndRefit/FlipQualityModule.h>
10#include <mva/interface/Interface.h>
11#include <tracking/dataobjects/RecoTrack.h>
16using namespace TrackingUtilities;
23 setDescription(
"This Module is meant to apply the (index 1 or 2) mva based filter to determine if a recoTracks should be flipped");
27 addParam(
"identifier",
m_identifier,
"The database identifier or filename which is used to load the weights during the training.",
46 B2FATAL(
"no input value extractor!");
58 B2FATAL(
"MVA Expert is not loaded!");
75 recoTrack.setFlipQualityIndicator(probability);
82 if (RecoTrackflipped) {
85 recoTrack.set2ndFlipQualityIndicator(probability);
88 B2DEBUG(20,
"Nothing will be saved into the flipping qi");
FlipQualityModule()
Constructor.
virtual void initialize() override
Initialize the module.
virtual void event() override
Called for each event.
std::unique_ptr< TrackingUtilities::MVAExpert > m_mvaExpert
Pointer to the current MVA Expert.
std::vector< TrackingUtilities::Named< float * > > m_variableSet
the variable set for the MVA
virtual void beginRun() override
Called at the beginning of a new run.
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.
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.
Abstract base class for different kinds of events.