ATLAS Offline Software
Loading...
Searching...
No Matches
MuonGM::FPVMAP Class Reference

#include <FPVMAP.h>

Collaboration diagram for MuonGM::FPVMAP:

Public Member Functions

 FPVMAP ()=default
 ~FPVMAP ()=default
DetectorIterator Begin ()
DetectorIterator End ()
int NDetectors ()
int NDetectorsReused ()
GeoVPhysVol * GetDetector (const std::string &name)
void StoreDetector (GeoVPhysVol *s, const std::string &name)
void PrintAllDetectors ()

Private Attributes

std::map< std::string, GeoVPhysVol * > m_Detectors {}
int m_nreused {0}

Detailed Description

Definition at line 17 of file FPVMAP.h.

Constructor & Destructor Documentation

◆ FPVMAP()

MuonGM::FPVMAP::FPVMAP ( )
default

◆ ~FPVMAP()

MuonGM::FPVMAP::~FPVMAP ( )
default

Member Function Documentation

◆ Begin()

DetectorIterator MuonGM::FPVMAP::Begin ( )
inline

Definition at line 34 of file FPVMAP.h.

34{ return m_Detectors.begin(); }
std::map< std::string, GeoVPhysVol * > m_Detectors
Definition FPVMAP.h:31

◆ End()

DetectorIterator MuonGM::FPVMAP::End ( )
inline

Definition at line 35 of file FPVMAP.h.

35{ return m_Detectors.end(); }

◆ GetDetector()

GeoVPhysVol * MuonGM::FPVMAP::GetDetector ( const std::string & name)

Definition at line 17 of file FPVMAP.cxx.

17 {
18 if (m_Detectors.find(name) != m_Detectors.end()) {
19 m_nreused++;
20 // std::cout<<"FPVMAP:: the pointer to "<<name
21 // <<" is already stored; saving memory "<<m_nreused<<std::endl;
22 return m_Detectors[name];
23 } else
24 return nullptr;
25 }
int m_nreused
Definition FPVMAP.h:32

◆ NDetectors()

int MuonGM::FPVMAP::NDetectors ( )
inline

Definition at line 36 of file FPVMAP.h.

36{ return m_Detectors.size(); }

◆ NDetectorsReused()

int MuonGM::FPVMAP::NDetectorsReused ( )
inline

Definition at line 37 of file FPVMAP.h.

37{ return m_nreused; }

◆ PrintAllDetectors()

void MuonGM::FPVMAP::PrintAllDetectors ( )

Definition at line 32 of file FPVMAP.cxx.

32 {
33 MsgStream log(Athena::getMessageSvc(), "MuonGM::FPVMAP");
34
35 for (const auto& p : m_Detectors) {
36 log << MSG::INFO << "---> A PhysVol corresponds to " << p.first << endmsg;
37 }
38 }
#define endmsg
IMessageSvc * getMessageSvc(bool quiet=false)

◆ StoreDetector()

void MuonGM::FPVMAP::StoreDetector ( GeoVPhysVol * s,
const std::string & name )

Definition at line 27 of file FPVMAP.cxx.

27 {
28 // std::cout<<"FPVMAP:: store the pointer to "<<name<<std::endl;
30 }

Member Data Documentation

◆ m_Detectors

std::map<std::string, GeoVPhysVol *> MuonGM::FPVMAP::m_Detectors {}
private

Definition at line 31 of file FPVMAP.h.

31{};

◆ m_nreused

int MuonGM::FPVMAP::m_nreused {0}
private

Definition at line 32 of file FPVMAP.h.

32{0};

The documentation for this class was generated from the following files: