ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSensitiveDetectorTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8namespace MuonG4R4{
9
11 ATH_CHECK(SensitiveDetectorBase::initialize());
12 ATH_CHECK(detStore()->retrieve(m_detMgr));
13 return StatusCode::SUCCESS;
14 }
17
18 return StatusCode::SUCCESS;
19 }
21 return hitCollections.Record<MuonSimHitsVec>(m_outputCollectionNames[0]);
22 }
23}
#define ATH_CHECK
Evaluate an expression and check for errors.
Small wrapper around hit collection map to facilitate accessing the hit collection.
StatusCode Record(std::string const &sgKey, std::string const &hitCollectionName, EventContext const &ctx)
Record the hit collection hitCollectionName to the StoreGate sgKey.
std::pair< StorageIterator, bool > Emplace(std::string const &hitCollectionName, CollectionArgs &&... args)
Insert a container in the map with in-place construction.
virtual StatusCode initialize() override final
const MuonGMR4::MuonDetectorManager * m_detMgr
The muon detector manager to retrieve the sensitive elements.
virtual StatusCode Gather() override
End of an athena event.
virtual StatusCode SetupEvent() override
Beginning of an athena event.
Gaudi::Property< std::vector< std::string > > m_outputCollectionNames
Names of all output collections written out by this SD.
Include the common definitions from the MuonReadoutGeometry.
AthHitVec::AuxStoreHitCollection< xAOD::MuonSimHitContainer, xAOD::MuonSimHitAuxContainer > MuonSimHitsVec
Helper type which can be filled into the HitCollectionMap storing the event content in the event.