Class RMGOpticalDetector

Inheritance Relationships

Base Type

  • public G4VSensitiveDetector

Class Documentation

class RMGOpticalDetector : public G4VSensitiveDetector

Sensitive detector for optical photon absorption.

Emits one RMGOpticalDetectorHit per absorbed opticalphoton track and kills the track. Hits are persisted by the optical detector output scheme.

Public Functions

RMGOpticalDetector()
~RMGOpticalDetector() = default
RMGOpticalDetector(RMGOpticalDetector const&) = delete
RMGOpticalDetector &operator=(RMGOpticalDetector const&) = delete
RMGOpticalDetector(RMGOpticalDetector&&) = delete
RMGOpticalDetector &operator=(RMGOpticalDetector&&) = delete
void Initialize(G4HCofThisEvent *hit_coll) override

Allocate and register the hit collection for the current event.

bool ProcessHits(G4Step *step, G4TouchableHistory *history) override

Record an absorbed optical photon as a hit.

void EndOfEvent(G4HCofThisEvent *hit_coll) override