IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d24174d6 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Maximilian Reininghaus
Browse files

clang-format

parent c30bff1c
No related branches found
No related tags found
1 merge request!441Resolve "gcc12 does not compile boost 1.76.0"
Pipeline #9860 skipped
...@@ -13,10 +13,11 @@ ...@@ -13,10 +13,11 @@
namespace corsika { namespace corsika {
EMThinning::EMThinning(HEPEnergyType threshold, double maxWeight, bool const eraseParticles) EMThinning::EMThinning(HEPEnergyType threshold, double maxWeight,
bool const eraseParticles)
: threshold_{threshold} : threshold_{threshold}
, maxWeight_{maxWeight} , maxWeight_{maxWeight}
, eraseParticles_ {eraseParticles} {} , eraseParticles_{eraseParticles} {}
template <typename TStackView> template <typename TStackView>
void EMThinning::doSecondaries(TStackView& view) { void EMThinning::doSecondaries(TStackView& view) {
...@@ -79,11 +80,11 @@ namespace corsika { ...@@ -79,11 +80,11 @@ namespace corsika {
// erase discared particles in case of multithinning // erase discared particles in case of multithinning
if (eraseParticles_) { if (eraseParticles_) {
for (auto& p : view) { for (auto& p : view) {
if (auto const w = p.getWeight(); w == 0) { p.erase(); } if (auto const w = p.getWeight(); w == 0) { p.erase(); }
} }
} else { } else {
return; return;
} }
} }
......
...@@ -28,7 +28,8 @@ namespace corsika { ...@@ -28,7 +28,8 @@ namespace corsika {
* @param threshold: thinning applied below this energy * @param threshold: thinning applied below this energy
* @param maxWeight: maximum allowed weight * @param maxWeight: maximum allowed weight
*/ */
EMThinning(HEPEnergyType threshold, double maxWeight, bool const eraseParticles=true); EMThinning(HEPEnergyType threshold, double maxWeight,
bool const eraseParticles = true);
/** /**
* Apply thinning to secondaries. Only EM primaries with two EM secondaries are * Apply thinning to secondaries. Only EM primaries with two EM secondaries are
......
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