|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
    4 #ifndef MUONSENSITIVEDETECTORSR4_MUONSENSITIVEDETECTOR_H 
    5 #define MUONSENSITIVEDETECTORSR4_MUONSENSITIVEDETECTOR_H 
   15 #include <G4VSensitiveDetector.hh> 
   30                                   const std::string& output_key,
 
   31                                   const std::string& trf_storeKey,
 
   37             virtual void Initialize(G4HCofThisEvent* HCE) 
override final;
 
   61                                            const G4Step* hitStep);
 
   67                                                     const G4Step* hitStep);
 
   77                                       const double globTime,
 
   78                                       const G4Step* hitStep);
 
  
MuonSensitiveDetector(const std::string &name, const std::string &output_key, const std::string &trf_storeKey, const MuonGMR4::MuonDetectorManager *detMgr)
Constructor.
SG::WriteHandle< xAOD::MuonSimHitContainer > m_writeHandle
const MuonGMR4::MuonDetectorManager * m_detMgr
Pointer to the underlying detector manager.
bool processStep(const G4Step *step) const
Checks whether the current step shall be processed at all.
xAOD::MuonSimHit * saveHit(const Identifier &hitId, const Amg::Vector3D &hitPos, const Amg::Vector3D &hitDir, const double globTime, const G4Step *hitStep)
Saves the current Step as a xAOD::MuonSimHit snapshot.
SG::ReadHandleKey< ActsTrk::DetectorAlignStore > m_trfCacheKey
ReadHandleKey to the DetectorAlignmentStore caching the relevant transformations needed in this event...
virtual void Initialize(G4HCofThisEvent *HCE) override final
Create the output container at the beginning of the event.
~MuonSensitiveDetector()=default
xAOD::MuonSimHit * propagateAndSaveStrip(const Identifier &hitId, const Amg::Transform3D &toGasGap, const G4Step *hitStep)
Handle class for recording to StoreGate.
Include the common definitions from the MuonReadoutGeometry.
ActsTrk::GeometryContext getGeoContext() const
Returns the current geometry context in the event.
Eigen::Affine3d Transform3D
Class to provide easy MsgStream access and capabilities.
Eigen::Matrix< double, 3, 1 > Vector3D
xAOD::MuonSimHit * lastSnapShot(const Identifier &gasGapId, const G4Step *hitStep)
Returns the last snap shot of the traversing particle.