CORSIKA8  0.0.0
The framework to simulate particle cascades for astroparticle physics
SetupStack.hpp
1 /*
2  * (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 
9 #include <corsika/detail/setup/SetupStack.hpp>
10 
11 #include <array>
12 #include <memory>
13 
14 namespace corsika::setup {
15 
16  // ---------------------------------------
17  // this is the stack we use in C8 executables:
18 
19 #ifdef WITH_HISTORY
20 
21 #include <corsika/stack/history/HistoryStackExtension.hpp>
22 #include <corsika/stack/history/HistorySecondaryProducer.hpp>
23 
24  /*
25  * the version with history
26  */
27  using Stack = detail::StackWithHistory;
28 
29 #else // WITH_HISTORY
30 
31  /*
32  * the version without history
33  */
34  using Stack = detail::StackWithGeometry;
35 
36 #endif
37 
38  // the correct secondary stack view
39  using StackView = typename Stack::stack_view_type;
40 
41 } // namespace corsika::setup