|
Celeritas 0.7.0-dev.328+develop.a407567
|
Manage track information for reconstruction. More...
#include <GeantTrackReconstruction.hh>
Public Types | |
Type aliases | |
| using | VecParticle = std::vector< G4ParticleDefinition const * > |
| using | SPStep = std::shared_ptr< G4Step > |
Public Member Functions | |
| GeantTrackReconstruction (VecParticle const &, SPStep) | |
| Construct with particle definitions for track reconstruction. | |
| ~GeantTrackReconstruction () | |
| Unset the user information for all tracks. | |
| GeantTrackReconstruction (GeantTrackReconstruction const &)=delete | |
| GeantTrackReconstruction & | operator= (GeantTrackReconstruction const &)=delete |
| GeantTrackReconstruction (GeantTrackReconstruction &&)=default | |
| GeantTrackReconstruction & | operator= (GeantTrackReconstruction &&)=default |
| void | clear () |
| Clear G4Track reconstruction data. | |
| PrimaryId | acquire (G4Track &) |
| Register mapping from Celeritas PrimaryID to Geant4 TrackID. | |
| G4Track & | view (ParticleId, PrimaryId) const |
| Restore the G4Track from the reconstruction data. | |
Manage track information for reconstruction.
This class handles the bookkeeping of Geant4 track information needed to reconstruct tracks during hit processing. It maintains mappings between Celeritas PrimaryID and Geant4 track data.
Register mapping from Celeritas PrimaryID to Geant4 TrackID.
This will take ownership of the G4VUserTrackInformation and unset it in the primary track.
| G4Track & celeritas::GeantTrackReconstruction::view | ( | ParticleId | particle_id, |
| PrimaryId | primary_id | ||
| ) | const |
Restore the G4Track from the reconstruction data.
Returns the track for the given particle ID with restored primary track information if a valid PrimaryId is provided.