|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #include "GeoModelKernel/GeoVDetectorManager.h"
19 #include "GeoModelKernel/GeoPhysVol.h"
20 #include "GeoModelKernel/GeoVPhysVol.h"
38 : m_theBuilder(0),m_locked(false),m_disableSections(false),
119 std::cout<<
" -----> asking for a dump without defined parser makes no sense - crashing!" <<std::endl;
130 SmartIF<IService> svcDetStore = Gaudi::svcLocator()->service(
"DetectorStore");
134 std::cout<<
"AGDDController could not get at the detector store!"<<std::endl;
141 std::cout<<
"AGDDController could not get GeoModelExperiment!"<<std::endl;
147 if (theManager->getNumTreeTops()>1) std::cout<<
"AGDDController: more than one treetop!!!"<<std::endl;
148 PVConstLink
pv=theManager->getTreeTop(0);
149 GeoVPhysVol* ppv=
const_cast<GeoVPhysVol*
>(&(*pv));
156 void AGDDController::PrintVolumeHierarchy(
const std::string&
name,
int ilevel)
159 int currentLevel=ilevel+1;
160 for (
int i=0;
i<ilevel;
i++) std::cout<<
" ";
161 std::cout<<
"| "<<
name<<std::endl;
163 std::vector<std::string> nameVec;
168 it=
find(nameVec.begin(),nameVec.end(),nameV);
169 if (
it!=nameVec.end())
continue;
170 nameVec.push_back(nameV);
171 PrintVolumeHierarchy(nameV,currentLevel);
JetConstituentVector::iterator iterator
virtual void BuildFromSection(const std::string &)=0
std::string find(const std::string &s)
return a remapped string
AGDDMaterialStore & GetMaterialStore()
AGDDVolumeStore & GetVolumeStore()
void AGDDController::UseGeoModelDetector ATLAS_NOT_THREAD_SAFE(const std::string &name)
std::vector< std::string > m_volumesToBuild
IAGDDParser * m_theParser
std::vector< std::string > m_sectionsToBuild
virtual void BuildFromVolume(const std::string &)=0
void ParseString(const std::string &)
StatusCode retrieve(const T *&ptr) const
Retrieve the default object into a const T*.
virtual bool WriteToFile(const std::string &)=0
The Athena Transient Store API.
AGDDVolume * GetVolume(std::string)
XMLHandlerStore & GetHandlerStore()
::StatusCode StatusCode
StatusCode definition for legacy code.
AGDD::ExpressionEvaluator & Evaluator()
const GeoVDetectorManager * getManager(const std::string &name) const
std::vector< std::string > m_filesToParse
AGDD::ExpressionEvaluator m_eval
void AddVolume(const std::string &volume)
virtual bool ParseStringAndNavigate(AGDDController &c, const std::string &)=0
void PrintAllSections() const
void AddFile(const std::string &fName)
AGDDPositioner * GetDaughter(int i)
bool WriteAGDDtoDBFile(const std::string &)
AGDDDetectorStore & GetDetectorStore()
void PrintSections() const
std::vector< std::string > m_structuresToBuild
AGDDBuilder * m_theBuilder
void SetParser(IAGDDParser *b)
AGDDBuilder * GetBuilder()
void SetBuilder(AGDDBuilder *b)
const std::string & GetName() const
IAGDDParser * GetParser()
AGDDColorStore & GetColorStore()
virtual bool ParseFileAndNavigate(AGDDController &c, const std::string &)=0
AGDDParameterStore & GetParameterStore()
AliasStore & GetAliasStore()
AGDDSectionStore & GetSectionStore()
void AddSection(const std::string §ion)
AGDDPositionerStore & GetPositionerStore()