ATLAS Offline Software
TRTSensitiveDetectorTool.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 // Package headers
10 #include "TRTSensitiveDetector.h"
11 
12 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
13 
14 TRTSensitiveDetectorTool::TRTSensitiveDetectorTool(const std::string& type, const std::string& name, const IInterface* parent)
16 {
17 }
18 
19 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
20 
21 G4VSensitiveDetector* TRTSensitiveDetectorTool::makeSD() const
22 {
23 
24  ATH_MSG_DEBUG( "Initializing SD" );
25  // Create a fresh SD
26  //Need to set message levels here as the settings are needed in the constructor...
27  int verboseLevel = 3;
28  if(msgLvl(MSG::VERBOSE)) { verboseLevel = 10; }
29  else if(msgLvl(MSG::DEBUG)) { verboseLevel = 5; }
30  return new TRTSensitiveDetector(name(), m_outputCollectionNames[0], verboseLevel);
31 }
TRTSensitiveDetectorTool.h
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition: SensitiveDetectorBase.h:42
TRTSensitiveDetector
Definition: TRTSensitiveDetector.h:25
TRTSensitiveDetectorTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition: TRTSensitiveDetectorTool.cxx:21
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TRTSensitiveDetector.h
TRTSensitiveDetectorTool::TRTSensitiveDetectorTool
TRTSensitiveDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TRTSensitiveDetectorTool.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
DEBUG
#define DEBUG
Definition: page_access.h:11
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14