ATLAS Offline Software
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 
18 BCMSensorSDTool::BCMSensorSDTool(const std::string& type, const std::string& name, const IInterface *parent) :
20 {
21 }
22 
24 {
26  return StatusCode::SUCCESS;
27 }
28 
30 {
32  return StatusCode::SUCCESS;
33 }
34 
35 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
36 
37 G4VSensitiveDetector* 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 
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
BCMSensorSDTool::BCMSensorSDTool
BCMSensorSDTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: BCMSensorSDTool.cxx:18
AtlasHitsVector< SiHit >
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition: SensitiveDetectorBase.h:50
BCMSensorSD.h
BCMSensorSDTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition: BCMSensorSDTool.cxx:37
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
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
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
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
BCMSensorSD
Definition: BCMSensorSD.h:24
BCMSensorSDTool.h
SensitiveDetectorBase::Gather
virtual StatusCode Gather() override
End of an athena event.
Definition: SensitiveDetectorBase.h:78
SiHitCollection.h