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