|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/ServiceHandle.h"
17 #include "GaudiKernel/ToolHandle.h"
48 GeoPhysVol *world=theExpt->getPhysVol();
50 GeoModelIO::ReadGeoModel* sqliteReader =
m_geoDbTagSvc->getSqliteReader();
60 std::string versionTag = accessSvc->getChildTag(
"InDetServices", versionKey.
tag(), versionKey.
node());
64 if (versionTag.empty()) {
65 ATH_MSG_INFO(
"No InDetService Version. InDetService will not be built.");
66 ATH_MSG_DEBUG(
"InnerDetector Version Tag: " << versionKey.
tag() <<
" at Node: " << versionKey.
node());
67 return StatusCode::SUCCESS;
70 ATH_MSG_DEBUG(
"Keys for InDetServMat Switches are " << versionKey.
tag() <<
" " << versionKey.
node());
72 std::string versionName{
"CSC"};
75 ATH_MSG_INFO(
"Overriding version name: " << versionName);
77 ATH_MSG_INFO(
"Building Inner Detector Service Material. Version: " << versionName);
89 if (versionName ==
"SLHC") {
105 if (versionName ==
"CSC") {
113 return StatusCode::FAILURE;
123 return StatusCode::FAILURE;
126 return StatusCode::SUCCESS;
136 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const std::string & node() const
Return the version node.
void setGeoDbTagSvc(IGeoDbTagSvc *)
void setDetStore(StoreGateSvc *)
virtual const InDetDD::InDetServMatManager * getDetectorManager() const override
Definition of the abstract IRDBAccessSvc interface.
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
::StatusCode StatusCode
StatusCode definition for legacy code.
This is a helper class to query the version tags from GeoModelSvc and determine the appropriate tag a...
void setBuilderTool(IInDetServMatBuilderTool *builderTool)
Default, invalid implementation of ClassID_traits.
const std::string & tag() const
Return version tag.
void setRDBAccessSvc(IRDBAccessSvc *)
Helpers for checking error return status codes and reporting errors.
Definition of the abstract IRDBRecord interface.
#define ATH_MSG_WARNING(x)
void setGeometryDBSvc(IGeometryDBSvc *)
virtual const InDetDD::InDetServMatManager * getDetectorManager() const override
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition of the abstract IRDBRecordset interface.
virtual void create(GeoPhysVol *world) override
virtual void create(GeoPhysVol *world) override