|
ATLAS Offline Software
|
Go to the documentation of this file.
23 const std::string&
name,
24 const IInterface*
parent) :
26 m_trackPositionType(
"EM2EtaPhi"),
27 m_clusterPositionType(
"GeomCenterEtaPhi"),
28 m_distanceType(
"EtaPhiSquareSignificance"),
29 m_matchCut(1.64*1.64),
31 declareInterface<PFTrackClusterMatchingTool>(
this);
48 return StatusCode::SUCCESS;
53 return StatusCode::SUCCESS;
56 std::vector<std::pair<eflowRecCluster*, float>>
61 std::vector<eflowRecCluster*> vec_clusters(
clusters->begin(),
66 std::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());
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;
std::pair< ICluster *, double > MatchDistance
Group
Properties of a chain group.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual double phi() const
#define ATH_MSG_VERBOSE(x)
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.
T * Get(TFile &f, const std::string &n, const std::string &dir="", const chainmap_t *chainmap=0, std::vector< std::string > *saved=0)
get a histogram given a path, and an optional initial directory if histogram is not found,...
::StatusCode StatusCode
StatusCode definition for legacy code.
eflowRecCluster * getEfRecCluster()
This class, which inherits from the pure virtual ICluster, stores a pointer to an eflowRecCluster.
virtual double eta() const
Declare a monitored scalar variable.
bool match(std::string s1, std::string s2)
match the individual directories of two strings