ATLAS Offline Software
IEventCnvSuperTool.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "TrkEventCnvTools/ITrkEventCnvTool.h"
6 
7 template <class CONT, class ROT>
8 bool Trk::IEventCnvSuperTool::getHashAndIndex(const ROT* rot,
9  const SG::ReadHandleKey<CONT>& contName,
10  typename ElementLink<CONT>::index_type& hashAndIndex) const {
11  const Trk::ITrkEventCnvTool* cnvTool{getCnvTool(rot->identify())};
12  if (cnvTool!=nullptr) return cnvTool->getHashAndIndex<CONT, ROT>(rot, contName, hashAndIndex);
13  return false;
14 }