8 #include "GaudiKernel/IService.h"
9 #include "GaudiKernel/ISvcLocator.h"
10 #include "GaudiKernel/MsgStream.h"
16 const std::string&
name,
32 SmartIF<IGeoDbTagSvc> geoDbTag{Gaudi::svcLocator()->service(
"GeoDbTagSvc")};
36 std::string LArVersion = geoDbTag->LAr_VersionOverride();
38 SmartIF<IRDBAccessSvc> accessSvc{Gaudi::svcLocator()->service(
"RDBAccessSvc")};
41 std::string detectorKey = LArVersion.empty() ?
AtlasVersion : LArVersion;
42 std::string detectorNode = LArVersion.empty() ?
"ATLAS" :
"LAr";
43 log << MSG::INFO <<
"Keys for LAr are " << detectorKey <<
" " << detectorNode <<
endmsg;
46 log << MSG::INFO <<
"Creating the LAr " <<
endmsg;
47 log << MSG::INFO <<
"LAr Geometry Options:" <<
endmsg;
53 log << MSG::ERROR <<
"Could not find GeoModelExperiment ATLAS" <<
endmsg;
54 return (StatusCode::FAILURE);
58 std::string geometryLayout =
"Atlas";
59 std::string LArTag = accessSvc->getChildTag(
"LAr",detectorKey,detectorNode);
68 GeoIntrusivePtr<GeoPhysVol>world=&*theExpt->
getPhysVol();
69 theLArFactory.
create(world);
73 log << MSG::ERROR <<
"Could not record" <<
endmsg;
74 return (StatusCode::FAILURE);
80 return StatusCode::SUCCESS;
84 return StatusCode::FAILURE;