Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-07 09:43:36

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/TrackOffloadInterface.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "LocalOffloadInterface.hh"
0010 
0011 class G4Track;
0012 
0013 namespace celeritas
0014 {
0015 //---------------------------------------------------------------------------//
0016 /*!
0017  * Interface for offloading complete Geant4 tracks to Celeritas.
0018  *
0019  * It allows the Geant4 tracking manager to forward full
0020  * track to Celeritas, such as EM or optical track transport.
0021  */
0022 class TrackOffloadInterface : public LocalOffloadInterface
0023 {
0024   public:
0025     // Construct with defaults
0026     ~TrackOffloadInterface() override = default;
0027 
0028     // Push a full Geant4 track to Celeritas
0029     virtual void Push(G4Track&) = 0;
0030 };
0031 
0032 //---------------------------------------------------------------------------//
0033 }  // namespace celeritas