ATLAS Offline Software
|
Implementations of the SensitiveDetector for the Muon technologies
G4VSensitiveDetector is an abstract base class which represents a detector. The principal mandate of a sensitive detector is the construction of hit objects using information from steps along a particle track.
The ProcessHits() method of G4VSensitiveDetector performs this task using G4Step objects as input. Objects of the G4TouchableHistory class may be used as an optional input.
The pointer to your sensitive detector must be set to one or more G4LogicalVolume objects to set the sensitivity of these volumes. The pointer should be also registered to G4SDManager.
G4VSensitiveDetector has three major virtual methods.
Readout geometry''. The second argument is NULL for the case
Readout geometry'' is not assigned to this sensitive detector. In this method, one or more G4VHit objects should be constructed if the current step is meaningful for your detector.EndOfEvent() This method is invoked at the end of each event. The argument of this method is the same object as the previous method. Hits collections occasionally created in your sensitive detector can be associated to the G4HCofThisEvent object.