ATLAS Offline Software
Loading...
Searching...
No Matches
AFP_SensitiveDetectorTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// Class header
8
9// For the SD itself
13
14//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
15
16AFP_SensitiveDetectorTool::AFP_SensitiveDetectorTool(const std::string& type, const std::string& name, const IInterface* parent)
17 : SensitiveDetectorBase(type,name,parent)
18{
19}
20
21//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
22
24{
25 ATH_MSG_VERBOSE( "AFP_SensitiveDetectorTool::SetupEvent()" );
30 return StatusCode::SUCCESS;
31}
32
33//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34
36{
37 ATH_MSG_VERBOSE( "AFP_SensitiveDetectorTool::Gather()" );
40 return StatusCode::SUCCESS;
41}
42
43//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44
45G4VSensitiveDetector* AFP_SensitiveDetectorTool::makeSD() const
46{
47 ATH_MSG_DEBUG( "Initializing SD" );
48 // Create a fresh SD
50}
AtlasHitsVector< AFP_SIDSimHit > AFP_SIDSimHitCollection
AtlasHitsVector< AFP_TDSimHit > AFP_TDSimHitCollection
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode SetupEvent(HitCollectionMap &) override final
Beginning of an athena event.
AFP_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
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.