|
|
|||
File indexing completed on 2026-11-07 10:11: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 celeritas/g4/SupportedOpticalPhysics.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include <G4VPhysicsConstructor.hh> 0010 0011 #include "celeritas/ext/GeantPhysicsOptions.hh" 0012 0013 namespace celeritas 0014 { 0015 //---------------------------------------------------------------------------// 0016 /*! 0017 * Construct Celeritas-supported optical physics processes. 0018 */ 0019 class SupportedOpticalPhysics : public G4VPhysicsConstructor 0020 { 0021 public: 0022 //!@{ 0023 //! \name Type aliases 0024 using Options = GeantPhysicsOptions; 0025 //!@} 0026 0027 public: 0028 // Set up during construction 0029 explicit SupportedOpticalPhysics(Options const& options); 0030 0031 // Set up minimal EM particle list 0032 void ConstructParticle() override; 0033 // Set up process list 0034 void ConstructProcess() override; 0035 0036 protected: 0037 template<class F> 0038 void foreach_particle(F&& apply) const; 0039 0040 private: 0041 GeantOpticalPhysicsOptions options_; 0042 }; 0043 0044 //---------------------------------------------------------------------------// 0045 } // 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 |
|