From 9d3c994edf596d05d59a9d7912ca37a85013242e Mon Sep 17 00:00:00 2001
From: christos <christos@cern.ch>
Date: Fri, 10 Jul 2020 19:10:35 +0100
Subject: [PATCH] RefittedTrackPair: Remove seemingly un-needed code

---
 .../TrkTrack/TrkTrack/RefittedTrackPair.h     | 53 -------------------
 .../TrkTrack/RefittedTrackPairCollection.h    | 25 ---------
 .../TrkEvent/TrkTrack/TrkTrack/selection.xml  |  8 +--
 .../TrkTrack/src/RefittedTrackPair.cxx        | 25 ---------
 4 files changed, 2 insertions(+), 109 deletions(-)
 delete mode 100755 Tracking/TrkEvent/TrkTrack/TrkTrack/RefittedTrackPair.h
 delete mode 100755 Tracking/TrkEvent/TrkTrack/TrkTrack/RefittedTrackPairCollection.h
 delete mode 100755 Tracking/TrkEvent/TrkTrack/src/RefittedTrackPair.cxx

diff --git a/Tracking/TrkEvent/TrkTrack/TrkTrack/RefittedTrackPair.h b/Tracking/TrkEvent/TrkTrack/TrkTrack/RefittedTrackPair.h
deleted file mode 100755
index c6957903a6e..00000000000
--- a/Tracking/TrkEvent/TrkTrack/TrkTrack/RefittedTrackPair.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-*/
-
-/* ====================================================================================
-			RefittedTrackPair.h  -  description
-			-----------------------------------
-begin                : Friday 30th March 2006
-author               : Tom Atkinson
-email                : t.atkinson@physics.unimelb.edu.au
-decription           : Class holding an element link to a track and pointer to the
-                       refitted
-======================================================================================= */
-
-#ifndef TrkRefittedTrackPair_H
-#define TrkRefittedTrackPair_H
-
-#include "AthLinks/ElementLink.h"
-#include "TrkTrack/Track.h"
-#include "TrkTrack/TrackCollection.h"
-
-namespace Trk{
-
-/** 
-
-@brief pair associating a refitted track to a track element link
-
-  The RefittedTrack class is a pair. 
-    - The first element is an element link to the original track
-    - The second element is a pointer to the refitted track
-
-@author t.atkinson@physics.unimelb.edu.au
-
-*/
-
-
-class RefittedTrackPair : public std::pair< ElementLink< DataVector< Track > >, Track* >{
- public:
-
-  //!< Default constructor
-  RefittedTrackPair();
-
-  //!< Constructor using the element link to the original track and the pointer to the refitted track
-  RefittedTrackPair( const ElementLink< DataVector< Track > >&, Track* );
-
-  //!< Virtual destructor
-  virtual ~RefittedTrackPair();
-
-};
-
-} // end Trk namespace
-
-#endif
diff --git a/Tracking/TrkEvent/TrkTrack/TrkTrack/RefittedTrackPairCollection.h b/Tracking/TrkEvent/TrkTrack/TrkTrack/RefittedTrackPairCollection.h
deleted file mode 100755
index 6e8abb86c6f..00000000000
--- a/Tracking/TrkEvent/TrkTrack/TrkTrack/RefittedTrackPairCollection.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-*/
-
-/* ===============================================================================
-			RefittedTrackPairCollection.h  -  description
-			---------------------------------------------
-begin                : Friday 30th March 2006
-author               : Tom Atkinson 
-email                : t.atkinson@physics.unimelb.edu.au
-decription           : Collection of refitted track pairs
-================================================================================== */
-
-#ifndef TrkRefittedTrackPairCollection_H
-#define TrkRefittedTrackPairCollection_H
-
-#include "TrkTrack/RefittedTrackPair.h"
-
-#include "AthContainers/DataVector.h"
-
-typedef DataVector< Trk::RefittedTrackPair > RefittedTrackPairCollection;
-
-CLASS_DEF(RefittedTrackPairCollection, 1098918547, 1)
-
-#endif
diff --git a/Tracking/TrkEvent/TrkTrack/TrkTrack/selection.xml b/Tracking/TrkEvent/TrkTrack/TrkTrack/selection.xml
index f94dd424430..f38e080cd1b 100755
--- a/Tracking/TrkEvent/TrkTrack/TrkTrack/selection.xml
+++ b/Tracking/TrkEvent/TrkTrack/TrkTrack/selection.xml
@@ -9,6 +9,7 @@
     <field name="m_trackStateVector" transient="false" />
     <field name="s_numberOfInstantiations" transient="true" />
   </class>
+ 
   <class name="TrackCollection"/>
   <class name="DataVector<Trk::Track>" id="70ECEBFC-BE00-46C2-8B35-4CC12D18DE39"/>
   <class name="std::vector<Trk::Track*>"  />
@@ -21,13 +22,8 @@
   <class name="std::vector<const Trk::TrackStateOnSurface*>" />  
   <class name="Trk::AlignmentEffectsOnTrack"/>
 
-  <!-- RefittedTrackPair --> 
-  <class name="DataVector< Trk::RefittedTrackPair >" id="0168FDD0-A582-40C5-9A47-A39452C09778" />
-  <class name="std::vector< Trk::RefittedTrackPair* >" />
-  <class name="Trk::RefittedTrackPair" />
-
   <class name="Trk::LinkToTrack"/>
-
+  
   <class name="Trk::TrackInfo"/>
    <exclusion>
     <class name="Trk::TrackInfo">
diff --git a/Tracking/TrkEvent/TrkTrack/src/RefittedTrackPair.cxx b/Tracking/TrkEvent/TrkTrack/src/RefittedTrackPair.cxx
deleted file mode 100755
index 028017a59a8..00000000000
--- a/Tracking/TrkEvent/TrkTrack/src/RefittedTrackPair.cxx
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-*/
-
-/* ===============================================================================
-			RefittedTrackPair.cxx  -  description
-			-------------------------------------
-begin                : Friday 30th March 2006
-author               : Tom Atkinson
-email                : t.atkinson@physics.unimelb.edu.au
-decription           : Implementation code for the RefittedTrackPair class
-================================================================================== */
-
-#include "TrkTrack/RefittedTrackPair.h"
-
-Trk::RefittedTrackPair::RefittedTrackPair()= default;
-
-Trk::RefittedTrackPair::RefittedTrackPair( const ElementLink< DataVector< Trk::Track > >& originalTrack, Trk::Track* refittedTrack )
-  :
-  std::pair< ElementLink< DataVector< Trk::Track > >, Trk::Track* >( originalTrack, refittedTrack )
-{}
-
-Trk::RefittedTrackPair::~RefittedTrackPair()= default;
-
-
-- 
GitLab