ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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. More...
 
AGDDVolumeelements
 STL member. More...
 

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

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

STL member.

◆ keys

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

STL member.


The documentation for this class was generated from the following files:
beamspotman.n
n
Definition: beamspotman.py:731
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.PyAthena.v
v
Definition: PyAthena.py:154
VKalVrtAthena::varHolder_detail::clear
void clear(T &var)
Definition: NtupleVars.h:48