42 ATH_CHECK(detStore()->retrieve(theExpt,
"ATLAS"));
54 std::unique_ptr<TRTStrawStatusAccessor> strawStatusAccessor;
58 strawStatusAccessor = std::make_unique<TRTStrawStatusAccessor>();
60 if (strawStatusPath.empty()) {
62 return StatusCode::FAILURE;
65 strawStatusAccessor->fill(strawStatusPath);
68 GeoModelIO::ReadGeoModel* sqliteReader =
m_geoDbTagSvc->getSqliteReader();
75 ATH_MSG_INFO(
" Building TRT geometry from GeoModel factory TRTDetectorFactory_Lite" );
78 std::move(strawStatusAccessor),
85 theTRTFactory.
create(world);
91 ATH_MSG_INFO(
"Building TRT with Version Tag: "<< versionKey.
tag() <<
" at Node: " << versionKey.
node() );
94 std::string trtVersionTag = accessSvc->getChildTag(
"TRT", versionKey.
tag(), versionKey.
node());
99 if (trtVersionTag.empty()) {
100 ATH_MSG_INFO(
"No TRT Version. TRT will not be built." );
101 return StatusCode::SUCCESS;
108 if (switches->
getInt(
"DC1COMPATIBLE")) {
109 ATH_MSG_ERROR(
"DC1COMPATIBLE flag set in database, but DC1 is no longer supported in the code!!");
110 return StatusCode::FAILURE;
127 ATH_MSG_INFO(
"TRT Geometry Options:" << std::boolalpha );
136 ATH_MSG_INFO(
" Building TRT geometry from GeoModel factory TRTDetectorFactory_Full" );
140 std::move(strawStatusAccessor),
148 theTRTFactory.
create(world);
154 if (!
m_manager)
return StatusCode::FAILURE;
158 return StatusCode::SUCCESS;
168 return StatusCode::SUCCESS;
175 MsgStream log(msgSvc(), name());
177 msg(MSG::WARNING) <<
"Manager does not exist" <<
endmsg;
178 return StatusCode::FAILURE;
183 msg(MSG::DEBUG) <<
"Alignment disabled. No alignments applied" <<
endmsg;
184 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Class for storing/accessing trt endpoint corrections data.
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 *)
IRDBRecord is one record in the IRDBRecordset object.
virtual const std::string & getString(const std::string &fieldName) const =0
Get string field value.
virtual int getInt(const std::string &fieldName) const =0
Get int field value.
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
This class creates the TRT Geometry.
virtual void create(GeoPhysVol *world) override
virtual const InDetDD::TRT_DetectorManager * getDetectorManager() const override
virtual void create(GeoPhysVol *world) override
virtual const InDetDD::TRT_DetectorManager * getDetectorManager() const override