12 #include "GaudiKernel/IService.h"
13 #include "GaudiKernel/ISvcLocator.h"
21 #include "GeoModelKernel/GeoVolumeCursor.h"
24 const std::string&
name,
25 const IInterface*
parent ):
37 SmartIF<IGeoDbTagSvc> geoDbTag{Gaudi::svcLocator()->service(
"GeoDbTagSvc")};
40 std::string atlasVersion = geoDbTag->atlasVersion();
41 std::string versionNode =
"ATLAS";
46 GeoPhysVol* world=theExpt->getPhysVol();
51 GeoModelIO::ReadGeoModel* sqliteReader = geoDbTag->getSqliteReader();
54 theBeamPipeFactory.
create(world);
60 std::string beampipeVersionTag;
61 beampipeVersionTag = accessSvc->getChildTag(
"BeamPipe", atlasVersion,versionNode);
64 if (beampipeVersionTag.empty()) {
65 ATH_MSG_INFO(
"No BeamPipe Version. Beam pipe will not be built.");
70 theBeamPipeFactory.create(world);
72 m_manager = theBeamPipeFactory.getDetectorManager();
79 return StatusCode::SUCCESS;
82 return StatusCode::FAILURE;
92 return StatusCode::SUCCESS;