16#include "GaudiKernel/ServiceHandle.h"
17#include "GaudiKernel/ToolHandle.h"
40 ATH_CHECK(detStore()->retrieve(theExpt,
"ATLAS"));
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;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Helpers for checking error return status codes and reporting errors.
Definition of the abstract IRDBAccessSvc interface.
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.
This is a helper class to query the version tags from GeoModelSvc and determine the appropriate tag a...
const std::string & tag() const
Return version tag.
const std::string & node() const
Return the version node.
GeoPhysVol * getPhysVol()
Destructor.
void addManager(const GeoVDetectorManager *)
virtual const InDetDD::InDetServMatManager * getDetectorManager() const override
virtual void create(GeoPhysVol *world) override
virtual void create(GeoPhysVol *world) override
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?)