Skip to content
Snippets Groups Projects

fix Adaptor issues when HGTD is not present in DetectorDescription

Merged Nicholas Styles requested to merge nstyles/athena:21.9-fixGeoSiHit into 21.9
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -27,13 +27,15 @@ inline void GeoSiHit::init() {
_sID = 0;
if(detStore->retrieve(_pID,"PixelID").isFailure())
_pID = 0;
if(detStore->retrieve(_hID,"HGTD_ID").isFailure())
if(_hgtd){//only try HGTD_ID if a detector manager is present
if(detStore->retrieve(_hID,"HGTD_ID").isFailure())
_hID = 0;
}
}
inline GeoSiHit::GeoSiHit (const SiHit & h) {
_hit = &h;
if (!_sct || !_pix || !_hgtd) init();
if (!_sct && !_pix && !_hgtd) init();
}
inline HepGeom::Point3D<double> GeoSiHit::getGlobalPosition() const {
Loading