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

#include <AGDDSection.h>

Collaboration diagram for AGDDSection:

Public Member Functions

 AGDDSection (const std::string &, const std::string &, const std::string &, const std::string &, const std::string &, AGDDSectionStore &ss, bool buildFlag=true)
void AddVolume (AGDDVolume *)
AGDDVolumeGetVolume (const std::string &)
void Register (AGDDSectionStore &ss)
void Name (const std::string &n)
void Version (const std::string &n)
void Author (const std::string &n)
void Date (const std::string &n)
void TopVolume (const std::string &n)
const std::string & Name () const
const std::string & Version () const
const std::string & Author () const
const std::string & Date () const
const std::string & TopVolume () const
bool IsToBeBuilt () const
volumeIterator VolumeBegin ()
volumeIterator VolumeEnd ()
void Print ()

Private Attributes

std::string m_name
std::string m_version
std::string m_author
std::string m_date
std::string m_topVolume
bool m_toBeBuilt
volumeList m_theVolumes

Detailed Description

Definition at line 17 of file AGDDSection.h.

Constructor & Destructor Documentation

◆ AGDDSection()

AGDDSection::AGDDSection ( const std::string & a,
const std::string & b,
const std::string & c,
const std::string & d,
const std::string & e,
AGDDSectionStore & ss,
bool buildFlag = true )

Definition at line 11 of file AGDDSection.cxx.

17 :
19{
20 Register(ss);
21}
static Double_t a
static Double_t ss
std::string m_author
Definition AGDDSection.h:43
std::string m_version
Definition AGDDSection.h:42
std::string m_name
Definition AGDDSection.h:41
void Register(AGDDSectionStore &ss)
std::string m_date
Definition AGDDSection.h:44
std::string m_topVolume
Definition AGDDSection.h:45
bool m_toBeBuilt
Definition AGDDSection.h:46

Member Function Documentation

◆ AddVolume()

void AGDDSection::AddVolume ( AGDDVolume * v)

Definition at line 23 of file AGDDSection.cxx.

24{
25 std::string temp=v->GetName();
26 if (m_theVolumes.find(temp)!=m_theVolumes.end())
27 std::cout<<" Volume "<<temp<<" already in section "<<m_name<<std::endl;
28 else
29 m_theVolumes[temp]=v;
30}
volumeList m_theVolumes
Definition AGDDSection.h:48

◆ Author() [1/2]

const std::string & AGDDSection::Author ( ) const
inline

Definition at line 33 of file AGDDSection.h.

33{return m_author;}

◆ Author() [2/2]

void AGDDSection::Author ( const std::string & n)
inline

Definition at line 28 of file AGDDSection.h.

◆ Date() [1/2]

const std::string & AGDDSection::Date ( ) const
inline

Definition at line 34 of file AGDDSection.h.

34{return m_date;}

◆ Date() [2/2]

void AGDDSection::Date ( const std::string & n)
inline

Definition at line 29 of file AGDDSection.h.

29{m_date=n;}

◆ GetVolume()

AGDDVolume * AGDDSection::GetVolume ( const std::string & n)

Definition at line 32 of file AGDDSection.cxx.

33{
34 if (m_theVolumes.find(n)!=m_theVolumes.end())
35 return m_theVolumes[n];
36 else
37 {
38 std::cout<<" Volume "<<n<<" not found in section "<<m_name<<std::endl;
39 return 0;
40 }
41}

◆ IsToBeBuilt()

bool AGDDSection::IsToBeBuilt ( ) const
inline

Definition at line 36 of file AGDDSection.h.

36{return m_toBeBuilt;}

◆ Name() [1/2]

const std::string & AGDDSection::Name ( ) const
inline

Definition at line 31 of file AGDDSection.h.

31{return m_name;}

◆ Name() [2/2]

void AGDDSection::Name ( const std::string & n)
inline

Definition at line 26 of file AGDDSection.h.

26{m_name=n;}

◆ Print()

void AGDDSection::Print ( )

Definition at line 47 of file AGDDSection.cxx.

48{
49 std::cout<<"+";
50 for (unsigned int i=0;i<10;i++) std::cout<<"--------";
51 std::cout<<"+"<<std::endl;
52 std::cout<<" section "<<m_name<<" "<<" version "<<m_version<<std::endl;
53 std::cout<<" author "<<m_author<<" date "<<m_date<<std::endl;
54 std::cout<<" defines volumes: "<<std::endl<<std::endl;
55 volumeList::const_iterator it;
56// for (it=theVolumes.begin();it!=theVolumes.end();it++)
57// {
58// if (!(*it).second->HasParent())
59// AGDDController::PrintVolumeHierarchy((*it).first,0);
60// }
61 std::cout<<"+";
62 for (unsigned int i=0;i<10;i++) std::cout<<"--------";
63 std::cout<<"+"<<std::endl<<std::endl;
64}

◆ Register()

void AGDDSection::Register ( AGDDSectionStore & ss)

Definition at line 43 of file AGDDSection.cxx.

44{
45 ss.RegisterSection(this);
46}

◆ TopVolume() [1/2]

const std::string & AGDDSection::TopVolume ( ) const
inline

Definition at line 35 of file AGDDSection.h.

35{return m_topVolume;}

◆ TopVolume() [2/2]

void AGDDSection::TopVolume ( const std::string & n)
inline

Definition at line 30 of file AGDDSection.h.

◆ Version() [1/2]

const std::string & AGDDSection::Version ( ) const
inline

Definition at line 32 of file AGDDSection.h.

32{return m_version;}

◆ Version() [2/2]

void AGDDSection::Version ( const std::string & n)
inline

Definition at line 27 of file AGDDSection.h.

27{m_version=n;}

◆ VolumeBegin()

volumeIterator AGDDSection::VolumeBegin ( )
inline

Definition at line 37 of file AGDDSection.h.

37{return m_theVolumes.begin();}

◆ VolumeEnd()

volumeIterator AGDDSection::VolumeEnd ( )
inline

Definition at line 38 of file AGDDSection.h.

38{return m_theVolumes.end();}

Member Data Documentation

◆ m_author

std::string AGDDSection::m_author
private

Definition at line 43 of file AGDDSection.h.

◆ m_date

std::string AGDDSection::m_date
private

Definition at line 44 of file AGDDSection.h.

◆ m_name

std::string AGDDSection::m_name
private

Definition at line 41 of file AGDDSection.h.

◆ m_theVolumes

volumeList AGDDSection::m_theVolumes
private

Definition at line 48 of file AGDDSection.h.

◆ m_toBeBuilt

bool AGDDSection::m_toBeBuilt
private

Definition at line 46 of file AGDDSection.h.

◆ m_topVolume

std::string AGDDSection::m_topVolume
private

Definition at line 45 of file AGDDSection.h.

◆ m_version

std::string AGDDSection::m_version
private

Definition at line 42 of file AGDDSection.h.


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