IAP GITLAB

Skip to content
Snippets Groups Projects

Resolve "Implement thinning algorithms"

Merged Maximilian Reininghaus requested to merge 445-implement-thinning-algorithms into master
All threads resolved!
2 files
+ 40
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 29
0
 
/*
 
* (c) Copyright 2022 CORSIKA Project, corsika-project@lists.kit.edu
 
*
 
* This software is distributed under the terms of the GNU General Public
 
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
 
* the license.
 
*/
 
 
#pragma once
 
 
#include <corsika/framework/core/PhysicalUnits.hpp>
 
#include <corsika/framework/process/SecondariesProcess.hpp>
 
 
namespace corsika {
 
 
EMThinning::EMThinning(HEPEnergyType threshold, double maxWeight) : threshold_{threshold}, maxWeight_{maxWeight} {}
 
 
template <typename TStackView>
 
void EMThinning::doSecondaries(TStackView& view) {
 
if (view.size() != 2) return;
 
auto particle1 = view.begin();
 
auto particle2 = std::next(particle1);
 
 
if (.getCode())
 
corsika::HEPEnergyType const E0 =
 
 
}
 
 
}
Loading