11#include <tracking/trackFindingVXD/trackQualityEstimators/QualityEstimatorBase.h>
12#include <framework/datastore/StoreArray.h>
13#include <tracking/dataobjects/RecoTrack.h>
14#include <tracking/spacePointCreation/SpacePoint.h>
27 typedef std::pair<MCRecoTrackIndex, NMatches>
MatchInfo;
36 bool strictQualityIndicator =
true,
bool mva_target =
false):
47 virtual double estimateQuality(std::vector<SpacePoint const*>
const& measurements)
final;
56 void setClustersNames(
const std::string& svdClustersName,
const std::string& pxdClustersName)
BaseClass for QualityEstimators.
Class implementing the algorithm used for the MC based quality estimation.
unsigned int NMatches
typedef for counter of number of matches
int MCRecoTrackIndex
typedef for MCRecoTrackIndex
std::string m_svdClustersName
SVD clusters StoreArray name.
bool m_clusterNamesNeedSetting
if true cluster names need to be set, either by calling setClustersNames or read from MCRecoTracks at...
bool m_strictQualityIndicator
If true only SPTCs containing SVDClusters corresponding to a single MCRecoTrack get a QI !...
MatchInfo m_match
stores the current match for optional return values
StoreArray< RecoTrack > m_mcRecoTracks
the storeArray for RecoTracks as member
std::pair< MCRecoTrackIndex, NMatches > MatchInfo
typedef for MatchInfo
double calculateQualityIndicator(unsigned int nClusters, MatchInfo &match)
Calculate MC qualityIndicator based on MatchInfo of best matched MCRecoTrack.
bool m_mva_target
If true the SPTCs containing all the SVDCluster of the corresponding MCRecoTrack and no other SVDClus...
std::string m_pxdClustersName
PXD clusters StoreArray name.
void forceUpdateClusterNames()
Setter to force the class to update its cluster names.
MatchInfo getBestMatchToMCClusters(std::vector< SpacePoint const * > const &measurements)
Get MCRecoTrack index of best matching tracks and number of matched MC clusters which can be matched ...
void setClustersNames(const std::string &svdClustersName, const std::string &pxdClustersName)
Setter for StoreArray names of SVD and PXD clusters, if those are not set by the user it will be trie...
virtual double estimateQuality(std::vector< SpacePoint const * > const &measurements) final
Performing MC based quality estimation.
virtual QualityEstimationResults estimateQualityAndProperties(std::vector< SpacePoint const * > const &measurements) override final
additionally return momentum_truth if it is a perfect match to a single MCRecoTrack
QualityEstimatorMC(const std::string &mcRecoTracksStoreArrayName="MCRecoTracks", bool strictQualityIndicator=true, bool mva_target=false)
Constructor.
std::string m_mcRecoTracksStoreArrayName
MCRecoTracks StoreArray name.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
Accessor to arrays stored in the data store.
Abstract base class for different kinds of events.
Container for complete fit/estimation results.