![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/IService.h"
9 #include "GaudiKernel/ISvcLocator.h"
10 #include "GaudiKernel/MsgStream.h"
18 const std::string&
name,
37 ATH_CHECK(service (
"GeoDbTagSvc",geoDbTag));
43 ATH_CHECK(service(
"RDBAccessSvc",accessSvc));
45 std::string detectorKey = LArVersion.empty() ?
AtlasVersion : LArVersion;
46 std::string detectorNode = LArVersion.empty() ?
"ATLAS" :
"LAr";
48 log << MSG::INFO <<
"Keys for LAr are " << detectorKey <<
" " << detectorNode <<
endmsg;
50 log << MSG::INFO <<
"Creating the LAr " <<
endmsg;
51 log << MSG::INFO <<
"LAr Geometry Options:" <<
endmsg;
57 log << MSG::ERROR <<
"Could not find GeoModelExperiment ATLAS" <<
endmsg;
58 return (StatusCode::FAILURE);
62 std::string geometryLayout =
"Atlas";
63 std::string LArTag = accessSvc->
getChildTag(
"LAr",detectorKey,detectorNode);
76 GeoIntrusivePtr<GeoPhysVol>world=&*theExpt->
getPhysVol();
77 theLArFactory.
create(world);
81 log << MSG::ERROR <<
"Could not record" <<
endmsg;
82 return (StatusCode::FAILURE);
86 return StatusCode::SUCCESS;
89 return StatusCode::FAILURE;
def retrieve(aClass, aKey=None)
GeoPhysVol * getPhysVol()
Destructor.
virtual void create(GeoPhysVol *world)
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 setFCALVisLimit(int maxCell)
void setAxisVisState(bool axis)
void addManager(const GeoVDetectorManager *)
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.
virtual const LArDetectorManager * getDetectorManager() const