Class RMGOpticalDetectorHit

Inheritance Relationships

Base Type

  • public G4VHit

Class Documentation

class RMGOpticalDetectorHit : public G4VHit

Hit produced by RMGOpticalDetector when an optical photon is absorbed.

Holds the detector identifier, the photon wavelength and the global absorption time.

Public Functions

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

Color the detector volume if hit.

Public Members

G4TouchableHandle detector_touchable

Touchable of the absorbing volume, used by Draw.

int detector_uid = -1

Remage unique identifier of the absorbing detector.

double photon_wavelength = 0.

Absorbed-photon wavelength (Geant4 length units).

double global_time = -1

Global time at absorption (Geant4 time units).