 |
ATLAS Offline Software
|
Go to the documentation of this file.
23 const std::string&
name,
42 std::string detectorTag{
""};
43 std::string detectorNode{
""};
44 GeoModelIO::ReadGeoModel* sqliteReader =
m_geoDbTagSvc->getSqliteReader();
48 ATH_MSG_INFO(
"Building SCT with Version Tag: " << versionKey.tag() <<
" at Node: " << versionKey.node());
50 detectorTag = versionKey.tag();
51 detectorNode = versionKey.node();
53 std::string sctVersionTag{accessSvc->getChildTag(
"SCT", detectorTag, detectorNode)};
56 if (sctVersionTag.empty()) {
58 return StatusCode::SUCCESS;
61 ATH_MSG_DEBUG(
"Keys for SCT Switches are " << detectorTag <<
" " << detectorNode);
64 std::string versionName;
65 IRDBRecordset_ptr switchSet{accessSvc->getRecordsetPtr(
"SctSwitches", detectorTag, detectorNode)};
67 if (not switches->isFieldNull(
"COSMICLAYOUT")) {
68 m_cosmic = switches->getInt(
"COSMICLAYOUT");
70 if (not switches->isFieldNull(
"VERSIONNAME")) {
71 versionName = switches->getString(
"VERSIONNAME");
74 if (versionName.empty() &&
m_cosmic) {
100 const SCT_ID* idHelper{
nullptr};
104 GeoPhysVol* world{theExpt->getPhysVol()};
110 ATH_MSG_INFO(
"Building the geometry from the SQLite file");
112 theSCT.create(world);
117 theSCT.create(world);
123 return StatusCode::FAILURE;
134 return StatusCode::SUCCESS;
145 return StatusCode::SUCCESS;
152 if (m_manager==
nullptr) {
154 return StatusCode::FAILURE;
156 if (m_alignable.value()) {
160 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
void setIdHelper(const SCT_ID *idHelper)
#define IOVSVC_CALLBACK_ARGS_P(I, K)
short hand for IOVSvc call back argument list, to be used when access to formal arguments is needed,...
void setGeoDbTagSvc(IGeoDbTagSvc *)
void setDetStore(StoreGateSvc *)
::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...
Default, invalid implementation of ClassID_traits.
void setRDBAccessSvc(IRDBAccessSvc *)
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition of the abstract IRDBRecord interface.
IRDBRecord is one record in the IRDBRecordset object.
void setGeometryDBSvc(IGeometryDBSvc *)
Definition of the abstract IRDBRecordset interface.