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
double distance_to_surface_prestep = -1
double distance_to_surface_average = -1
double distance_to_surface_poststep = -1
G4ThreeVector global_position_poststep
G4ThreeVector global_position_prestep
G4ThreeVector global_position_average
double global_time = -1
int track_id = -1
int parent_track_id = -1
G4VPhysicalVolume *physical_volume = nullptr
double velocity_pre = -1
double velocity_post = -1
G4Colour fDrawColour = G4Colour(0, 0, 1)