ATLAS Offline Software
RPCSensitiveDetectorCosmicsTool.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 #include <TString.h> // for Form
8 
9 RPCSensitiveDetectorCosmicsTool::RPCSensitiveDetectorCosmicsTool(const std::string& type, const std::string& name, const IInterface* parent)
11 {
12 }
13 
14 G4VSensitiveDetector* RPCSensitiveDetectorCosmicsTool::makeSD() const
15 {
16  ATH_MSG_DEBUG( "Initializing SD" );
17  StatusCode sc = m_idHelperSvc.retrieve();
18  if (sc.isFailure()) throw std::runtime_error(Form("File: %s, Line: %d\nRPCSensitiveDetectorCosmicsTool::makeSD() - could not retrieve MuonIdHelperSvc", __FILE__, __LINE__));
19  return new RPCSensitiveDetectorCosmics(name(), m_outputCollectionNames[0], m_idHelperSvc->rpcIdHelper().gasGapMax());
20 }
RPCSensitiveDetectorCosmicsTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition: RPCSensitiveDetectorCosmicsTool.cxx:14
RPCSensitiveDetectorCosmicsTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RPCSensitiveDetectorCosmicsTool.h:21
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition: SensitiveDetectorBase.h:42
RPCSensitiveDetectorCosmicsTool.h
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
RPCSensitiveDetectorCosmics
Definition: RPCSensitiveDetectorCosmics.h:96
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
RPCSensitiveDetectorCosmics.h
SensitiveDetectorBase::m_outputCollectionNames
Gaudi::Property< std::vector< std::string > > m_outputCollectionNames
Names of all output collections written out by this SD.
Definition: SensitiveDetectorBase.h:84
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
RPCSensitiveDetectorCosmicsTool::RPCSensitiveDetectorCosmicsTool
RPCSensitiveDetectorCosmicsTool(const std::string &type, const std::string &name, const IInterface *parent)
construction/destruction
Definition: RPCSensitiveDetectorCosmicsTool.cxx:9
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78