|
|
|||
File indexing completed on 2026-11-07 09:43:35
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 accel/gen/CherenkovOffload.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include <G4Cerenkov.hh> 0010 0011 namespace celeritas 0012 { 0013 //---------------------------------------------------------------------------// 0014 /*! 0015 * A replacement for Geant4's \c G4Cerenkov process which constructs \c 0016 * GeneratorDistributionData from a \c PostStepDoIt call. 0017 * 0018 * This process should have stacking photons set to false so that photons are 0019 * not initialized in Geant4. 0020 */ 0021 class CherenkovOffload : public G4Cerenkov 0022 { 0023 public: 0024 // Prepare physics table for particle and enforce photon stacking 0025 void PreparePhysicsTable(G4ParticleDefinition const&) override; 0026 0027 // Create a generator distribution for the given track and step 0028 G4VParticleChange* PostStepDoIt(G4Track const& aTrack, 0029 G4Step const& aStep) override; 0030 }; 0031 0032 //---------------------------------------------------------------------------// 0033 } // 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 |
|