IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 57c54a94 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Nikos Karastathis
Browse files

use stack with weight in tests

parent 965c8b36
No related branches found
No related tags found
1 merge request!466Resolve "Implement thinning algorithms"
......@@ -31,11 +31,11 @@ namespace corsika::test {
/*
* the version without history
*/
using Stack = detail::StackWithGeometry;
using Stack = detail::StackWithWeight;
#endif
// the correct secondary stack view
using StackView = typename Stack::stack_view_type;
} // namespace corsika::test
\ No newline at end of file
} // namespace corsika::test
......@@ -48,20 +48,33 @@ namespace corsika {
node::GeometryData<DummyEnvironment>, StackWithGeometryInterface,
DefaultSecondaryProducer>;
template <typename TStackIter>
using SetupWeightDataInterface =
typename weights::MakeWeightDataInterface<TStackIter>::type;
template <typename TStackIter>
using StackWithWeightInterface =
CombinedParticleInterface<StackWithGeometry::pi_type, SetupWeightDataInterface,
TStackIter>;
using StackWithWeight =
CombinedStack<typename StackWithGeometry::stack_data_type, weights::WeightData,
StackWithWeightInterface, DefaultSecondaryProducer>;
// ------------------------------------------
// Add [optional] history data to stack, too:
// combine dummy stack with geometry information for tracking
template <typename TStackIter>
using StackWithHistoryInterface =
CombinedParticleInterface<StackWithGeometry::pi_type,
CombinedParticleInterface<StackWithWeight::pi_type,
history::HistoryEventDataInterface, TStackIter>;
using StackWithHistory =
CombinedStack<typename StackWithGeometry::stack_data_type,
CombinedStack<typename StackWithWeight::stack_data_type,
history::HistoryEventData, StackWithHistoryInterface,
history::HistorySecondaryProducer>;
} // namespace test::detail
} // namespace corsika
\ No newline at end of file
} // namespace corsika
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