1 #ifndef EDepSim_Trajectory_hh_seen 2 #define EDepSim_Trajectory_hh_seen 8 #include <G4VTrajectory.hh> 9 #include <G4Allocator.hh> 11 #include <G4ParticleDefinition.hh> 19 namespace EDepSim {
class Trajectory;}
36 inline void*
operator new(size_t);
37 inline void operator delete(
void*);
39 return (
this==&right);
110 virtual G4VTrajectoryPoint*
GetPoint(G4int i)
const {
119 virtual const std::map<G4String,G4AttDef>*
GetAttDefs()
const;
138 #if defined G4TRACKING_ALLOC_EXPORT 139 extern G4DLLEXPORT G4Allocator<EDepSim::Trajectory>
aTrajAllocator;
141 extern G4DLLIMPORT G4Allocator<EDepSim::Trajectory>
aTrajAllocator;
144 inline void* EDepSim::Trajectory::operator
new(size_t) {
149 inline void EDepSim::Trajectory::operator
delete(
void* aTrajectory) {
G4double GetInitialKineticEnergy() const
G4double fSDEnergyDeposit
G4ParticleDefinition * GetParticleDefinition() const
Get the full definition of the particle.
TrajectoryPointContainer * fPositionRecord
G4int GetTrackID() const
Get the track id described by this trajectory.
G4double GetRange() const
Get the range of the particle that created this trajectory.
G4DLLIMPORT G4Allocator< EDepSim::Trajectory > aTrajAllocator
G4double GetSDEnergyDeposit() const
Get the amount of energy deposited into a sensitive detector.
virtual void AppendStep(const G4Step *aStep)
G4double GetCharge() const
Get the particle charge.
G4ThreeVector GetInitialMomentum() const
Get the initial momentum of the particle that created this trajectory.
G4double GetSDLength() const
Get the total length of this trajectory that is in a sensitive detector.
virtual void MergeTrajectory(G4VTrajectory *secondTrajectory)
G4ThreeVector fInitialMomentum
virtual G4VTrajectoryPoint * GetPoint(G4int i) const
Get a particular trajectory point.
void MarkTrajectory(bool save=true)
Mark this trajectory as one that should be saved in the output.
G4String GetParticleName() const
Get the particle name.
G4String GetProcessName() const
Get the interaction process that created the trajectory.
void AddSDLength(double len)
Add the length that has been deposited into a sensitive detector.
Construct a module from components.
bool SaveTrajectory() const
Check if this trajectory should be saved.
G4int GetPDGEncoding() const
Get the PDG MC particle number for this particle.
G4double GetSDTotalEnergyDeposit() const
G4double fSDTotalEnergyDeposit
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
std::vector< G4VTrajectoryPoint * > TrajectoryPointContainer
virtual std::vector< G4AttValue > * CreateAttValues() const
void AddSDEnergyDeposit(double energy)
Add energy deposited into a sensitive detector.
virtual int GetPointEntries() const
Get the number of trajectory points saved with this trajectory.
int operator==(const EDepSim::Trajectory &right) const
G4int GetParentID() const
void AddSDDaughterEnergyDeposit(double energy)
Add energy deposited into a sensitive detector by a daughter.