Skip to content
Snippets Groups Projects
Commit 3faf37cb authored by Paul Gessinger's avatar Paul Gessinger Committed by jhrdinka
Browse files

Make GenericDetector work with new SurfaceArray

parent 969d3d84
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@
namespace Acts {
class ILayerCreator;
class LayerCreator;
class Surface;
class DetecorElementBase;
}
......@@ -125,7 +125,7 @@ public:
std::vector<std::vector<double>> posnegModuleBacksideGap;
/// helper tools: layer creator
std::shared_ptr<const Acts::ILayerCreator> layerCreator = nullptr;
std::shared_ptr<const Acts::LayerCreator> layerCreator = nullptr;
/// helper tools: central passiva layer builder
std::shared_ptr<const Acts::ILayerBuilder> centralPassiveLayerBuilder
= nullptr;
......
......@@ -79,7 +79,7 @@ FWObj::ObjTrackingGeometryWriter::write(const Acts::TrackingVolume& tVolume)
// surfaces
surfaceWriter->write(m_cfg.sensitiveGroupPrefix);
// loop over the surface
for (auto surface : layer->surfaceArray()->arrayObjects()) {
for (auto surface : layer->surfaceArray()->surfaces()) {
if (surface
&& (surfaceWriter->write(*surface)) == FW::ProcessCode::ABORT)
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment