ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDVolumeStore Class Reference

#include <AGDDVolumeStore.h>

Inheritance diagram for AGDDVolumeStore:
Collaboration diagram for AGDDVolumeStore:

Public Member Functions

 AGDDVolumeStore ()
void RegisterVolume (AGDDVolume *)
AGDDVolumeGetVolume (std::string)
bool Exist (std::string)
void Clean ()

Public Attributes

std::string keys
 STL member.
std::string keys
 STL member.
AGDDVolumeelements
 STL member.
AGDDVolumeelements
 STL member.

Detailed Description

Definition at line 15 of file AGDDVolumeStore.h.

Constructor & Destructor Documentation

◆ AGDDVolumeStore()

AGDDVolumeStore::AGDDVolumeStore ( )

Definition at line 10 of file AGDDVolumeStore.cxx.

11{
12}

Member Function Documentation

◆ Clean()

void AGDDVolumeStore::Clean ( )

Definition at line 36 of file AGDDVolumeStore.cxx.

37{
38 for (auto volumeIt : *this)
39 {
40 if (!(volumeIt.second->IsSensitiveVolume()))
41 delete (volumeIt.second);
42 }
43 this->clear();
44}

◆ Exist()

bool AGDDVolumeStore::Exist ( std::string n)

Definition at line 20 of file AGDDVolumeStore.cxx.

21{
22 return ((*this).find(n) != (*this).end());
23}

◆ GetVolume()

AGDDVolume * AGDDVolumeStore::GetVolume ( std::string name)

Definition at line 25 of file AGDDVolumeStore.cxx.

26{
27 if ((*this).find(name) != (*this).end())
28 return (*this)[name];
29 else
30 {
31 std::cout << " Volume "<<name<<" not found: returning 0"<<std::endl;
32 return 0;
33 }
34}

◆ RegisterVolume()

void AGDDVolumeStore::RegisterVolume ( AGDDVolume * v)

Definition at line 14 of file AGDDVolumeStore.cxx.

15{
16 std::string name=v->GetName();
17 (*this)[name]=v;
18}

Member Data Documentation

◆ elements [1/2]

AGDDVolume * std::map< std::string, AGDDVolume * >::elements
inherited

STL member.

◆ elements [2/2]

AGDDVolume * std::map< std::string, AGDDVolume * >::elements
inherited

STL member.

◆ keys [1/2]

std::string std::map< std::string, AGDDVolume * >::keys
inherited

STL member.

◆ keys [2/2]

std::string std::map< std::string, AGDDVolume * >::keys
inherited

STL member.


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