ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetGraphics
InDetAlignVisual
InDetSimpleVisual
InDetSimpleVisual
GetDetectorLocalFrames.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 "
EventPrimitives/EventPrimitives.h
"
18
#include "
GeoPrimitives/GeoPrimitives.h
"
19
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
20
#include "
StoreGate/ReadCondHandleKey.h
"
21
22
#include "CLHEP/Geometry/Transform3D.h"
23
24
#include <string>
25
#include <string_view>
26
#include <fstream>
27
28
namespace
InDetDD
{
29
class
TRT_DetectorManager
;
30
}
31
32
class
TRT_ID
;
33
class
Identifier
;
34
36
class
GetDetectorLocalFrames
:
public
AthAlgorithm
{
37
38
public
:
39
GetDetectorLocalFrames
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
40
StatusCode
initialize
();
41
StatusCode
execute
(
const
EventContext& ctx);
42
StatusCode
finalize
();
43
44
private
:
45
47
void
writePixelFames
();
48
void
writeSCTFrames
();
49
void
writeTRTFrames
();
50
void
writeTransForm
(
const
HepGeom::Transform3D& transform);
51
void
writeVector
(std::string_view
name
,
const
Amg::Vector3D
&
vector
);
52
54
std::string
m_outputFileName
;
55
std::ofstream
m_outputFile
;
56
58
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_pixelDetEleCollKey
{
this
,
"PixelDetEleCollKey"
,
"PixelDetectorElementCollection"
,
"Key of SiDetectorElementCollection for Pixel"
};
59
61
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_SCTDetEleCollKey
{
this
,
"SCTDetEleCollKey"
,
"SCT_DetectorElementCollection"
,
"Key of SiDetectorElementCollection for SCT"
};
62
64
int
m_trt_barrel_ec
{};
65
int
m_trt_layer_or_wheel
{};
66
int
m_trt_phi_module
{};
67
int
m_trt_straw_layer
{};
68
int
m_trt_straw
{};
69
71
const
TRT_ID
*
m_TRTHelper
{};
72
const
InDetDD::TRT_DetectorManager
*
m_TRTDetectorManager
{};
73
75
int
m_eventCount
{-1};
76
77
};
AthAlgorithm.h
EventPrimitives.h
GeoPrimitives.h
ReadCondHandleKey.h
SiDetectorElementCollection.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
GetDetectorLocalFrames::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Pixel Data.
Definition
GetDetectorLocalFrames.h:58
GetDetectorLocalFrames::m_TRTDetectorManager
const InDetDD::TRT_DetectorManager * m_TRTDetectorManager
Definition
GetDetectorLocalFrames.h:72
GetDetectorLocalFrames::m_TRTHelper
const TRT_ID * m_TRTHelper
Tools.
Definition
GetDetectorLocalFrames.h:71
GetDetectorLocalFrames::writeVector
void writeVector(std::string_view name, const Amg::Vector3D &vector)
Definition
GetDetectorLocalFrames.cxx:218
GetDetectorLocalFrames::m_trt_barrel_ec
int m_trt_barrel_ec
TRT Data.
Definition
GetDetectorLocalFrames.h:64
GetDetectorLocalFrames::writeSCTFrames
void writeSCTFrames()
Writing the SCT Positions.
Definition
GetDetectorLocalFrames.cxx:142
GetDetectorLocalFrames::execute
StatusCode execute(const EventContext &ctx)
execute
Definition
GetDetectorLocalFrames.cxx:85
GetDetectorLocalFrames::m_trt_straw_layer
int m_trt_straw_layer
Definition
GetDetectorLocalFrames.h:67
GetDetectorLocalFrames::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SCT Data.
Definition
GetDetectorLocalFrames.h:61
GetDetectorLocalFrames::m_trt_phi_module
int m_trt_phi_module
Definition
GetDetectorLocalFrames.h:66
GetDetectorLocalFrames.name
name
Definition
GetDetectorLocalFrames.py:11
GetDetectorLocalFrames::m_trt_straw
int m_trt_straw
Definition
GetDetectorLocalFrames.h:68
GetDetectorLocalFrames::writeTRTFrames
void writeTRTFrames()
Writing the Detailed (all straws) TRT Positions.
Definition
GetDetectorLocalFrames.cxx:161
GetDetectorLocalFrames::m_trt_layer_or_wheel
int m_trt_layer_or_wheel
Definition
GetDetectorLocalFrames.h:65
GetDetectorLocalFrames::m_eventCount
int m_eventCount
Counter.
Definition
GetDetectorLocalFrames.h:75
GetDetectorLocalFrames::finalize
StatusCode finalize()
Finalize.
Definition
GetDetectorLocalFrames.cxx:113
GetDetectorLocalFrames::m_outputFileName
std::string m_outputFileName
Name of the Output file.
Definition
GetDetectorLocalFrames.h:54
GetDetectorLocalFrames::writePixelFames
void writePixelFames()
Functions to write the data.
Definition
GetDetectorLocalFrames.cxx:123
GetDetectorLocalFrames::writeTransForm
void writeTransForm(const HepGeom::Transform3D &transform)
Definition
GetDetectorLocalFrames.cxx:225
GetDetectorLocalFrames::m_outputFile
std::ofstream m_outputFile
Definition
GetDetectorLocalFrames.h:55
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
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
TRT_ID
This is an Identifier helper class for the TRT subdetector.
Definition
TRT_ID.h:84
vector
Definition
MultiHisto.h:13
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
GetDetectorLocalFrames
Definition
GetDetectorLocalFrames.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