42 ATH_CHECK(detStore()->retrieve(theExpt,
"ATLAS"));
50 std::unique_ptr<TRTStrawStatusAccessor> strawStatusAccessor;
54 strawStatusAccessor = std::make_unique<TRTStrawStatusAccessor>();
56 if (strawStatusPath.empty()) {
58 return StatusCode::FAILURE;
61 strawStatusAccessor->fill(strawStatusPath);
64 GeoModelIO::ReadGeoModel* sqliteReader =
m_geoDbTagSvc->getSqliteReader();
71 ATH_MSG_INFO(
" Building TRT geometry from GeoModel factory TRTDetectorFactory_Lite" );
74 std::move(strawStatusAccessor),
81 theTRTFactory.
create(world);
87 ATH_MSG_INFO(
"Building TRT with Version Tag: "<< versionKey.
tag() <<
" at Node: " << versionKey.
node() );
90 std::string trtVersionTag = accessSvc->getChildTag(
"TRT", versionKey.
tag(), versionKey.
node());
95 if (trtVersionTag.empty()) {
97 return StatusCode::SUCCESS;
104 if (switches->
getInt(
"DC1COMPATIBLE")) {
105 ATH_MSG_ERROR(
"DC1COMPATIBLE flag set in database, but DC1 is no longer supported in the code!!");
106 return StatusCode::FAILURE;
123 ATH_MSG_INFO(
"TRT Geometry Options:" << std::boolalpha );
132 ATH_MSG_INFO(
" Building TRT geometry from GeoModel factory TRTDetectorFactory_Full" );
136 std::move(strawStatusAccessor),
144 theTRTFactory.
create(world);
150 if (!
m_manager)
return StatusCode::FAILURE;
154 return StatusCode::SUCCESS;
164 return StatusCode::SUCCESS;
171 MsgStream log(msgSvc(), name());
173 msg(MSG::WARNING) <<
"Manager does not exist" <<
endmsg;
174 return StatusCode::FAILURE;
179 msg(MSG::DEBUG) <<
"Alignment disabled. No alignments applied" <<
endmsg;
180 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