ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
IParticleToCaloExtensionMap Class Reference

#include <IParticleToCaloExtensionMap.h>

Collaboration diagram for IParticleToCaloExtensionMap:

Public Member Functions

 IParticleToCaloExtensionMap ()
 
 ~IParticleToCaloExtensionMap ()
 
void addEntry (const xAOD::IParticle *particle, const Trk::TrackParameters *extension)
 
const Trk::TrackParametersreadCaloEntry (const xAOD::IParticle *particle) const
 
unsigned int size () const
 

Private Attributes

std::map< const xAOD::IParticle *, const Trk::TrackParameters * > m_caloExtensionMap
 

Detailed Description

Definition at line 13 of file IParticleToCaloExtensionMap.h.

Constructor & Destructor Documentation

◆ IParticleToCaloExtensionMap()

IParticleToCaloExtensionMap::IParticleToCaloExtensionMap ( )

Definition at line 6 of file IParticleToCaloExtensionMap.cxx.

6  {
7  m_caloExtensionMap.clear();
8 }

◆ ~IParticleToCaloExtensionMap()

IParticleToCaloExtensionMap::~IParticleToCaloExtensionMap ( )

Definition at line 10 of file IParticleToCaloExtensionMap.cxx.

10  {
11  m_caloExtensionMap.clear();
12 }

Member Function Documentation

◆ addEntry()

void IParticleToCaloExtensionMap::addEntry ( const xAOD::IParticle particle,
const Trk::TrackParameters extension 
)

Definition at line 14 of file IParticleToCaloExtensionMap.cxx.

14  {
15  m_caloExtensionMap.insert( std::pair<const xAOD::IParticle*, const Trk::TrackParameters*>(particle, caloEntry) );
16 }

◆ readCaloEntry()

const Trk::TrackParameters * IParticleToCaloExtensionMap::readCaloEntry ( const xAOD::IParticle particle) const

Definition at line 18 of file IParticleToCaloExtensionMap.cxx.

19 {
20  auto pos = m_caloExtensionMap.find(particle);
21  if (pos == m_caloExtensionMap.end())
22  return nullptr;
23  else
24  return pos->second;
25 }

◆ size()

unsigned int IParticleToCaloExtensionMap::size ( ) const

Definition at line 27 of file IParticleToCaloExtensionMap.cxx.

27  {
28  return m_caloExtensionMap.size();
29 }

Member Data Documentation

◆ m_caloExtensionMap

std::map<const xAOD::IParticle*, const Trk::TrackParameters* > IParticleToCaloExtensionMap::m_caloExtensionMap
private

Definition at line 23 of file IParticleToCaloExtensionMap.h.


The documentation for this class was generated from the following files:
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
IParticleToCaloExtensionMap::m_caloExtensionMap
std::map< const xAOD::IParticle *, const Trk::TrackParameters * > m_caloExtensionMap
Definition: IParticleToCaloExtensionMap.h:23