ATLAS Offline Software
Loading...
Searching...
No Matches
TrackRecorderSDTool.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// Track Recorder Sensitive Detector Tool.
6//
7
8// class header
10
11// package includes
13
14// Athena includes
17
18//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
19
20TrackRecorderSDTool::TrackRecorderSDTool(const std::string& type, const std::string& name, const IInterface* parent)
21 : SensitiveDetectorBase( type , name , parent )
22 , m_SD_type(1)
23{
24 declareProperty("SD_type", m_SD_type);
25}
26
27//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
28
30{
33 return StatusCode::SUCCESS;
34}
35
37{
39 return StatusCode::SUCCESS;
40}
41
42//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43
44G4VSensitiveDetector* TrackRecorderSDTool::makeSD() const
45{
46 ATH_MSG_DEBUG( "Initializing SD" );
47 //SD name has to be the same as the collection name for now in order
48 //to fit with how the old configuration works...
50}
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
AtlasHitsVector< TrackRecord > TrackRecordCollection
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.
StatusCode Gather(HitCollectionMap &) override final
End of an athena event.
TrackRecorderSDTool(const std::string &type, const std::string &name, const IInterface *parent)
G4VSensitiveDetector * makeSD() const override final
StatusCode SetupEvent(HitCollectionMap &) override final
Beginning of an athena event.