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
11 #include "TRTSensitiveDetector.h"
13 
14 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
15 
16 TRTSensitiveDetectorTool::TRTSensitiveDetectorTool(const std::string& type, const std::string& name, const IInterface* parent)
18 {
19 }
20 
22 {
24  return StatusCode::SUCCESS;
25 }
26 
28 {
30  return StatusCode::SUCCESS;
31 }
32 
33 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34 
35 G4VSensitiveDetector* TRTSensitiveDetectorTool::makeSD() const
36 {
37 
38  ATH_MSG_DEBUG( "Initializing SD" );
39  // Create a fresh SD
40  //Need to set message levels here as the settings are needed in the constructor...
41  int verboseLevel = 3;
42  if(msgLvl(MSG::VERBOSE)) { verboseLevel = 10; }
43  else if(msgLvl(MSG::DEBUG)) { verboseLevel = 5; }
44  return new TRTSensitiveDetector(name(), m_outputCollectionNames[0], verboseLevel);
45 }
SensitiveDetectorBase::SetupEvent
virtual StatusCode SetupEvent() override
Beginning of an athena event.
Definition: SensitiveDetectorBase.h:70
TRTSensitiveDetectorTool.h
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition: HitCollectionMap.h:21
HitCollectionMap.h
AtlasHitsVector
Definition: AtlasHitsVector.h:32
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition: SensitiveDetectorBase.h:50
TRTSensitiveDetector
Definition: TRTSensitiveDetector.h:24
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
TRTSensitiveDetectorTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition: TRTSensitiveDetectorTool.cxx:35
HitCollectionMap::Emplace
std::pair< StorageIterator, bool > Emplace(std::string const &hitCollectionName, CollectionArgs &&... args)
Insert a container in the map with in-place construction.
Definition: HitCollectionMap.h:38
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
TRTSensitiveDetector.h
TRTSensitiveDetectorTool::TRTSensitiveDetectorTool
TRTSensitiveDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TRTSensitiveDetectorTool.cxx:16
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
HitCollectionMap::Record
void Record(std::string const &sgKey, std::string const &hitCollectionName, EventContext const &ctx)
Record the hit collection hitCollectionName to the StoreGate sgKey.
Definition: HitCollectionMap.h:82
TRTUncompressedHitCollection.h
DEBUG
#define DEBUG
Definition: page_access.h:11
SensitiveDetectorBase::Gather
virtual StatusCode Gather() override
End of an athena event.
Definition: SensitiveDetectorBase.h:78
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:13