ATLAS Offline Software
MuonSpectrometer
MuonG4
MuonG4SD
src
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
5
#include "
MDTSensitiveDetectorCosmicsTool.h
"
6
#include "
MDTSensitiveDetectorCosmics.h
"
7
#include <TString.h>
// for Form
8
9
MDTSensitiveDetectorCosmicsTool::MDTSensitiveDetectorCosmicsTool
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
)
10
:
SensitiveDetectorBase
(
type
,
name
,
parent
)
11
{
12
}
13
14
G4VSensitiveDetector*
MDTSensitiveDetectorCosmicsTool::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\nMDTSensitiveDetectorCosmicsTool::makeSD() - could not retrieve MuonIdHelperSvc"
, __FILE__, __LINE__));
19
return
new
MDTSensitiveDetectorCosmics
(
name
(),
m_outputCollectionNames
[0],
m_idHelperSvc
->mdtIdHelper().tubeMax());
20
}
MDTSensitiveDetectorCosmicsTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition:
MDTSensitiveDetectorCosmicsTool.h:20
MDTSensitiveDetectorCosmics.h
MDTSensitiveDetectorCosmicsTool.h
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition:
SensitiveDetectorBase.h:42
AthenaPoolTestRead.sc
sc
Definition:
AthenaPoolTestRead.py:27
MDTSensitiveDetectorCosmicsTool::MDTSensitiveDetectorCosmicsTool
MDTSensitiveDetectorCosmicsTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
MDTSensitiveDetectorCosmicsTool.cxx:9
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
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
MDTSensitiveDetectorCosmics
Definition:
MDTSensitiveDetectorCosmics.h:89
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
MDTSensitiveDetectorCosmicsTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition:
MDTSensitiveDetectorCosmicsTool.cxx:14
Generated on Sun Dec 22 2024 21:14:17 for ATLAS Offline Software by
1.8.18