ATLAS Offline Software
Loading...
Searching...
No Matches
MuonG4SD Namespace Reference

Detailed Description

Author
Daniela Rebuzzi danie.nosp@m.la.r.nosp@m.ebuzz.nosp@m.i@pv.nosp@m..infn.nosp@m..it
Ketevi A. Assamagan ketev.nosp@m.i@bn.nosp@m.l.gov
Andrea Di Simone Andre.nosp@m.a.Di.nosp@m.Simon.nosp@m.e@ce.nosp@m.rn.ch
Yoji Hasegawa haseg.nosp@m.awa@.nosp@m.azusa.nosp@m..shi.nosp@m.nshu-.nosp@m.u.ac.nosp@m..jp
Niels Van Eldik nveld.nosp@m.ik@n.nosp@m.ikhef.nosp@m..nl

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.

  • ProcessHits() This method is invoked by G4SteppingManager when a step is composed in the G4LogicalVolume which has the pointer to this sensitive detector. The first argument of this method is a G4Step object of the current step. The second argument is a G4TouchableHistory object for the 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.
  • Initialize() This method is invoked at the beginning of each event. The argument of this method is an object of the G4HCofThisEvent class. Hits collections, where hits produced in this particular event are stored, can be associated to the G4HCofThisEvent object in this method. The hits collections associated with the G4HCofThisEvent object during this method can be used for `‘during the event processing’' digitization.

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.

Extra Pages