ATLAS Offline Software
Loading...
Searching...
No Matches
BLMSensorSDTool.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// BLM Sensitive Detector tool
7//
8//###############################################
9
10// Class header
11#include "BLMSensorSDTool.h"
12
13// Package headers
14#include "BLMSensorSD.h"
17
18
19BLMSensorSDTool::BLMSensorSDTool(const std::string& type, const std::string& name, const IInterface *parent)
20 : SensitiveDetectorBase(type,name,parent)
21{
22}
23
25{
27 return StatusCode::SUCCESS;
28}
29
30StatusCode BLMSensorSDTool::Gather(HitCollectionMap& hitCollections)
31{
33 return StatusCode::SUCCESS;
34}
35
36G4VSensitiveDetector* BLMSensorSDTool::makeSD() const
37{
38 ATH_MSG_DEBUG( "Initializing SD" );
39
40 // Create a fresh SD
41 return new BLMSensorSD(name(), m_outputCollectionNames[0]);
42}
#define ATH_MSG_DEBUG(x)
AtlasHitsVector< SiHit > SiHitCollection
G4VSensitiveDetector * makeSD() const override final
BLMSensorSDTool(const std::string &type, const std::string &name, const IInterface *parent)
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.