remage
Simulation framework for HPGe-based experiments
 
Loading...
Searching...
No Matches
RMGDetectorHit Class Reference

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

#include <RMGDetectorHit.hh>

Inheritance diagram for RMGDetectorHit:
Collaboration diagram for RMGDetectorHit:

Public Member Functions

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

Public Attributes

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).
 
G4VPhysicalVolumephysical_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)
 

Detailed Description

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

The documentation for this class was generated from the following files: