IAP GITLAB

Skip to content
Snippets Groups Projects
Commit f32d4da9 authored by Remy Prechelt's avatar Remy Prechelt
Browse files

Rebase changes onto master.

parent 6bec6125
No related branches found
No related tags found
No related merge requests found
......@@ -217,14 +217,9 @@ int main(int argc, char** argv) {
process::observation_plane::ObservationPlane observationLevel(obsPlane, false,
"particles");
// outputs.Create<process::observation_plane::ObservationPlane>("particles", obsPlane, false, "particles");
// auto observationLevel = outputs.Get<process::observation_plane::ObservationPlane>("plane");
// register the observation plane with the manager
outputs.Register("obsplane", observationLevel);
process::UrQMD::UrQMD urqmd;
process::interaction_counter::InteractionCounter urqmdCounted{urqmd};
......@@ -263,9 +258,6 @@ int main(int argc, char** argv) {
// and end this run
outputs.EndOfRun();
eLoss.PrintProfile(); // print longitudinal profile
conexSource.SolveCE();
cut.ShowResults();
em_continuous.ShowResults();
observationLevel.ShowResults();
......
......@@ -59,8 +59,7 @@ namespace corsika::cascade {
*
*/
template <typename TTracking, typename TProcessList, typename TStack,
typename TOutput,
template <typename TTracking, typename TProcessList, typename TStack, typename TOutput,
/*
TStackView is needed as explicit template parameter because
of issue 161 and the
......@@ -79,6 +78,7 @@ namespace corsika::cascade {
TTracking& tracking_;
TProcessList& process_sequence_;
TStack& stack_;
TOutput& output_;
corsika::random::RNG& rng_ =
corsika::random::RNGManager::GetInstance().GetRandomStream("cascade");
unsigned int count_ = 0;
......@@ -98,13 +98,12 @@ namespace corsika::cascade {
, tracking_(tr)
, process_sequence_(pl)
, stack_(stack)
, output_(output)
, output_(output)
, count_(0) {
C8LOG_INFO(c8_ascii_);
if constexpr (TStackView::has_event) {
C8LOG_INFO(" - With full cascade HISTORY.");
}
}
/**
......@@ -115,7 +114,7 @@ namespace corsika::cascade {
setNodes();
// start a new event
fOutput.StartOfEvent();
output_.StartOfEvent();
while (!stack_.IsEmpty()) {
while (!stack_.IsEmpty()) {
......@@ -136,7 +135,7 @@ namespace corsika::cascade {
}
// and end the event
fOutput.EndOfEvent();
output_.EndOfEvent();
}
/**
......@@ -345,7 +344,6 @@ namespace corsika::cascade {
return returnCode;
}
<<<<<<< HEAD
/**
* set the nodes for all particles on the stack according to their numerical
* position
......@@ -377,16 +375,5 @@ Y8, Y8, ,8P 88 `8b `8b 88 88P Y8b d8"
`"Y8888Y"' `"Y8888Y"' 88 `8b "Y88888P" 88 88 Y8b d8' `8b "Y88888P"
)V0G0N";
};
=======
private:
corsika::environment::Environment<MediumInterface> const& fEnvironment;
TTracking& fTracking;
TProcessList& fProcessSequence;
TStack& fStack;
TOutput& fOutput;
corsika::random::RNG& fRNG =
corsika::random::RNGManager::GetInstance().GetRandomStream("cascade");
}; // namespace corsika::cascade
>>>>>>> d1b56063... Initial draft of output hierarchy and writers.
} // namespace corsika::cascade
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