ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
G4Utilities
TrackWriteFastSim
src
TrackRecorderSDTool.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
// Track Recorder Sensitive Detector Tool.
6
//
7
8
// class header
9
#include "
TrackRecorderSDTool.h
"
10
11
// package includes
12
#include "
TrackWriteFastSim/TrackFastSimSD.h
"
13
14
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
15
16
TrackRecorderSDTool::TrackRecorderSDTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent)
17
:
SensitiveDetectorBase
(
type
, name , parent )
18
,
m_SD_type
(1)
19
{
20
declareProperty(
"SD_type"
,
m_SD_type
);
21
}
22
23
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
24
25
G4VSensitiveDetector*
TrackRecorderSDTool::makeSD
()
const
26
{
27
ATH_MSG_DEBUG
(
"Initializing SD"
);
28
//SD name has to be the same as the collection name for now in order
29
//to fit with how the old configuration works...
30
return
new
TrackFastSimSD
(
m_outputCollectionNames
[0],
m_outputCollectionNames
[0],
m_SD_type
);
31
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
TrackFastSimSD.h
TrackRecorderSDTool.h
SensitiveDetectorBase::m_outputCollectionNames
Gaudi::Property< std::vector< std::string > > m_outputCollectionNames
Names of all output collections written out by this SD.
Definition
SensitiveDetectorBase.h:98
SensitiveDetectorBase::SensitiveDetectorBase
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
SensitiveDetectorBase.cxx:17
TrackFastSimSD
Definition
TrackFastSimSD.h:24
TrackRecorderSDTool::TrackRecorderSDTool
TrackRecorderSDTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TrackRecorderSDTool.cxx:16
TrackRecorderSDTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition
TrackRecorderSDTool.cxx:25
TrackRecorderSDTool::m_SD_type
int m_SD_type
Definition
TrackRecorderSDTool.h:35
type
Generated on
for ATLAS Offline Software by
1.14.0