10 #ifndef ActarSimSciGeantHit_h 11 #define ActarSimSciGeantHit_h 1 14 #include "G4THitsCollection.hh" 15 #include "G4Allocator.hh" 16 #include "G4ThreeVector.hh" 49 inline void*
operator new(size_t);
50 inline void operator delete(
void*);
58 void SetPos(G4ThreeVector xyz){ pos = xyz; }
68 void SetToF(G4double Time){ toF = Time; }
103 inline void* ActarSimSciGeantHit::operator
new(size_t) {
109 inline void ActarSimSciGeantHit::operator
delete(
void *aHit) {
G4ThreeVector localPrePos
Local (for the given detName and detID) coordinates of interaction (preStep)
void SetLocalPrePos(G4ThreeVector xyz)
G4double particleMass
Particle mass.
G4double GetParticleCharge()
G4ThreeVector prePos
PreStep position of the step.
G4ThreeVector GetLocalPos()
G4int operator==(const ActarSimSciGeantHit &) const
Operator ==.
void SetParticleCharge(G4double charge)
G4String detName
Name of the volume where the interaction takes place.
void Draw()
Draws the Hit. A clear red point on the Hit position.
G4double particleCharge
Particle charge.
G4THitsCollection< ActarSimSciGeantHit > ActarSimSciGeantHitsCollection
void SetPreDetName(G4String Name)
void SetToF(G4double Time)
void Print()
Prints full information about the calGeantHit.
G4Allocator< ActarSimSciGeantHit > ActarSimSciGeantHitAllocator
void SetParentID(G4int id)
G4int detID
ID (copy) of the detector where the interaction takes place.
void SetPrePos(G4ThreeVector xyz)
G4ThreeVector pos
PostStep position of the step.
void SetPos(G4ThreeVector xyz)
void SetTrackID(G4int track)
void SetParticleMass(G4double mass)
void SetDetName(G4String Name)
G4int parentID
Particle parent track ID.
void SetLocalPos(G4ThreeVector xyz)
G4double toF
ToF of the interaction (postStep)
G4ThreeVector localPos
Local (for the given detName and detID) coordinates of interaction (postStep)
G4String postDetName
Name of the volume at the previous step.
const ActarSimSciGeantHit & operator=(const ActarSimSciGeantHit &)
Operator =.
void SetParticleID(G4int ID)
G4int particleID
Particle trackID.
G4ThreeVector GetLocalPrePos()
ActarSimSciGeantHit()
Constructor. Makes nothing.
G4String GetPostDetName()
void SetEdep(G4double de)
G4ThreeVector GetPrePos()
G4String preDetName
Name of the volume at the following step.
G4double GetParticleMass()
G4int trackID
Particle trackID.
G4double edep
Energy deposited in the step.
void SetPostDetName(G4String Name)
~ActarSimSciGeantHit()
Destructor. Makes nothing.