ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
15
16TRTSensitiveDetectorTool::TRTSensitiveDetectorTool(const std::string& type, const std::string& name, const IInterface* parent)
17 : SensitiveDetectorBase( type , name , parent )
18{
19}
20
22{
24 return StatusCode::SUCCESS;
25}
26
28{
30 return StatusCode::SUCCESS;
31}
32
33//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34
35G4VSensitiveDetector* 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}
#define ATH_MSG_DEBUG(x)
AtlasHitsVector< TRTUncompressedHit > TRTUncompressedHitCollection
Small wrapper around hit collection map to facilitate accessing the hit collection.
void Record(std::string const &sgKey, std::string const &hitCollectionName, EventContext const &ctx)
Record the hit collection hitCollectionName to the StoreGate sgKey.
std::pair< StorageIterator, bool > Emplace(std::string const &hitCollectionName, CollectionArgs &&... args)
Insert a container in the map with in-place construction.
virtual StatusCode Gather() override
End of an athena event.
virtual StatusCode SetupEvent() override
Beginning of an athena event.
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.
TRTSensitiveDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
G4VSensitiveDetector * makeSD() const override final