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 { ...@@ -31,11 +31,11 @@ namespace corsika::test {
/* /*
* the version without history * the version without history
*/ */
using Stack = detail::StackWithGeometry; using Stack = detail::StackWithWeight;
#endif #endif
// the correct secondary stack view // the correct secondary stack view
using StackView = typename Stack::stack_view_type; using StackView = typename Stack::stack_view_type;
} // namespace corsika::test } // namespace corsika::test
\ No newline at end of file
...@@ -48,20 +48,33 @@ namespace corsika { ...@@ -48,20 +48,33 @@ namespace corsika {
node::GeometryData<DummyEnvironment>, StackWithGeometryInterface, node::GeometryData<DummyEnvironment>, StackWithGeometryInterface,
DefaultSecondaryProducer>; 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: // Add [optional] history data to stack, too:
// combine dummy stack with geometry information for tracking // combine dummy stack with geometry information for tracking
template <typename TStackIter> template <typename TStackIter>
using StackWithHistoryInterface = using StackWithHistoryInterface =
CombinedParticleInterface<StackWithGeometry::pi_type, CombinedParticleInterface<StackWithWeight::pi_type,
history::HistoryEventDataInterface, TStackIter>; history::HistoryEventDataInterface, TStackIter>;
using StackWithHistory = using StackWithHistory =
CombinedStack<typename StackWithGeometry::stack_data_type, CombinedStack<typename StackWithWeight::stack_data_type,
history::HistoryEventData, StackWithHistoryInterface, history::HistoryEventData, StackWithHistoryInterface,
history::HistorySecondaryProducer>; history::HistorySecondaryProducer>;
} // namespace test::detail } // namespace test::detail
} // namespace corsika } // namespace corsika
\ No newline at end of file
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