Skip to content

Commit

Permalink
changes applied
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitra97 committed Apr 12, 2023
1 parent 544cfd7 commit 47ee121
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ class MockupSectorBuilder {

/// Draw the sector in an obj file
/// @param nameObjFile The name of the obj file where the sector will be saved
void drawSector(const std::shared_ptr<Acts::Experimental::DetectorVolume>
void drawSector(const std::shared_ptr<Acts::Experimental::DetectorVolume>&
detectorVolumeSector,
const std::string nameObjFile);
const std::string& nameObjFile);

private:
Config mCfg;
Expand Down
13 changes: 7 additions & 6 deletions Examples/Detectors/Geant4Detector/src/MockupSectorBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "ActsExamples/Geant4Detector/MockupSectorBuilder.hpp"

#include "Acts/Detector/DetectorVolume.hpp"
#include "Acts/Detector/PortalGenerators.hpp"
#include "Acts/Detector/PortalHelper.hpp"
#include "Acts/Geometry/CuboidVolumeBounds.hpp"
Expand Down Expand Up @@ -139,7 +140,7 @@ ActsExamples::MockupSectorBuilder::buildChamber(
Acts::Transform3(Acts::Translation3(chamber_position)),
std::move(detectorVolumeBounds), strawSurfaces,
std::vector<std::shared_ptr<Acts::Experimental::DetectorVolume>>{},
Acts::Experimental::allPortalsAndSurfaces());
Acts::Experimental::tryAllPortalsAndSurfaces());

return detectorVolume;
}
Expand Down Expand Up @@ -266,7 +267,7 @@ ActsExamples::MockupSectorBuilder::buildSector(
std::move(bounds), shiftedSurfaces,
std::vector<
std::shared_ptr<Acts::Experimental::DetectorVolume>>{},
Acts::Experimental::allPortalsAndSurfaces());
Acts::Experimental::tryAllPortalsAndSurfaces());

chambersOfSectors[itr].push_back(detectorVolumeSec);

Expand All @@ -283,7 +284,7 @@ ActsExamples::MockupSectorBuilder::buildSector(
"cylinder_volume_" + std::to_string(i), transform,
std::move(cylinderVolumesBounds[i]),
std::vector<std::shared_ptr<Acts::Surface>>{}, chambersOfSectors[i],
Acts::Experimental::allPortalsAndSurfaces()));
Acts::Experimental::tryAllPortalsAndSurfaces()));

} // end of cylinder volumes

Expand All @@ -299,15 +300,15 @@ ActsExamples::MockupSectorBuilder::buildSector(
std::move(cylinderVolumesBoundsOfMother),
std::vector<std::shared_ptr<Acts::Surface>>{},
detectorCylinderVolumesOfSector,
Acts::Experimental::allPortalsAndSurfaces());
Acts::Experimental::tryAllPortalsAndSurfaces());

return detectorVolume;
}

void ActsExamples::MockupSectorBuilder::drawSector(
const std::shared_ptr<Acts::Experimental::DetectorVolume>
const std::shared_ptr<Acts::Experimental::DetectorVolume>&
detectorVolumeSector,
const std::string nameObjFile) {
const std::string& nameObjFile) {
Acts::ViewConfig sConfig = Acts::s_viewSensitive;

Acts::ObjVisualization3D objSector;
Expand Down

0 comments on commit 47ee121

Please sign in to comment.