ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
9// Pacakge includes
11
12TrackFastSimSDTool::TrackFastSimSDTool(const std::string& type, const std::string& name, const IInterface* parent)
13 : SensitiveDetectorBase( type , name , parent )
14{
15 m_outputCollectionNames.setValue({"NeutronBG"});
16 m_noVolumes.setValue(true);
17}
18
19G4VSensitiveDetector* 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}
#define ATH_MSG_DEBUG(x)
Gaudi::Property< bool > m_noVolumes
This SensitiveDetector has no volumes associated with it.
Gaudi::Property< std::vector< std::string > > m_outputCollectionNames
Names of all output collections written out by this SD.
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
TrackFastSimSDTool(const std::string &type, const std::string &name, const IInterface *parent)
G4VSensitiveDetector * makeSD() const override final