ATLAS Offline Software
MuonSpectrometer
MuonG4
MuonG4SD
src
MDTSensitiveDetectorTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MDTSensitiveDetectorTool.h
"
6
#include "
MDTSensitiveDetector.h
"
7
#include <TString.h>
// for Form
8
9
MDTSensitiveDetectorTool::MDTSensitiveDetectorTool
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
)
10
:
SensitiveDetectorBase
(
type
,
name
,
parent
)
11
{
12
}
13
14
G4VSensitiveDetector*
MDTSensitiveDetectorTool::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\nMDTSensitiveDetectorTool::makeSD() - could not retrieve MuonIdHelperSvc"
, __FILE__, __LINE__));
19
return
new
MDTSensitiveDetector
(
name
(),
m_outputCollectionNames
[0],
m_idHelperSvc
->mdtIdHelper().tubeMax());
20
}
MDTSensitiveDetector
Definition:
MDTSensitiveDetector.h:84
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition:
SensitiveDetectorBase.h:42
MDTSensitiveDetectorTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition:
MDTSensitiveDetectorTool.h:20
MDTSensitiveDetectorTool::MDTSensitiveDetectorTool
MDTSensitiveDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
MDTSensitiveDetectorTool.cxx:9
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
MDTSensitiveDetectorTool.h
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
MDTSensitiveDetectorTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition:
MDTSensitiveDetectorTool.cxx:14
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
MDTSensitiveDetector.h
Generated on Thu Nov 7 2024 21:20:46 for ATLAS Offline Software by
1.8.18