ATLAS Offline Software
Loading...
Searching...
No Matches
ALFA_SensitiveDetectorTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// Class header
8
9// Package includes
11
15
16//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
17
18ALFA_SensitiveDetectorTool::ALFA_SensitiveDetectorTool(const std::string& type, const std::string& name, const IInterface* parent)
19 : SensitiveDetectorBase(type,name,parent)
20{
21
22}
23
24//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
25
27{
28 ATH_MSG_VERBOSE( "ALFA_SensitiveDetectorTool::SetupEvent()" );
33 return StatusCode::SUCCESS;
34}
35
36//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
37
39{
40 ATH_MSG_VERBOSE( "ALFA_SensitiveDetectorTool::Gather()" );
43 return StatusCode::SUCCESS;
44}
45
46//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
47
48G4VSensitiveDetector* ALFA_SensitiveDetectorTool::makeSD() const
49{
50 ATH_MSG_DEBUG( "Initializing SD" );
51 // Create a fresh SD
53}
AtlasHitsVector< ALFA_Hit > ALFA_HitCollection
AtlasHitsVector< ALFA_ODHit > ALFA_ODHitCollection
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
ALFA_SensitiveDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
StatusCode Gather(HitCollectionMap &) override final
End of an athena event.
G4VSensitiveDetector * makeSD() const override final
StatusCode SetupEvent(HitCollectionMap &) override final
Beginning of an athena event.
Small wrapper around hit collection map to facilitate accessing the hit collection.
StatusCode 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.
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.