ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetGraphics
InDetAlignVisual
InDetSimpleVisual
InDetSimpleVisual
GetDetectorPositions.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
14
15
#include "
AthenaBaseComps/AthAlgorithm.h
"
16
17
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
18
#include "
StoreGate/ReadCondHandleKey.h
"
19
20
#include <string>
21
#include <fstream>
22
23
namespace
InDetDD
{
24
class
TRT_DetectorManager
;
25
}
26
27
class
TRT_ID
;
28
class
SCT_ID
;
29
class
PixelID
;
30
class
Identifier
;
31
33
class
GetDetectorPositions
:
public
AthAlgorithm
{
34
35
public
:
36
GetDetectorPositions
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
37
StatusCode
initialize
();
38
StatusCode
execute
(
const
EventContext& ctx);
39
StatusCode
finalize
();
40
41
private
:
42
44
void
writePixelPositions
();
45
void
writeSCTPositions
();
46
void
writeTRTPositions
();
47
48
void
writeSimpleTRTPositions
();
49
void
writeDetailedTRTPositions
(
bool
doDoubleSampling=
false
);
50
void
writeTRTPositions
(
Identifier
const
& trtId);
51
void
writeTwoTRTPositions
(
Identifier
const
& trtId);
52
54
unsigned
int
m_detailLevel
;
55
bool
m_doTRT
;
56
std::string
m_outputFileName
;
57
std::ofstream
m_outputFile
;
58
60
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_pixelDetEleCollKey
{
this
,
"PixelDetEleCollKey"
,
"PixelDetectorElementCollection"
,
"Key of SiDetectorElementCollection for Pixel"
};
61
63
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_SCTDetEleCollKey
{
this
,
"SCTDetEleCollKey"
,
"SCT_DetectorElementCollection"
,
"Key of SiDetectorElementCollection for SCT"
};
64
66
const
PixelID
*
m_PixelHelper
;
67
68
const
SCT_ID
*
m_SCTHelper
;
69
70
const
TRT_ID
*
m_TRTHelper
;
71
const
InDetDD::TRT_DetectorManager
*
m_TRTDetectorManager
;
72
74
int
m_eventCount
{-1};
75
76
};
AthAlgorithm.h
ReadCondHandleKey.h
SiDetectorElementCollection.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
GetDetectorPositions::writeTRTPositions
void writeTRTPositions()
Writing the TRT positions (depends on the level of detail).
Definition
GetDetectorPositions.cxx:225
GetDetectorPositions::m_outputFileName
std::string m_outputFileName
Definition
GetDetectorPositions.h:56
GetDetectorPositions::writeTwoTRTPositions
void writeTwoTRTPositions(Identifier const &trtId)
Write the TRT Positions, sampling each straw twice Allows the wire-by-wire alignment to be debugged.
Definition
GetDetectorPositions.cxx:332
GetDetectorPositions::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Pixel Data.
Definition
GetDetectorPositions.h:60
GetDetectorPositions::execute
StatusCode execute(const EventContext &ctx)
execute
Definition
GetDetectorPositions.cxx:100
GetDetectorPositions::m_outputFile
std::ofstream m_outputFile
Definition
GetDetectorPositions.h:57
GetDetectorPositions.name
name
Definition
GetDetectorPositions.py:11
GetDetectorPositions::m_PixelHelper
const PixelID * m_PixelHelper
Tools.
Definition
GetDetectorPositions.h:66
GetDetectorPositions::m_TRTHelper
const TRT_ID * m_TRTHelper
Definition
GetDetectorPositions.h:70
GetDetectorPositions::m_SCTHelper
const SCT_ID * m_SCTHelper
Definition
GetDetectorPositions.h:68
GetDetectorPositions::m_doTRT
bool m_doTRT
Definition
GetDetectorPositions.h:55
GetDetectorPositions::m_eventCount
int m_eventCount
Counter.
Definition
GetDetectorPositions.h:74
GetDetectorPositions::writePixelPositions
void writePixelPositions()
Functions to get the data.
Definition
GetDetectorPositions.cxx:139
GetDetectorPositions::writeSimpleTRTPositions
void writeSimpleTRTPositions()
Writing the Simple (not all straws) TRT Positions.
Definition
GetDetectorPositions.cxx:252
GetDetectorPositions::m_detailLevel
unsigned int m_detailLevel
Name of the Output file.
Definition
GetDetectorPositions.h:54
GetDetectorPositions::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SCT Data.
Definition
GetDetectorPositions.h:63
GetDetectorPositions::writeDetailedTRTPositions
void writeDetailedTRTPositions(bool doDoubleSampling=false)
Writing the Detailed (all straws) TRT Positions.
Definition
GetDetectorPositions.cxx:268
GetDetectorPositions::writeSCTPositions
void writeSCTPositions()
Writing the SCT Positions.
Definition
GetDetectorPositions.cxx:183
GetDetectorPositions::finalize
StatusCode finalize()
Finalize.
Definition
GetDetectorPositions.cxx:129
GetDetectorPositions::m_TRTDetectorManager
const InDetDD::TRT_DetectorManager * m_TRTDetectorManager
Definition
GetDetectorPositions.h:71
InDetDD::TRT_DetectorManager
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Definition
TRT_DetectorManager.h:63
PixelID
This is an Identifier helper class for the Pixel subdetector.
Definition
PixelID.h:69
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
TRT_ID
This is an Identifier helper class for the TRT subdetector.
Definition
TRT_ID.h:84
GetDetectorPositions
Definition
GetDetectorPositions.py:1
Identifier
Definition
IdentifierFieldParser.cxx:14
InDetDD
Message Stream Member.
Definition
FakeTrackBuilder.h:8
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0