|
|
|||
File indexing completed on 2026-11-07 10:20:32
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 larceler/detail/LarRunnerDiagnostics.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include <string> 0010 #include <unordered_map> 0011 #include <vector> 0012 0013 #include "celeritas/phys/GeneratorCounters.hh" 0014 0015 namespace celeritas 0016 { 0017 namespace detail 0018 { 0019 //---------------------------------------------------------------------------// 0020 /*! 0021 * Timing results for a single event. 0022 */ 0023 struct LarTiming 0024 { 0025 using MapStrDouble = std::unordered_map<std::string, double>; 0026 0027 double setup{}; //!< One-time initialization cost 0028 double run{}; //!< Total transport time (no initialization) 0029 double teardown{}; //!< Time to convert hits/btrs to lardataobj 0030 MapStrDouble actions{}; //!< Accumulated action times 0031 std::vector<double> steps{}; //!< Step times 0032 }; 0033 0034 //---------------------------------------------------------------------------// 0035 /*! 0036 * Results from transporting all tracks in an event. 0037 */ 0038 struct LarRunnerDiagnostics 0039 { 0040 LarTiming time{}; 0041 CounterAccumStats counters{}; 0042 }; 0043 0044 //---------------------------------------------------------------------------// 0045 } // namespace detail 0046 } // namespace celeritas
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|