Celeritas 0.7.0-dev.328+develop.a407567
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
celeritas::GeantTrackReconstruction Class Reference

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
 
GeantTrackReconstructionoperator= (GeantTrackReconstruction const &)=delete
 
 GeantTrackReconstruction (GeantTrackReconstruction &&)=default
 
GeantTrackReconstructionoperator= (GeantTrackReconstruction &&)=default
 
void clear ()
 Clear G4Track reconstruction data.
 
PrimaryId acquire (G4Track &)
 Register mapping from Celeritas PrimaryID to Geant4 TrackID.
 
G4Trackview (ParticleId, PrimaryId) const
 Restore the G4Track from the reconstruction data.
 

Detailed Description

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.

Member Function Documentation

◆ acquire()

PrimaryId celeritas::GeantTrackReconstruction::acquire ( G4Track primary)

Register mapping from Celeritas PrimaryID to Geant4 TrackID.

This will take ownership of the G4VUserTrackInformation and unset it in the primary track.

◆ view()

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.


The documentation for this class was generated from the following files: