23 const std::string& name,
24 const IInterface* parent) :
27 declareInterface<PFTrackClusterMatchingTool>(
this);
40 return StatusCode::SUCCESS;
45 return StatusCode::SUCCESS;
48std::vector<std::pair<eflowRecCluster*, float>>
53 std::vector<eflowRecCluster*> vec_clusters(clusters->begin(),
55 return doMatches(track, vec_clusters, nMatches);
58std::vector<std::pair<eflowRecCluster*, float>>
61 std::vector<eflowRecCluster*>& clusters,
69 matched_clusters_eta, matched_clusters_phi);
73 std::vector<eflowMatchCluster*> matchClusters;
74 matchClusters.reserve(clusters.size());
76 for (
auto& cluster : clusters) {
77 matchClusters.push_back(cluster->getMatchCluster());
82 std::vector<MatchDistance> allMatches =
m_matcher->bestMatches(
83 &matchTrack, matchClusters, nMatches, 0.1 * track->getTrack()->e());
87 std::vector<std::pair<eflowRecCluster*, float>> results;
94 matched_clusters_e = thisMatch->
e() *
m_invGeV;
95 matched_clusters_eta = thisMatch->
eta();
96 matched_clusters_phi = thisMatch->
phi();
98 matched_tracks_pt = track->getTrack()->pt() / 1000;
#define ATH_MSG_VERBOSE(x)
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