ATLAS Offline Software
TrackFastSimSDTool.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 
6 // Class header
7 #include "TrackFastSimSDTool.h"
8 
9 // Pacakge includes
11 
12 TrackFastSimSDTool::TrackFastSimSDTool(const std::string& type, const std::string& name, const IInterface* parent)
14 {
15  m_outputCollectionNames.setValue({"NeutronBG"});
16  m_noVolumes.setValue(true);
17 }
18 
19 G4VSensitiveDetector* TrackFastSimSDTool::makeSD() const
20 {
21  ATH_MSG_DEBUG( "Initializing SD" );
22 
23  // Create a fresh SD
24  return new TrackFastSimSD(name(), m_outputCollectionNames.value()[0]);
25 }
TrackFastSimSDTool::TrackFastSimSDTool
TrackFastSimSDTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrackFastSimSDTool.cxx:12
TrackFastSimSD
Definition: TrackFastSimSD.h:24
TrackFastSimSD.h
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition: SensitiveDetectorBase.h:42
TrackFastSimSDTool.h
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TrackFastSimSDTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition: TrackFastSimSDTool.cxx:19
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:195
SensitiveDetectorBase::m_noVolumes
Gaudi::Property< bool > m_noVolumes
This SensitiveDetector has no volumes associated with it.
Definition: SensitiveDetectorBase.h:87
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78