ATLAS Offline Software
Loading...
Searching...
No Matches
MDTSensitiveDetectorCosmicsTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
7
10#include <TString.h> // for Form
11
12MDTSensitiveDetectorCosmicsTool::MDTSensitiveDetectorCosmicsTool(const std::string& type, const std::string& name, const IInterface* parent)
13 : SensitiveDetectorBase( type , name , parent )
14{
15}
16
18{
20 return StatusCode::SUCCESS;
21}
22
24{
26 return StatusCode::SUCCESS;
27}
28
29G4VSensitiveDetector* MDTSensitiveDetectorCosmicsTool::makeSD() const
30{
31 ATH_MSG_DEBUG( "Initializing SD" );
32 StatusCode sc = m_idHelperSvc.retrieve();
33 if (sc.isFailure()) throw std::runtime_error(Form("File: %s, Line: %d\nMDTSensitiveDetectorCosmicsTool::makeSD() - could not retrieve MuonIdHelperSvc", __FILE__, __LINE__));
34 return new MDTSensitiveDetectorCosmics(name(), m_outputCollectionNames[0], m_idHelperSvc->mdtIdHelper().tubeMax());
35}
#define ATH_MSG_DEBUG(x)
static Double_t sc
AtlasHitsVector< MDTSimHit > MDTSimHitCollection
Small wrapper around hit collection map to facilitate accessing the hit collection.
void 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.
MDTSensitiveDetectorCosmicsTool(const std::string &type, const std::string &name, const IInterface *parent)
G4VSensitiveDetector * makeSD() const override final
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
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.
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.