Class RMGDetectorHit

Inheritance Relationships

Base Type

  • public G4VHit

Class Documentation

class RMGDetectorHit : public G4VHit

Class to store hits in the Germanium or Scintillator detectors, extends G4VHit.

Stores the information on a given hit in the detector:

  • detector ID,

  • particle type,

  • energy deposited,

  • position of the step (both pre and post-step),

  • time,

  • track id and parent track id,

  • distance of the step from the sensitive detector surface,

  • pointer to the G4PhysicalVolume the step took place in. This information can then be saved by the RMGGermaniumOutputScheme , or RMGScintillatorOutputScheme

Public Functions

RMGDetectorHit() = default
~RMGDetectorHit() = default
RMGDetectorHit(const RMGDetectorHit&) = default
RMGDetectorHit &operator=(RMGDetectorHit const&) = delete
RMGDetectorHit(RMGDetectorHit&&) = delete
RMGDetectorHit &operator=(RMGDetectorHit&&) = delete
bool operator==(const RMGDetectorHit&) const
inline void *operator new(size_t)
inline void operator delete(void*)
void Print() override
void Draw() override

Public Members

int detector_uid = -1

Remage detector unique identifier (uid) for the volume the hit took place in.

int particle_type = -1

PDG particle code for the track.

double energy_deposition = -1

Energy deposited in this step (Geant4 energy units).

double distance_to_surface_prestep = -1

Distance from the pre-step point to the closest surface of the sensitive volume.

double distance_to_surface_average = -1

Distance from the step-midpoint to the closest surface of the sensitive volume.

double distance_to_surface_poststep = -1

Distance from the post-step point to the closest surface of the sensitive volume.

G4ThreeVector global_position_poststep

Step post-point in world coordinates.

G4ThreeVector global_position_prestep

Step pre-point in world coordinates.

G4ThreeVector global_position_average

Step midpoint in world coordinates.

double global_time = -1

Global time at the pre-step point.

int track_id = -1

Geant4 track id of the step.

int parent_track_id = -1

Track id of the parent (0 for primaries).

G4VPhysicalVolume *physical_volume = nullptr

Physical volume the step took place in.

double velocity_pre = -1

Velocity at the pre-step point.

double velocity_post = -1

Velocity at the post-step point.

G4Colour fDrawColour = G4Colour(0, 0, 1)