ATLAS Offline Software
IParticleToCaloExtensionMap.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
5 
7  m_caloExtensionMap.clear();
8 }
9 
11  m_caloExtensionMap.clear();
12 }
13 
15  m_caloExtensionMap.insert( std::pair<const xAOD::IParticle*, const Trk::TrackParameters*>(particle, caloEntry) );
16 }
17 
19 {
20  auto pos = m_caloExtensionMap.find(particle);
21  if (pos == m_caloExtensionMap.end())
22  return nullptr;
23  else
24  return pos->second;
25 }
26 
27 unsigned int IParticleToCaloExtensionMap::size() const {
28  return m_caloExtensionMap.size();
29 }
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
IParticleToCaloExtensionMap::readCaloEntry
const Trk::TrackParameters * readCaloEntry(const xAOD::IParticle *particle) const
Definition: IParticleToCaloExtensionMap.cxx:18
IParticleToCaloExtensionMap::size
unsigned int size() const
Definition: IParticleToCaloExtensionMap.cxx:27
IParticleToCaloExtensionMap::IParticleToCaloExtensionMap
IParticleToCaloExtensionMap()
Definition: IParticleToCaloExtensionMap.cxx:6
Trk::ParametersBase
Definition: ParametersBase.h:55
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
IParticleToCaloExtensionMap.h
IParticleToCaloExtensionMap::~IParticleToCaloExtensionMap
~IParticleToCaloExtensionMap()
Definition: IParticleToCaloExtensionMap.cxx:10
IParticleToCaloExtensionMap::addEntry
void addEntry(const xAOD::IParticle *particle, const Trk::TrackParameters *extension)
Definition: IParticleToCaloExtensionMap.cxx:14
IParticleToCaloExtensionMap::m_caloExtensionMap
std::map< const xAOD::IParticle *, const Trk::TrackParameters * > m_caloExtensionMap
Definition: IParticleToCaloExtensionMap.h:23