ATLAS Offline Software
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 
21 SctSensor_CTBTool::SctSensor_CTBTool(const std::string& type, const std::string& name, const IInterface* parent)
23 {
24 }
25 
27 {
29  return StatusCode::SUCCESS;
30 }
31 
33 {
35  return StatusCode::SUCCESS;
36 }
37 
38 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
39 
40 G4VSensitiveDetector* SctSensor_CTBTool::makeSD() const
41 {
42  ATH_MSG_DEBUG( "Initializing SD" );
43 
44  return new SctSensor_CTB(name(), m_outputCollectionNames[0]);
45 }
46 
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
SctSensor_CTBTool::SctSensor_CTBTool
SctSensor_CTBTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: SctSensor_CTBTool.cxx:21
SctSensor_CTB.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
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
SctSensor_CTBTool.h
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
SensitiveDetectorBase::Gather
virtual StatusCode Gather() override
End of an athena event.
Definition: SensitiveDetectorBase.h:78
SctSensor_CTB
Definition: SctSensor_CTB.h:27
SctSensor_CTBTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition: SctSensor_CTBTool.cxx:40
SiHitCollection.h