ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetExample
InDetDetDescrExample
InDetDetDescrExample
ReadSiDetectorElements.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef InDetDetDescrExample_ReadSiDetectorElements_h
6
#define InDetDetDescrExample_ReadSiDetectorElements_h
7
8
#include "
AthenaBaseComps/AthAlgorithm.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
#include "GaudiKernel/ToolHandle.h"
11
#include "
ReadoutGeometryBase/SiCellId.h
"
12
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
13
#include "
GeoPrimitives/GeoPrimitives.h
"
14
#include "
StoreGate/ReadCondHandleKey.h
"
15
#include "
InDetConditionsSummaryService/ISiliconConditionsTool.h
"
16
#include "
InDetCondTools/ISiLorentzAngleTool.h
"
17
18
#include <vector>
19
20
class
Identifier
;
21
22
namespace
InDetDD
{
23
class
SiDetectorManager
;
24
class
SiDetectorElement
;
25
}
26
27
class
AtlasDetectorID
;
28
class
PixelID
;
29
class
SCT_ID
;
30
32
33
class
ReadSiDetectorElements
:
public
AthAlgorithm
{
34
public
:
35
ReadSiDetectorElements
(
const
std::string& name, ISvcLocator* pSvcLocator);
36
StatusCode
initialize
();
37
StatusCode
execute
(
const
EventContext& ctx);
38
StatusCode
finalize
();
39
40
void
testElement
(
const
Identifier
&
id
,
41
const
std::vector<InDetDD::SiCellId> & cellIdVec,
42
const
std::vector<Amg::Vector2D> & positionsVec,
43
const
InDetDD::SiDetectorElementCollection
* elements=
nullptr
)
const
;
44
std::string
printElementId
(
const
InDetDD::SiDetectorElement
* element)
const
;
45
void
printAllElements
(
const
bool
accessDuringInitialization);
46
void
printRandomAccess
(
const
bool
accessDuringInitialization);
47
void
printDifference
()
const
;
48
49
private
:
50
// Job properties
51
std::string
m_managerName
{
"Pixel"
};
52
bool
m_doLoop
{
true
};
53
bool
m_doInit
{};
54
bool
m_doExec
{};
55
bool
m_useConditionsTools
{};
56
ToolHandle<ISiliconConditionsTool>
m_siConditionsTool
{
this
,
"SiConditionsTool"
,
"SCT_SiliconConditionsTool"
,
"Silicon conditions tool"
};
57
ToolHandle<ISiLorentzAngleTool>
m_siLorentzAngleTool
{
this
,
"SiLorentzAngleTool"
,
"SiLorentzAngleTool"
,
"Silicon Lorentz anglet tool"
};
58
59
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_detEleCollKey
{
this
,
"DetEleCollKey"
,
"SCT_DetectorElementCollection"
,
"Key of SiDetectorElementCollection"
};
60
61
// Other
62
const
InDetDD::SiDetectorManager
*
m_manager
{};
63
const
AtlasDetectorID
*
m_idHelper
{};
64
const
PixelID
*
m_pixelIdHelper
{};
65
const
SCT_ID
*
m_sctIdHelper
{};
66
67
bool
m_first
{
true
};
68
bool
m_printProbePositions
{};
69
bool
m_printTransforms
{};
70
bool
m_printDirections
{};
71
72
};
73
74
#endif
// InDetDetDescrExample_ReadSiDetectorElements_h
AthAlgorithm.h
GeoPrimitives.h
ISiLorentzAngleTool.h
ISiliconConditionsTool.h
ReadCondHandleKey.h
SiCellId.h
SiDetectorElementCollection.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition
AtlasDetectorID.h:53
InDetDD::SiDetectorElementCollection
Class to hold the SiDetectorElement objects to be put in the detector store.
Definition
SiDetectorElementCollection.h:27
InDetDD::SiDetectorElement
Class to hold geometrical description of a silicon detector element.
Definition
SiDetectorElement.h:109
InDetDD::SiDetectorManager
Base class for Pixel and SCT Detector managers.
Definition
SiDetectorManager.h:60
PixelID
This is an Identifier helper class for the Pixel subdetector.
Definition
PixelID.h:69
ReadSiDetectorElements::m_doLoop
bool m_doLoop
Definition
ReadSiDetectorElements.h:52
ReadSiDetectorElements::m_printProbePositions
bool m_printProbePositions
Definition
ReadSiDetectorElements.h:68
ReadSiDetectorElements::m_sctIdHelper
const SCT_ID * m_sctIdHelper
Definition
ReadSiDetectorElements.h:65
ReadSiDetectorElements::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
ReadSiDetectorElements.cxx:96
ReadSiDetectorElements::ReadSiDetectorElements
ReadSiDetectorElements(const std::string &name, ISvcLocator *pSvcLocator)
Definition
ReadSiDetectorElements.cxx:32
ReadSiDetectorElements::m_doExec
bool m_doExec
Definition
ReadSiDetectorElements.h:54
ReadSiDetectorElements::m_manager
const InDetDD::SiDetectorManager * m_manager
Definition
ReadSiDetectorElements.h:62
ReadSiDetectorElements::m_doInit
bool m_doInit
Definition
ReadSiDetectorElements.h:53
ReadSiDetectorElements::m_siLorentzAngleTool
ToolHandle< ISiLorentzAngleTool > m_siLorentzAngleTool
Definition
ReadSiDetectorElements.h:57
ReadSiDetectorElements::m_printDirections
bool m_printDirections
Definition
ReadSiDetectorElements.h:70
ReadSiDetectorElements::m_siConditionsTool
ToolHandle< ISiliconConditionsTool > m_siConditionsTool
Definition
ReadSiDetectorElements.h:56
ReadSiDetectorElements::m_managerName
std::string m_managerName
Definition
ReadSiDetectorElements.h:51
ReadSiDetectorElements::printRandomAccess
void printRandomAccess(const bool accessDuringInitialization)
Definition
ReadSiDetectorElements.cxx:339
ReadSiDetectorElements::m_detEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_detEleCollKey
Definition
ReadSiDetectorElements.h:59
ReadSiDetectorElements::m_pixelIdHelper
const PixelID * m_pixelIdHelper
Definition
ReadSiDetectorElements.h:64
ReadSiDetectorElements::finalize
StatusCode finalize()
Definition
ReadSiDetectorElements.cxx:691
ReadSiDetectorElements::m_useConditionsTools
bool m_useConditionsTools
Definition
ReadSiDetectorElements.h:55
ReadSiDetectorElements::m_idHelper
const AtlasDetectorID * m_idHelper
Definition
ReadSiDetectorElements.h:63
ReadSiDetectorElements::testElement
void testElement(const Identifier &id, const std::vector< InDetDD::SiCellId > &cellIdVec, const std::vector< Amg::Vector2D > &positionsVec, const InDetDD::SiDetectorElementCollection *elements=nullptr) const
Definition
ReadSiDetectorElements.cxx:546
ReadSiDetectorElements::m_printTransforms
bool m_printTransforms
Definition
ReadSiDetectorElements.h:69
ReadSiDetectorElements::initialize
StatusCode initialize()
Definition
ReadSiDetectorElements.cxx:47
ReadSiDetectorElements::printElementId
std::string printElementId(const InDetDD::SiDetectorElement *element) const
Definition
ReadSiDetectorElements.cxx:679
ReadSiDetectorElements::printAllElements
void printAllElements(const bool accessDuringInitialization)
Definition
ReadSiDetectorElements.cxx:107
ReadSiDetectorElements::m_first
bool m_first
Definition
ReadSiDetectorElements.h:67
ReadSiDetectorElements::printDifference
void printDifference() const
Definition
ReadSiDetectorElements.cxx:512
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
Identifier
Definition
IdentifierFieldParser.cxx:14
InDetDD
Message Stream Member.
Definition
FakeTrackBuilder.h:8
Generated on
for ATLAS Offline Software by
1.17.0