ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
eflowRec
src
PFMatcher.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/*
6
* PFMatcher.cxx
7
*
8
* Created on: 03.04.2014
9
* Author: tlodd
10
*/
11
12
#include "
PFMatcher.h
"
13
#include "
PathResolver/PathResolver.h
"
14
#include <fstream>
15
namespace
PFMatch
{
16
17
MatchDistance
TrackClusterMatcher::match
(
ITrack
* track,
ICluster
* cluster)
const
{
18
double
distance =
m_distanceProvider
->distanceBetween(track, cluster);
19
return
MatchDistance
(cluster, distance);
20
}
21
void
TrackClusterMatcher::setDRParameters
(){
22
std::string theFileName =
PathResolver::find_file
(
"rmsvsdr.dat"
,
"DATAPATH"
);
23
std::ifstream DRPARAM(theFileName.c_str());
24
for
(
int
i=0;i<8;i++) DRPARAM>>
m_drcut_par
[i][0]>>
m_drcut_par
[i][1]>>
m_drcut_par
[i][2];
25
26
}
27
28
29
}
PFMatcher.h
PathResolver.h
PFMatch::ICluster
Definition
PFMatchInterfaces.h:37
PFMatch::ITrack
Definition
PFMatchInterfaces.h:28
PFMatch::TrackClusterMatcher::setDRParameters
void setDRParameters()
This sets the parameters in the above array.
Definition
PFMatcher.cxx:21
PFMatch::TrackClusterMatcher::m_distanceProvider
std::unique_ptr< IDistanceProvider > m_distanceProvider
Definition
PFMatcher.h:49
PFMatch::TrackClusterMatcher::match
MatchDistance match(ITrack *track, ICluster *cluster) const
Definition
PFMatcher.cxx:17
PFMatch::TrackClusterMatcher::m_drcut_par
float m_drcut_par[9][3]
This stores the parameters to vary DR cut with Pt.
Definition
PFMatcher.h:52
PathResolver::find_file
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
Definition
PathResolver.cxx:220
PFMatch
Definition
PFMatchDistance.cxx:15
PFMatch::MatchDistance
std::pair< ICluster *, double > MatchDistance
Definition
PFMatcher.h:24
Generated on
for ATLAS Offline Software by
1.17.0