9#include <tracking/modules/trackQualityEstimator/TrackQualityEstimatorMVAModule.h>
19 setDescription(
"The quality estimator module for a fully reconstructed track");
24 "Name of the recoTrack StoreArray.",
27 addParam(
"SVDCDCRecoTracksStoreArrayName",
29 "Name of the SVD-CDC StoreArray.",
32 addParam(
"CDCRecoTracksStoreArrayName",
34 "Name of the CDC StoreArray.",
37 addParam(
"SVDRecoTracksStoreArrayName",
39 "Name of the SVD StoreArray.",
42 addParam(
"PXDRecoTracksStoreArrayName",
44 "Name of the PXD StoreArray.",
49 "Name of the fitted mdst Tracks StoreArray.",
54 "Identifier of weightfile in Database or local root/xml file.",
59 "Whether to use eventwise features.",
91 if (svdcdcRecoTrack) {
103 const float qualityIndicator =
m_mvaExpert->predict();
105 recoTrack.setQualityIndicator(qualityIndicator);
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.
TO * getRelatedTo(const std::string &name="", const std::string &namedRelation="") const
Get the object to which this object has a relation.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
std::unique_ptr< HitInfoExtractor > m_hitInfoExtractor
pointer to object that extracts info from the hits within the RecoTrack
std::unique_ptr< EventInfoExtractor > m_eventInfoExtractor
pointer to object that extracts info from the whole event
void initialize() override
Initializes the Module.
void event() override
Applies the selected quality estimation method for a given set of TCs.
std::string m_svdRecoTracksStoreArrayName
Name of the SVD StoreArray.
std::string m_tracksStoreArrayName
Name of the StoreArray with mdst Tracks from track fit.
std::string m_svdcdcRecoTracksStoreArrayName
Name of the SVD-CDC StoreArray.
bool m_collectEventFeatures
Parameter to enable event-wise features.
std::string m_pxdRecoTracksStoreArrayName
Name of the PXD StoreArray.
std::unique_ptr< MVAExpert > m_mvaExpert
pointer to the object to interact with the MVA package
TrackQualityEstimatorMVAModule()
Constructor of the module.
std::string m_weightFileIdentifier
identifier of weightfile in Database or local root/xml file
void beginRun() override
Launches mvaExpert and sets the magnetic field strength.
std::vector< Named< float * > > m_variableSet
set of named variables to be used in MVA
std::string m_cdcRecoTracksStoreArrayName
Name of the CDC StoreArray.
StoreArray< RecoTrack > m_recoTracks
Store Array of the recoTracks.
std::unique_ptr< RecoTrackExtractor > m_recoTrackExtractor
pointer to object that extracts info from the root RecoTrack
std::string m_recoTracksStoreArrayName
Name of the recoTrack StoreArray.
std::unique_ptr< SubRecoTrackExtractor > m_subRecoTrackExtractor
pointer to object that extracts info from the related sub RecoTracks
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.