27 ACTS_DEBUG(
">>Obj: Writer for TrackingGeometry object called.");
31 write(context, *
world);
39 ACTS_DEBUG(
">>Obj: Writer for TrackingVolume object called.");
42 ACTS_VERBOSE(
">>Obj: Layers are present, process them.");
49 const std::string& volumeName = tVolume.
volumeName();
51 std::shared_ptr<ObjSurfaceWriter> surfaceWriter =
nullptr;
52 for (
auto writer : m_cfg.surfaceWriters) {
54 auto writerName = writer->name();
56 ACTS_VERBOSE(
">>Obj: The writer name is: " << writerName);
57 ACTS_VERBOSE(
">>Obj: The volume name is: " << volumeName);
58 if (volumeName.find(writerName) != std::string::npos) {
60 surfaceWriter = writer;
69 surfaceWriter->write(m_cfg.layerPrefix);
71 if (
layer->surfaceRepresentation().surfaceMaterial()) {
72 surfaceWriter->write(context,
layer->surfaceRepresentation());
75 if (
layer->approachDescriptor()) {
77 for (
auto&
cSurface :
layer->approachDescriptor()->containedSurfaces())
79 surfaceWriter->write(context, *
cSurface);
83 if (
layer->surfaceArray() && surfaceWriter) {
85 <<
layer->surfaceArray()->surfaces().size()
90 for (
auto&
surface :
layer->surfaceArray()->surfaces()) {
92 FW::ProcessCode::ABORT)
103 write(context, *
volume.get());