ATLAS Offline Software
RPCSensitiveDetectorTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "RPCSensitiveDetector.h"
7 #include <TString.h> // for Form
8 
9 RPCSensitiveDetectorTool::RPCSensitiveDetectorTool(const std::string& type, const std::string& name, const IInterface* parent)
11 {
12 }
13 
14 G4VSensitiveDetector* RPCSensitiveDetectorTool::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 RPCSensitiveDetector(name(), m_outputCollectionNames[0], m_idHelperSvc->rpcIdHelper().gasGapMax());
20 }
RPCSensitiveDetector
Definition: RPCSensitiveDetector.h:96
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition: SensitiveDetectorBase.h:42
RPCSensitiveDetectorTool.h
RPCSensitiveDetector.h
RPCSensitiveDetectorTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition: RPCSensitiveDetectorTool.cxx:14
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
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
RPCSensitiveDetectorTool::RPCSensitiveDetectorTool
RPCSensitiveDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
construction/destruction
Definition: RPCSensitiveDetectorTool.cxx:9
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:221
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
RPCSensitiveDetectorTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RPCSensitiveDetectorTool.h:21