From f32d4da9f8a963d1af473f8d7fe1ed6ebfcaf59a Mon Sep 17 00:00:00 2001 From: Remy Prechelt <prechelt@hawaii.edu> Date: Sun, 25 Oct 2020 00:49:56 -1000 Subject: [PATCH] Rebase changes onto master. --- Documentation/Examples/vertical_EAS.cc | 8 -------- Framework/Cascade/Cascade.h | 23 +++++------------------ 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/Documentation/Examples/vertical_EAS.cc b/Documentation/Examples/vertical_EAS.cc index 79060edb3..79f3d7ea0 100644 --- a/Documentation/Examples/vertical_EAS.cc +++ b/Documentation/Examples/vertical_EAS.cc @@ -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(); diff --git a/Framework/Cascade/Cascade.h b/Framework/Cascade/Cascade.h index aabf11d40..e1ba8fbd6 100644 --- a/Framework/Cascade/Cascade.h +++ b/Framework/Cascade/Cascade.h @@ -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 -- GitLab