IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 77e941d6 authored by Felix Riehn's avatar Felix Riehn Committed by ralfulrich
Browse files

clang

parent 77404e91
No related branches found
No related tags found
1 merge request!303Resolve "advanced ParticleCut process"
...@@ -28,7 +28,7 @@ namespace corsika::proposal { ...@@ -28,7 +28,7 @@ namespace corsika::proposal {
auto p_cross = cross.find(code); auto p_cross = cross.find(code);
if (p_cross == cross.end()) if (p_cross == cross.end())
throw std::runtime_error("PROPOSAL could not find corresponding builder"); throw std::runtime_error("PROPOSAL could not find corresponding builder");
// interpolate the crosssection for given media and energy cut. These may // interpolate the crosssection for given media and energy cut. These may
// take some minutes if you have to build the tables and cannot read the // take some minutes if you have to build the tables and cannot read the
// from disk // from disk
...@@ -47,8 +47,7 @@ namespace corsika::proposal { ...@@ -47,8 +47,7 @@ namespace corsika::proposal {
} }
template <> template <>
ContinuousProcess::ContinuousProcess(setup::Environment const& _env ContinuousProcess::ContinuousProcess(setup::Environment const& _env)
)
: ProposalProcessBase(_env) {} : ProposalProcessBase(_env) {}
template <> template <>
......
...@@ -30,8 +30,7 @@ namespace corsika::proposal { ...@@ -30,8 +30,7 @@ namespace corsika::proposal {
return false; return false;
} }
ProposalProcessBase::ProposalProcessBase(setup::Environment const& _env ProposalProcessBase::ProposalProcessBase(setup::Environment const& _env)
)
: RNG_(RNGManager::getInstance().getRandomStream("proposal")) { : RNG_(RNGManager::getInstance().getRandomStream("proposal")) {
_env.getUniverse()->walk([&](auto& vtn) { _env.getUniverse()->walk([&](auto& vtn) {
if (vtn.hasModelProperties()) { if (vtn.hasModelProperties()) {
......
...@@ -48,7 +48,6 @@ namespace corsika::proposal { ...@@ -48,7 +48,6 @@ namespace corsika::proposal {
corsika::units::si::HEPEnergyType corsika::units::si::HEPEnergyType
emCut) { //!< Stochastic losses smaller than the given cut emCut) { //!< Stochastic losses smaller than the given cut
//!< will be handeled continuously. //!< will be handeled continuously.
using namespace corsika::units::si; using namespace corsika::units::si;
auto p_cut = auto p_cut =
std::make_shared<const PROPOSAL::EnergyCutSettings>(emCut / 1_MeV, 1, true); std::make_shared<const PROPOSAL::EnergyCutSettings>(emCut / 1_MeV, 1, true);
......
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