 |
ATLAS Offline Software
|
Go to the documentation of this file.
44 GeoPhysVol *world = theExpt->getPhysVol();
55 GeoModelIO::ReadGeoModel* sqliteReader =
m_geoDbTagSvc->getSqliteReader();
62 ATH_MSG_INFO(
" Building TRT geometry from GeoModel factory TRTDetectorFactory_Lite" );
72 theTRTFactory.
create(world);
78 ATH_MSG_INFO(
"Building TRT with Version Tag: "<< versionKey.
tag() <<
" at Node: " << versionKey.
node() );
81 std::string trtVersionTag = accessSvc->getChildTag(
"TRT", versionKey.
tag(), versionKey.
node());
86 if (trtVersionTag.empty()) {
88 return StatusCode::SUCCESS;
95 if (switches->
getInt(
"DC1COMPATIBLE")) {
96 ATH_MSG_ERROR(
"DC1COMPATIBLE flag set in database, but DC1 is no longer supported in the code!!");
97 return StatusCode::FAILURE;
114 ATH_MSG_INFO(
"TRT Geometry Options:" << std::boolalpha );
123 ATH_MSG_INFO(
" Building TRT geometry from GeoModel factory TRTDetectorFactory_Full" );
134 theTRTFactory.
create(world);
140 if (!
m_manager)
return StatusCode::FAILURE;
144 return StatusCode::SUCCESS;
163 if (m_useDynamicAlignFolders){
170 if (trttmp.isFailure()) {
171 msg(MSG::ERROR) <<
"Problem when register callback on global Container with folder " <<
folderName <<
endmsg;
173 sc = StatusCode::SUCCESS;
176 msg(MSG::WARNING) <<
"Unable to register callback on global Container with folder " <<
folderName <<
endmsg;
177 return StatusCode::FAILURE;
185 if(sctmp.isFailure()) {
186 msg(MSG::ERROR) <<
"Problem when register callback on AlignableTransformContainer with folder " <<
folderName <<
endmsg;
188 sc = StatusCode::SUCCESS;
192 msg(MSG::WARNING) <<
"Unable to register callback on AlignableTransformContainer with folder "
194 return StatusCode::FAILURE;
204 if (sctmp.isFailure()) {
205 msg(MSG::ERROR) <<
"Problem when register callback on AlignableTransformContainer with folder " <<
folderName <<
endmsg;
207 sc = StatusCode::SUCCESS;
210 msg(MSG::WARNING) <<
"Unable to register callback on AlignableTransformContainer with folder "
211 <<
folderName <<
", Alignments disabled! (Only if no Run2 schema is loaded)" <<
endmsg;
224 if (sctmp.isFailure()) {
225 msg(MSG::ERROR) <<
"Problem when register callback on StrawDxContainer with folder " <<
folderName <<
endmsg;
227 sc = StatusCode::SUCCESS;
250 return StatusCode::SUCCESS;
260 msg(MSG::WARNING) <<
"Manager does not exist" <<
endmsg;
261 return StatusCode::FAILURE;
267 return StatusCode::SUCCESS;
virtual int getInt(const std::string &fieldName) const =0
Get int field value.
def retrieve(aClass, aKey=None)
virtual const std::string & getString(const std::string &fieldName) const =0
Get string field value.
virtual void create(GeoPhysVol *world) override
const std::string & node() const
Return the version node.
#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 *)
virtual const InDetDD::TRT_DetectorManager * getDetectorManager() const override
virtual void create(GeoPhysVol *world) override
Definition of the abstract IRDBAccessSvc interface.
msgSvc
Provide convenience handles for various services.
::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.
const std::string & tag() const
Return version tag.
void setRDBAccessSvc(IRDBAccessSvc *)
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
an iterator over instances of a given type in StoreGateSvc. It d-casts and caches locally the pointed...
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Definition of the abstract IRDBRecord interface.
IRDBRecord is one record in the IRDBRecordset object.
void setGeometryDBSvc(IGeometryDBSvc *)
virtual const InDetDD::TRT_DetectorManager * getDetectorManager() const override
Definition of the abstract IRDBRecordset interface.
This class creates the TRT Geometry.
Class for storing/accessing trt endpoint corrections data.