ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Atlas
G4AtlasTools
src
SensitiveDetectorMasterTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef G4ATLASSERVICES_SENSITIVEDETECTORMASTERTOOL_H
6
#define G4ATLASSERVICES_SENSITIVEDETECTORMASTERTOOL_H
7
8
// Base classes
9
#include "
AthenaBaseComps/AthAlgTool.h
"
10
#include "
G4AtlasInterfaces/ISensitiveDetectorMasterTool.h
"
11
12
// Member
13
#include "GaudiKernel/ToolHandle.h"
// For tool handle array
14
#include "
G4AtlasInterfaces/ISensitiveDetector.h
"
// What we have a handle on
15
25
class
SensitiveDetectorMasterTool
:
public
extends<AthAlgTool, ISensitiveDetectorMasterTool>
26
{
27
public
:
29
SensitiveDetectorMasterTool
(
const
std::string&
type
,
const
std::string& name,
30
const
IInterface* parent);
32
virtual
~SensitiveDetectorMasterTool
() =
default
;
33
35
StatusCode
initialize
() override final;
36
38
StatusCode
initializeSDs
() override final;
40
StatusCode
BeginOfAthenaEvent
(
HitCollectionMap
&) override final;
42
StatusCode
EndOfAthenaEvent
(
HitCollectionMap
&) override final;
43
44
private
:
46
ToolHandleArray<
ISensitiveDetector
>
m_senDetTools
{
this
,
"SensitiveDetectors"
, {},
"Tool handle array of all sensitive detector tools"
};
47
};
48
49
#endif
AthAlgTool.h
ISensitiveDetectorMasterTool.h
ISensitiveDetector.h
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition
HitCollectionMap.h:23
ISensitiveDetector
Abstract interface to service for Geant4 sensitive detector classes.
Definition
ISensitiveDetector.h:21
SensitiveDetectorMasterTool::initialize
StatusCode initialize() override final
Retrieve the SD tools. SD creation is deferred until initializeSDs.
Definition
SensitiveDetectorMasterTool.cxx:15
SensitiveDetectorMasterTool::initializeSDs
StatusCode initializeSDs() override final
Calls initializeSD on each SD tool to create the SDs for the current worker thread.
Definition
SensitiveDetectorMasterTool.cxx:25
SensitiveDetectorMasterTool::EndOfAthenaEvent
StatusCode EndOfAthenaEvent(HitCollectionMap &) override final
Calls Gather on each SD tool.
Definition
SensitiveDetectorMasterTool.cxx:54
SensitiveDetectorMasterTool::~SensitiveDetectorMasterTool
virtual ~SensitiveDetectorMasterTool()=default
Empty virtual destructor.
SensitiveDetectorMasterTool::m_senDetTools
ToolHandleArray< ISensitiveDetector > m_senDetTools
Private array of tool handles pointing to all SD tools.
Definition
SensitiveDetectorMasterTool.h:46
SensitiveDetectorMasterTool::BeginOfAthenaEvent
StatusCode BeginOfAthenaEvent(HitCollectionMap &) override final
Calls SetupEvent on each SD tool.
Definition
SensitiveDetectorMasterTool.cxx:45
SensitiveDetectorMasterTool::SensitiveDetectorMasterTool
SensitiveDetectorMasterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
SensitiveDetectorMasterTool.cxx:8
type
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0