IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 83cdff2b authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

started refactoring verticalEAS

parent f292f215
No related branches found
No related tags found
1 merge request!121Vertical EAS
...@@ -222,26 +222,25 @@ int main() { ...@@ -222,26 +222,25 @@ int main() {
// setup environment, geometry // setup environment, geometry
using EnvType = Environment<setup::IEnvironmentModel>; using EnvType = Environment<setup::IEnvironmentModel>;
EnvType env; EnvType env;
const CoordinateSystem& rootCS = env.GetCoordinateSystem();
auto& universe = *(env.GetUniverse()); auto& universe = *(env.GetUniverse());
auto theMedium = auto theMedium =
EnvType::CreateNode<Sphere>(Point{env.GetCoordinateSystem(), 0_m, 0_m, 0_m}, EnvType::CreateNode<Sphere>(Point{rootCS, 0_m, 0_m, 0_m},
1_km * std::numeric_limits<double>::infinity()); 1_km * std::numeric_limits<double>::infinity());
// fraction of oxygen // fraction of oxygen
const float fox = 0.20946; using FlatExp = environment::FlatExponential<environment::IMediumModel>;
using MyHomogeneousModel = HomogeneousMedium<environment::IMediumModel>; theMedium->SetModelProperties<FlatExp>(
theMedium->SetModelProperties<MyHomogeneousModel>( Point{rootCS, 0_m, 0_m, },
1_kg / (1_m * 1_m * 1_m),
environment::NuclearComposition( environment::NuclearComposition(
std::vector<particles::Code>{particles::Code::Nitrogen, std::vector<particles::Code>{particles::Code::Nitrogen,
particles::Code::Oxygen}, particles::Code::Oxygen,
std::vector<float>{(float)1. - fox, fox})); particles::Code::Argon},
std::vector<float>{0.7847,0.2105,0.005})); // values taken from AIRES manual
universe.AddChild(std::move(theMedium)); universe.AddChild(std::move(theMedium));
const CoordinateSystem& rootCS = env.GetCoordinateSystem();
// setup processes, decays and interactions // setup processes, decays and interactions
tracking_line::TrackingLine tracking; tracking_line::TrackingLine tracking;
......
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