Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: material: double for pathCorrection #3920

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Core/include/Acts/Material/AccumulatedMaterialSlab.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AccumulatedMaterialSlab {
///
/// Vacuum steps with a non-zero thickness can be added to account for holes
/// in material structures.
void accumulate(MaterialSlab slabAlongTrack, float pathCorrection = 1);
void accumulate(MaterialSlab slabAlongTrack, double pathCorrection = 1.);

/// Use the accumulated material to update the material variance
///
Expand Down
4 changes: 2 additions & 2 deletions Core/src/Material/AccumulatedMaterialSlab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#include "Acts/Material/detail/AverageMaterials.hpp"

void Acts::AccumulatedMaterialSlab::accumulate(MaterialSlab slab,
float pathCorrection) {
double pathCorrection) {
AJPfleger marked this conversation as resolved.
Show resolved Hide resolved
// scale the recorded material to the equivalence contribution along the
// surface normal
slab.scaleThickness(1 / pathCorrection);
slab.scaleThickness(static_cast<float>(1. / pathCorrection));
m_trackAverage = detail::combineSlabs(m_trackAverage, slab);
}

Expand Down
Loading