ATLAS Offline Software
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 
19 BLMSensorSDTool::BLMSensorSDTool(const std::string& type, const std::string& name, const IInterface *parent)
21 {
22 }
23 
25 {
27  return StatusCode::SUCCESS;
28 }
29 
31 {
33  return StatusCode::SUCCESS;
34 }
35 
36 G4VSensitiveDetector* 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 }
SensitiveDetectorBase::SetupEvent
virtual StatusCode SetupEvent() override
Beginning of an athena event.
Definition: SensitiveDetectorBase.h:70
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition: HitCollectionMap.h:21
HitCollectionMap.h
AtlasHitsVector< SiHit >
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition: SensitiveDetectorBase.h:50
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
BLMSensorSDTool.h
HitCollectionMap::Emplace
std::pair< StorageIterator, bool > Emplace(std::string const &hitCollectionName, CollectionArgs &&... args)
Insert a container in the map with in-place construction.
Definition: HitCollectionMap.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
BLMSensorSDTool::BLMSensorSDTool
BLMSensorSDTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: BLMSensorSDTool.cxx:19
SensitiveDetectorBase::m_outputCollectionNames
Gaudi::Property< std::vector< std::string > > m_outputCollectionNames
Names of all output collections written out by this SD.
Definition: SensitiveDetectorBase.h:98
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
BLMSensorSD.h
BLMSensorSD
Definition: BLMSensorSD.h:24
HitCollectionMap::Record
void Record(std::string const &sgKey, std::string const &hitCollectionName, EventContext const &ctx)
Record the hit collection hitCollectionName to the StoreGate sgKey.
Definition: HitCollectionMap.h:82
SensitiveDetectorBase::Gather
virtual StatusCode Gather() override
End of an athena event.
Definition: SensitiveDetectorBase.h:78
BLMSensorSDTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition: BLMSensorSDTool.cxx:36
SiHitCollection.h