ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTD_DetDescr
HGTD_ReadoutGeometry
HGTD_ReadoutGeometry
HGTD_DetectorManager.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef HGTD_READOUTGEOMETRY_HGTD_DETECTORMANAGER_H
6
#define HGTD_READOUTGEOMETRY_HGTD_DETECTORMANAGER_H
7
8
#include "
GeoPrimitives/GeoPrimitives.h
"
9
10
#include "GeoModelKernel/GeoVPhysVol.h"
11
#include "GeoModelKernel/GeoVDetectorManager.h"
12
13
#include "
HGTD_ReadoutGeometry/HGTD_DetectorElement.h
"
14
#include "
HGTD_ReadoutGeometry/HGTD_DetectorElementCollection.h
"
15
16
#include "
ReadoutGeometryBase/SiCommonItems.h
"
17
18
#include "
HGTD_Identifier/HGTD_ID.h
"
19
20
// Message Stream Member
21
#include "
AthenaBaseComps/AthMessaging.h
"
22
23
class
StoreGateSvc
;
24
32
33
class
HGTD_DetectorManager
:
public
GeoVDetectorManager,
public
AthMessaging
{
34
public
:
35
37
HGTD_DetectorManager
(
StoreGateSvc
* detStore);
38
40
~HGTD_DetectorManager
();
41
43
virtual
unsigned
int
getNumTreeTops
()
const override
;
44
virtual
PVConstLink
getTreeTop
(
unsigned
int
i)
const override
;
45
47
void
addTreeTop
(PVConstLink treeTop);
48
49
//
50
// Access Readout Elements
51
//
52
54
const
InDetDD::HGTD_DetectorElement
*
getDetectorElement
(
const
Identifier
&
id
)
const
;
55
57
const
InDetDD::HGTD_DetectorElement
*
getDetectorElement
(
const
IdentifierHash
&idHash)
const
;
58
60
const
InDetDD::HGTD_DetectorElement
*
getDetectorElement
(
int
endcap,
61
int
layer,
62
int
phi_module,
63
int
eta_module)
const
;
64
66
const
InDetDD::HGTD_DetectorElementCollection
*
getDetectorElementCollection
()
const
;
67
69
void
addDetectorElement
(
InDetDD::HGTD_DetectorElement
* element);
70
72
void
invalidateAll
();
73
75
void
updateAll
()
const
;
76
78
void
setCommonItems
(std::unique_ptr<const InDetDD::SiCommonItems>&& commonItems);
79
80
private
:
81
83
const
HGTD_DetectorManager
&
operator=
(
const
HGTD_DetectorManager
&right);
84
HGTD_DetectorManager
(
const
HGTD_DetectorManager
&right);
85
86
const
HGTD_ID
*
getIdHelper
()
const
;
87
88
// Private member data
89
std::vector<PVConstLink>
m_volume
;
90
// Note that the elements can be altered
91
InDetDD::HGTD_DetectorElementCollection
m_elementCollection
;
92
const
HGTD_ID
*
m_idHelper
;
93
94
std::unique_ptr<const InDetDD::SiCommonItems>
m_commonItems
;
95
96
};
97
98
#ifndef GAUDI_NEUTRAL
99
#include "
AthenaKernel/CLASS_DEF.h
"
100
CLASS_DEF
(
HGTD_DetectorManager
, 73488296, 1)
101
#endif
102
103
#endif
// HGTD_READOUTGEOMETRY_HGTD_DETECTORMANAGER_H
AthMessaging.h
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
GeoPrimitives.h
HGTD_DetectorElementCollection.h
HGTD_DetectorElement.h
HGTD_ID.h
SiCommonItems.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
HGTD_DetectorManager
The Detector manager has methods to retrieve the Identifier helper and methods to retrieve the detect...
Definition
HGTD_DetectorManager.h:33
HGTD_DetectorManager::m_idHelper
const HGTD_ID * m_idHelper
Definition
HGTD_DetectorManager.h:92
HGTD_DetectorManager::getNumTreeTops
virtual unsigned int getNumTreeTops() const override
Access to raw geometry:
Definition
HGTD_DetectorManager.cxx:36
HGTD_DetectorManager::addTreeTop
void addTreeTop(PVConstLink treeTop)
Add a Tree top:
Definition
HGTD_DetectorManager.cxx:46
HGTD_DetectorManager::HGTD_DetectorManager
HGTD_DetectorManager(const HGTD_DetectorManager &right)
HGTD_DetectorManager::getDetectorElement
const InDetDD::HGTD_DetectorElement * getDetectorElement(const Identifier &id) const
access to individual elements : via Identifier
Definition
HGTD_DetectorManager.cxx:50
HGTD_DetectorManager::getDetectorElementCollection
const InDetDD::HGTD_DetectorElementCollection * getDetectorElementCollection() const
Get the collection of element that is held.
Definition
HGTD_DetectorManager.cxx:72
HGTD_DetectorManager::invalidateAll
void invalidateAll()
Invalidate cache for all detector elements.
Definition
HGTD_DetectorManager.cxx:90
HGTD_DetectorManager::updateAll
void updateAll() const
Update all caches.
Definition
HGTD_DetectorManager.cxx:99
HGTD_DetectorManager::~HGTD_DetectorManager
~HGTD_DetectorManager()
Destructor.
HGTD_DetectorManager::m_volume
std::vector< PVConstLink > m_volume
Definition
HGTD_DetectorManager.h:89
HGTD_DetectorManager::HGTD_DetectorManager
HGTD_DetectorManager(StoreGateSvc *detStore)
Constructor.
Definition
HGTD_DetectorManager.cxx:14
HGTD_DetectorManager::m_commonItems
std::unique_ptr< const InDetDD::SiCommonItems > m_commonItems
Definition
HGTD_DetectorManager.h:94
HGTD_DetectorManager::addDetectorElement
void addDetectorElement(InDetDD::HGTD_DetectorElement *element)
Add elememts.
Definition
HGTD_DetectorManager.cxx:77
HGTD_DetectorManager::getIdHelper
const HGTD_ID * getIdHelper() const
Definition
HGTD_DetectorManager.cxx:85
HGTD_DetectorManager::operator=
const HGTD_DetectorManager & operator=(const HGTD_DetectorManager &right)
Prevent copy and assignment.
HGTD_DetectorManager::getTreeTop
virtual PVConstLink getTreeTop(unsigned int i) const override
Definition
HGTD_DetectorManager.cxx:41
HGTD_DetectorManager::setCommonItems
void setCommonItems(std::unique_ptr< const InDetDD::SiCommonItems > &&commonItems)
Set SiCommonItems.
Definition
HGTD_DetectorManager.cxx:108
HGTD_DetectorManager::m_elementCollection
InDetDD::HGTD_DetectorElementCollection m_elementCollection
Definition
HGTD_DetectorManager.h:91
HGTD_ID
This is an Identifier helper class for the HGTD subdetector.
Definition
HGTD_ID.h:47
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
InDetDD::HGTD_DetectorElement
Class to hold geometrical description of an HGTD detector element.
Definition
HGTD_DetectorElement.h:40
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:120
Identifier
Definition
IdentifierFieldParser.cxx:14
InDetDD::HGTD_DetectorElementCollection
DataVector< HGTD_DetectorElement > HGTD_DetectorElementCollection
Definition
HGTD_DetectorElementCollection.h:20
Generated on
for ATLAS Offline Software by
1.17.0