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