Skip to content
Snippets Groups Projects
Commit 6988ab00 authored by Scott Snyder's avatar Scott Snyder Committed by scott snyder
Browse files

FTK_RecTools: Do not put using declarations in the global namespace in headers.

Do not put using declarations in the global namespace in headers.
Also avoid copying a vector in argument passing.



Former-commit-id: 4118f09e
parent dead11b5
No related merge requests found
......@@ -44,7 +44,7 @@
//#include "xAODTracking/TrackParticleContainerFwd.h"
//#include "Tracking/TrkVertexFitter/TrkVxEdmCnv/TrkVxEdmCnv/IVxCandidateXAODVertex.h"
class VxContainer;
using std::vector;
namespace Trk {
class Track;
// class Trk::IVxCandidateXAODVertex;
......@@ -115,11 +115,11 @@ class FTK_VertexFinderTool : public AthAlgTool, virtual public IFTK_VertexFinder
//
// Helper functions with the uncerianties
//
std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*> findVertex(vector<MyTrack> trks);
std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*> findVertex(std::vector<MyTrack>& trks);
double ctheta2eta(double cot);
vector<MyTrack> getTracks(const FTK_RawTrackContainer* trks);
vector<MyTrack> getTracks(const TrackCollection* trks);
//tool handel
std::vector<MyTrack> getTracks(const FTK_RawTrackContainer* trks);
std::vector<MyTrack> getTracks(const TrackCollection* trks);
//tool handle
ToolHandle<IFTK_UncertaintyTool> m_uncertaintyTool;
ToolHandle<Trk::IVxCandidateXAODVertex> m_VertexEdmFactory;
};
......
......@@ -112,9 +112,8 @@ std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*> FTK_VertexFinderToo
//
// Covariance Matrix if there is a BLayer Hit
//
std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*> FTK_VertexFinderTool::findVertex(vector<MyTrack> mytrk)
std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*> FTK_VertexFinderTool::findVertex(std::vector<MyTrack>& mytrk)
{
MsgStream athenaLog(msgSvc(), name());
double mGkx=0.0001;
double mGky=0.0001;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment