Skip to content

Commit

Permalink
Specify transforms to Isometries
Browse files Browse the repository at this point in the history
  • Loading branch information
pbutti committed Jan 29, 2025
1 parent e6050dc commit f5c5a5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Plugins/GeoModel/src/GeoModelDetectorObjectFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void Acts::GeoModelDetectorObjectFactory::convertFpv(

for (const auto &surface : surfaces) {
const Transform3 &transform =
fpv->getAbsoluteTransform() * surface.transform;
fpv->getAbsoluteTransform() * Eigen::Isometry3d(surface.transform);
convertSensitive(surface.volume, transform, sensitives);
}
cache.sensitiveSurfaces.insert(cache.sensitiveSurfaces.end(),
Expand Down
2 changes: 1 addition & 1 deletion Plugins/GeoModel/src/GeoModelToDetectorVolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Volume convertVolume(const Transform3& trf, const GeoShape& shape) {
dynamic_cast<const GeoShapeShift*>(&shape);
const GeoShape* shapeOp = shiftShape->getOp();
newTrf = trf * shiftShape->getX();
return convertVolume(newTrf, *shapeOp);
return convertVolume(Eigen::Isometry3d(newTrf), *shapeOp);
} else {
throw std::runtime_error("FATAL: Unsupported GeoModel shape: " +
shape.type());
Expand Down
2 changes: 1 addition & 1 deletion Plugins/GeoModel/src/detail/GeoBoxConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Acts::detail::GeoBoxConverter::operator()(const PVConstLink& geoPV,
// Create the surface transform
Transform3 transform = Transform3::Identity();
transform.translation() = unitLength * absTransform.translation();
RotationMatrix3 rotation = absTransform.rotation();
RotationMatrix3 rotation = absTransform.linear();
// Get the half lengths
std::vector<double> halfLengths = {geoBox.getXHalfLength(),
geoBox.getYHalfLength(),
Expand Down

0 comments on commit f5c5a5e

Please sign in to comment.