ATLAS Offline Software
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 "
eflowRec/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
}
PFMatch::MatchDistance
std::pair< ICluster *, double > MatchDistance
Definition:
PFMatcher.h:24
PathResolver::find_file
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
Definition:
PathResolver.cxx:251
PFMatcher.h
PFMatch::ICluster
Definition:
PFMatchInterfaces.h:37
PFMatch::ITrack
Definition:
PFMatchInterfaces.h:28
lumiFormat.i
int i
Definition:
lumiFormat.py:85
PathResolver.h
PFMatch::TrackClusterMatcher::m_distanceProvider
std::unique_ptr< IDistanceProvider > m_distanceProvider
Definition:
PFMatcher.h:52
PFMatch
Definition:
PFMatchDistance.h:17
PFMatch::TrackClusterMatcher::match
MatchDistance match(ITrack *track, ICluster *cluster) const
Definition:
PFMatcher.cxx:17
xAOD::track
@ track
Definition:
TrackingPrimitives.h:512
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition:
GeoPrimitivesHelpers.h:54
PFMatch::TrackClusterMatcher::setDRParameters
void setDRParameters()
This sets the parameters in the above array.
Definition:
PFMatcher.cxx:21
PFMatch::TrackClusterMatcher::m_drcut_par
float m_drcut_par[9][3]
This stores the parameters to vary DR cut with Pt.
Definition:
PFMatcher.h:55
Generated on Thu Nov 7 2024 21:23:25 for ATLAS Offline Software by
1.8.18