Skip to content

Commit

Permalink
complete renaming of volumeMaterialPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Sep 17, 2024
1 parent 0af2231 commit 848bbff
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Core/src/Geometry/TrackingVolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void TrackingVolume::closeGeometry(
thisVolume->motherVolume()->volumeMaterial());
if (protoMaterial == nullptr) {
thisVolume->assignVolumeMaterial(
thisVolume->motherVolume()->volumeMaterialSharedPtr());
thisVolume->motherVolume()->volumeMaterialPtr());
}
}

Expand Down Expand Up @@ -577,7 +577,7 @@ const IVolumeMaterial* TrackingVolume::volumeMaterial() const {
}

const std::shared_ptr<const IVolumeMaterial>&
TrackingVolume::volumeMaterialSharedPtr() const {
TrackingVolume::volumeMaterialPtr() const {
return m_volumeMaterial;
}

Expand Down
3 changes: 1 addition & 2 deletions Core/src/Material/SurfaceMaterialMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ void Acts::SurfaceMaterialMapper::collectMaterialVolumes(
<< "' for material surfaces.");
ACTS_VERBOSE("- Insert Volume ...");
if (tVolume.volumeMaterial() != nullptr) {
mState.volumeMaterial[tVolume.geometryId()] =
tVolume.volumeMaterialSharedPtr();
mState.volumeMaterial[tVolume.geometryId()] = tVolume.volumeMaterialPtr();
}

// Step down into the sub volume
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class MappingMaterialDecorator : public IMaterialDecorator {
}
if (tVolume->volumeMaterial() != nullptr) {
m_volumeMaterialMap.insert(
{tVolume->geometryId(), tVolume->volumeMaterialSharedPtr()});
{tVolume->geometryId(), tVolume->volumeMaterialPtr()});
}
// there are confined volumes
if (tVolume->confinedVolumes() != nullptr) {
Expand Down
4 changes: 2 additions & 2 deletions Examples/Io/Root/src/RootMaterialWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ void ActsExamples::RootMaterialWriter::collectMaterial(
const Acts::TrackingVolume& tVolume,
Acts::DetectorMaterialMaps& detMatMap) {
// If the volume has volume material, write that
if (tVolume.volumeMaterialSharedPtr() != nullptr && m_cfg.processVolumes) {
detMatMap.second[tVolume.geometryId()] = tVolume.volumeMaterialSharedPtr();
if (tVolume.volumeMaterialPtr() != nullptr && m_cfg.processVolumes) {
detMatMap.second[tVolume.geometryId()] = tVolume.volumeMaterialPtr();
}

// If confined layers exist, loop over them and collect the layer material
Expand Down
4 changes: 2 additions & 2 deletions Plugins/Json/src/MaterialMapJsonConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ Acts::SurfaceAndMaterialWithContext defaultSurfaceMaterial(
Acts::TrackingVolumeAndMaterial defaultVolumeMaterial(
const Acts::TrackingVolume* volume) {
Acts::BinUtility bUtility;
if (volume->volumeMaterialSharedPtr() != nullptr) {
return {volume, volume->volumeMaterialSharedPtr()};
if (volume->volumeMaterialPtr() != nullptr) {
return {volume, volume->volumeMaterialPtr()};
}
// Check which type of bound is associated to the volume
auto cyBounds = dynamic_cast<const Acts::CylinderVolumeBounds*>(
Expand Down

0 comments on commit 848bbff

Please sign in to comment.