Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-19 08:49:55

0001 //------------------------------- -*- C++ -*- -------------------------------//
0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 //---------------------------------------------------------------------------//
0005 //! \file celeritas/setup/StandaloneInput.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <memory>
0010 #include <vector>
0011 
0012 #include "celeritas/phys/Primary.hh"
0013 
0014 #include "Problem.hh"
0015 
0016 namespace celeritas
0017 {
0018 class CoreParams;
0019 
0020 namespace inp
0021 {
0022 struct StandaloneInput;
0023 }
0024 namespace setup
0025 {
0026 //---------------------------------------------------------------------------//
0027 //! Result from loaded standalone input to be used in front-end apps
0028 struct StandaloneLoaded
0029 {
0030     using VecPrimary = std::vector<Primary>;
0031     using VecEvent = std::vector<VecPrimary>;
0032 
0033     //! Problem setup
0034     ProblemLoaded problem;
0035     //! Events to be run
0036     VecEvent events;
0037 };
0038 
0039 //---------------------------------------------------------------------------//
0040 // Completely set up a Celeritas problem from a standalone input
0041 StandaloneLoaded standalone_input(inp::StandaloneInput& si);
0042 
0043 //---------------------------------------------------------------------------//
0044 }  // namespace setup
0045 }  // namespace celeritas