23 const std::string& name,
24 const IInterface* parent) :
31 declareInterface<PFTrackClusterMatchingTool>(
this);
48 return StatusCode::SUCCESS;
53 return StatusCode::SUCCESS;
56std::vector<std::pair<eflowRecCluster*, float>>
61 std::vector<eflowRecCluster*> vec_clusters(clusters->begin(),
63 return doMatches(track, vec_clusters, nMatches);
66std::vector<std::pair<eflowRecCluster*, float>>
69 std::vector<eflowRecCluster*>& clusters,
77 matched_clusters_eta, matched_clusters_phi);
81 std::vector<eflowMatchCluster*> matchClusters;
82 matchClusters.reserve(clusters.size());
84 for (
auto& cluster : clusters) {
85 matchClusters.push_back(cluster->getMatchCluster());
90 std::vector<MatchDistance> allMatches =
m_matcher->bestMatches(
91 &matchTrack, matchClusters, nMatches, 0.1 * track->getTrack()->e());
95 std::vector<std::pair<eflowRecCluster*, float>> results;
102 matched_clusters_e = thisMatch->
e() *
m_invGeV;
103 matched_clusters_eta = thisMatch->
eta();
104 matched_clusters_phi = thisMatch->
phi();
106 matched_tracks_pt = track->getTrack()->pt() / 1000;
#define ATH_MSG_VERBOSE(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Group of local monitoring quantities and retain correlation when filling histograms
Declare a monitored scalar variable.
static std::unique_ptr< IPositionProvider > Get(const std::string &positionType)
static std::unique_ptr< IDistanceProvider > Get(const std::string &distanceType, std::unique_ptr< IPositionProvider > trackPosition, std::unique_ptr< IPositionProvider > clusterPosition)
static std::unique_ptr< IPositionProvider > Get(const std::string &positionType)
This class, which inherits from the pure virtual ICluster, stores a pointer to an eflowRecCluster.
virtual double eta() const
eflowRecCluster * getEfRecCluster()
virtual double phi() const
This class, which inherits from the pure virtual ITrack, stores a pointer to an eflowRecTrack and has...
This class extends the information about a xAOD::Track.
bool match(std::string s1, std::string s2)
match the individual directories of two strings
std::pair< ICluster *, double > MatchDistance