diff --git a/examples/DDDB/include/Detector/DeIOV.h b/examples/DDDB/include/Detector/DeIOV.h index 26afa6d07261aabc5eb60d254536cfc6091e2ec9..8d649a81e083fdfd5041ed92b8f45ea762fd7c1a 100644 --- a/examples/DDDB/include/Detector/DeIOV.h +++ b/examples/DDDB/include/Detector/DeIOV.h @@ -132,6 +132,11 @@ namespace gaudi { { return detectorAlignment.worldToLocal(globalDirection); } XYZVector toGlobal( const XYZVector& localDirection ) const { return detectorAlignment.localToWorld(localDirection); } + + const TGeoHMatrix& toGlobalMatrix() const { + return detectorAlignment.worldTransformation(); + } + }; } // End namespace detail diff --git a/examples/DDDB/include/Detector/DeVPSensor.h b/examples/DDDB/include/Detector/DeVPSensor.h index 20a2170956da4e400d73ccde1c6efb6fdeedf3d4..02c10cd95dd8662c028c8f6918b982ddde060b9d 100644 --- a/examples/DDDB/include/Detector/DeVPSensor.h +++ b/examples/DDDB/include/Detector/DeVPSensor.h @@ -136,6 +136,7 @@ namespace gaudi { virtual void initialize() override; /// Printout method to stdout virtual void print(int indent, int flags) const override; + }; } // End namespace detail @@ -164,10 +165,11 @@ namespace gaudi { static_t& staticData() const { return access()->sensor_static; } //bool isLeft() const { return (ptr()->de_user & VP::RIGHT) == 0; } //bool isRight() const { return (ptr()->de_user & VP::RIGHT) != 0; } + }; /// For the full sensor object, we have to combine it with the geometry stuff: - typedef DetectorStaticElement<DeVPSensorElement> DeVPSensor; + typedef DetectorElement<DeVPSensorElement> DeVPSensor; } // End namespace gaudi #endif // DETECTOR_DEVPSENSORIOV_H diff --git a/examples/DDDB/include/Detector/DetectorElement.h b/examples/DDDB/include/Detector/DetectorElement.h index 85771e482bb199b5b808b42f2f51654faabee6ce..43aaa4ab667fc9b3a021deca432316ffb7ad038a 100644 --- a/examples/DDDB/include/Detector/DetectorElement.h +++ b/examples/DDDB/include/Detector/DetectorElement.h @@ -357,7 +357,7 @@ namespace gaudi { const TGeoHMatrix& toLocalMatrix() const { return iovData().toLocalMatrix; } const TGeoHMatrix& toGlobalMatrix() const - { return iovData().toGlobalMatrix; } + { return iovData().toGlobalMatrix(); } const TGeoHMatrix& toLocalMatrixNominal() const { return iovData().toLocalMatrixNominal; }