ATLAS Offline Software
Loading...
Searching...
No Matches
SctSensor_CTBTool.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// SCT Sensitive Detector Tool.
6//
7
8//class header
9#include "SctSensor_CTBTool.h"
10
11//package includes
12#include "SctSensor_CTB.h"
15
16// STL includes
17#include <exception>
18
19//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
20
21SctSensor_CTBTool::SctSensor_CTBTool(const std::string& type, const std::string& name, const IInterface* parent)
22 : SensitiveDetectorBase( type , name , parent )
23{
24}
25
27{
29 return StatusCode::SUCCESS;
30}
31
33{
35 return StatusCode::SUCCESS;
36}
37
38//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
39
40G4VSensitiveDetector* SctSensor_CTBTool::makeSD() const
41{
42 ATH_MSG_DEBUG( "Initializing SD" );
43
44 return new SctSensor_CTB(name(), m_outputCollectionNames[0]);
45}
46
#define ATH_MSG_DEBUG(x)
AtlasHitsVector< SiHit > SiHitCollection
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.
G4VSensitiveDetector * makeSD() const override final
SctSensor_CTBTool(const std::string &type, const std::string &name, const IInterface *parent)
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.