1 #ifndef SLIC_TRACKSUMMARY_HH_
2 #define SLIC_TRACKSUMMARY_HH_ 1
6 #include "IMPL/MCParticleImpl.h"
10 #include "G4ThreeVector.hh"
11 #include "G4Allocator.hh"
17 using IMPL::MCParticleImpl;
40 TrackSummary(
const G4Track* track, G4bool toBeSaved, G4bool backScattering =
false);
51 inline void *
operator new(size_t);
56 inline void operator delete(
void *);
62 void update(
const G4Track* track);
272 inline void* TrackSummary::operator
new(size_t) {
275 return aTrackSummary;
278 inline void TrackSummary::operator
delete(
void* aTrackSummary) {
Manages access to stored track information used for MCParticle output.
Container for all information from G4Track that may be persisted to MCParticle output collection.
G4double getCharge() const
G4int getSimulatorStatus() const
void update(const G4Track *track)
MCParticleImpl * getMCParticle()
TrackSummary(const G4Track *track, G4bool toBeSaved, G4bool backScattering=false)
void setMCParticle(MCParticleImpl *mcp)
G4bool _mcParticleIsUpToDate
G4ThreeVector getEndPoint() const
G4ThreeVector _momentumAtEndpoint
void setParentToBeSaved()
G4int getParentID() const
G4double getEnergy() const
std::bitset< 32 > _simstatus
G4bool getToBeSaved() const
const G4ThreeVector & getVertex() const
G4ThreeVector getMomentum() const
TrackSummary * getParent() const
static TrackManager * m_trackManager
TrackSummary * findParent() const
MCParticleImpl * _mcparticle
G4bool getBackScattering() const
G4double getTrackLength() const
G4int getHepEvtStatus() const
std::vector< TrackSummary * > TrackSummaryVector
G4Allocator< TrackSummary > TrackSummaryAllocator
std::map< G4int, TrackSummary * > TrackSummaryMap