ATLAS Offline Software
Loading...
Searching...
No Matches
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"
14#include <fstream>
15namespace PFMatch {
16
18 double distance = m_distanceProvider->distanceBetween(track, cluster);
19 return MatchDistance(cluster, distance);
20}
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}
void setDRParameters()
This sets the parameters in the above array.
Definition PFMatcher.cxx:21
std::unique_ptr< IDistanceProvider > m_distanceProvider
Definition PFMatcher.h:49
MatchDistance match(ITrack *track, ICluster *cluster) const
Definition PFMatcher.cxx:17
float m_drcut_par[9][3]
This stores the parameters to vary DR cut with Pt.
Definition PFMatcher.h:52
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
std::pair< ICluster *, double > MatchDistance
Definition PFMatcher.h:24