Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-13 08:21:05

0001 #ifndef G4HepEmState_HH
0002 #define G4HepEmState_HH
0003 
0004 struct G4HepEmData;
0005 struct G4HepEmParameters;
0006 
0007 /**
0008  * @file    G4HepEmState.hh
0009  * @struct  G4HepEmState
0010  * Non-owning view of a `G4HepEmData` and corresponding `G4HepEmParameters` instance.
0011  *
0012  * `G4HepEmRun` often requires parameters and data to be passed to its functions. The
0013  * `G4HepEmState` struct provides a simple aggregate of pointers to each instance for
0014  * convenience in handling.
0015  *
0016  * The pointers are not owned so it is up to the client to allocate and free these,
0017  * or copy/delete from the device as appropriate.
0018 **/
0019 struct G4HepEmState {
0020   struct G4HepEmParameters* fParameters = nullptr; //< Pointer to `G4HepEmParameters` used by `G4HepEmData` (not owned)
0021   struct G4HepEmData* fData = nullptr; //< Pointer to `G4HepEmData` (not owned)
0022 };
0023 
0024 #endif  // G4HepEmState_HH