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

#include <MbtsDetDescrManager.h>

Collaboration diagram for MbtsDetDescrManager:

Public Member Functions

 MbtsDetDescrManager ()
 
 ~MbtsDetDescrManager ()
 
CaloDetDescrElementget_element (const Identifier &elementId) const
 
void add (CaloDetDescrElement *element)
 

Private Types

typedef std::map< Identifier, CaloDetDescrElement * > MbtsElements
 

Private Attributes

MbtsElements m_elements
 

Detailed Description

Definition at line 15 of file MbtsDetDescrManager.h.

Member Typedef Documentation

◆ MbtsElements

Definition at line 26 of file MbtsDetDescrManager.h.

Constructor & Destructor Documentation

◆ MbtsDetDescrManager()

MbtsDetDescrManager::MbtsDetDescrManager ( )

Definition at line 11 of file MbtsDetDescrManager.cxx.

12 {
13 }

◆ ~MbtsDetDescrManager()

MbtsDetDescrManager::~MbtsDetDescrManager ( )

Definition at line 15 of file MbtsDetDescrManager.cxx.

16 {
17  for (auto& p : m_elements) {
18  delete p.second;
19  }
20 }

Member Function Documentation

◆ add()

void MbtsDetDescrManager::add ( CaloDetDescrElement element)

Definition at line 31 of file MbtsDetDescrManager.cxx.

32 {
33  MbtsElements::iterator it = m_elements.find(element->identify());
34  if(it==m_elements.end())
35  m_elements[element->identify()] = element;
36  else {
37  // Issue warning message and don't update map entry
38  MsgStream log(Athena::getMessageSvc(), "MbtsDetDescrManager");
39  if (log.level() <= MSG::DEBUG) {
40  log << MSG::DEBUG << "Attempt to update map entry for ID=" << element->identify().getString() << ". Skipping" << endmsg;
41  }
42  }
43 }

◆ get_element()

CaloDetDescrElement * MbtsDetDescrManager::get_element ( const Identifier elementId) const

Definition at line 22 of file MbtsDetDescrManager.cxx.

23 {
24  MbtsElements::const_iterator it = m_elements.find(elementId);
25  if(it==m_elements.end())
26  return nullptr;
27  else
28  return it->second;
29 }

Member Data Documentation

◆ m_elements

MbtsElements MbtsDetDescrManager::m_elements
private

Definition at line 27 of file MbtsDetDescrManager.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
skel.it
it
Definition: skel.GENtoEVGEN.py:396
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
CaloDetDescrElement::identify
Identifier identify() const override final
cell identifier
Definition: CaloDetDescrElement.cxx:64
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MbtsDetDescrManager::m_elements
MbtsElements m_elements
Definition: MbtsDetDescrManager.h:27
Identifier::getString
std::string getString() const
Provide a string form of the identifier - hexadecimal.
Definition: Identifier.cxx:25
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20