![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "GaudiKernel/IService.h"
14 #include "GaudiKernel/ISvcLocator.h"
15 #include "GaudiKernel/MsgStream.h"
54 ATH_CHECK(service (
"GeoModelSvc",geoDbTag));
60 ATH_CHECK(service(
"RDBAccessSvc",accessSvc));
62 std::string detectorKey = LArVersion.empty() ?
AtlasVersion : LArVersion;
63 std::string detectorNode = LArVersion.empty() ?
"ATLAS" :
"LAr";
64 log << MSG::INFO <<
"Keys for LAr are " << detectorKey <<
" " << detectorNode <<
endmsg;
67 log << MSG::INFO <<
"Creating the LAr " <<
endmsg;
68 log << MSG::INFO <<
"LAr Geometry Options:" <<
endmsg;
76 <<
"Could not find GeoModelExperiment ATLAS"
78 return (StatusCode::FAILURE);
83 std::string geometryLayout =
"Atlas";
84 std::string LArTag = accessSvc->
getChildTag(
"LAr",detectorKey,detectorNode);
104 GeoIntrusivePtr<GeoPhysVol>world=&*theExpt->
getPhysVol();
105 theLArFactory.create(world);
106 }
catch (
const std::bad_alloc&) {
108 return StatusCode::FAILURE;
111 theExpt->
addManager(theLArFactory.getDetectorManager());
113 theLArFactory.getDetectorManager()->getName()));
116 return StatusCode::SUCCESS;
122 return StatusCode::FAILURE;
def retrieve(aClass, aKey=None)
GeoPhysVol * getPhysVol()
Destructor.
Definition of the abstract IRDBAccessSvc interface.
virtual std::string getChildTag(const std::string &childNode, const std::string &parentTag, const std::string &parentNode, const std::string &connName="ATLASDD")=0
Gets the tag name for the node by giving its parent node tag.
msgSvc
Provide convenience handles for various services.
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
::StatusCode StatusCode
StatusCode definition for legacy code.
void addManager(const GeoVDetectorManager *)
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.