ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDSection.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
8
9#include <iostream>
10
11AGDDSection::AGDDSection(const std::string& a,
12 const std::string& b,
13 const std::string& c,
14 const std::string& d,
15 const std::string& e,
17 bool bflag):
19{
20 Register(ss);
21}
22
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}
31
32AGDDVolume* AGDDSection::GetVolume(const std::string& n)
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}
42
44{
45 ss.RegisterSection(this);
46}
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}
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
AGDDVolume * GetVolume(const std::string &)
void AddVolume(AGDDVolume *)
void Register(AGDDSectionStore &ss)
volumeList m_theVolumes
Definition AGDDSection.h:48
std::string m_date
Definition AGDDSection.h:44
AGDDSection(const std::string &, const std::string &, const std::string &, const std::string &, const std::string &, AGDDSectionStore &ss, bool buildFlag=true)
std::string m_topVolume
Definition AGDDSection.h:45
bool m_toBeBuilt
Definition AGDDSection.h:46