ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsMonitoring
src
ReadoutGeoDumpAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef ActsMonitoring_ReadoutGeoDumpAlg_H
5
#define ActsMonitoring_ReadoutGeoDumpAlg_H
6
7
#include <
AthenaBaseComps/AthHistogramAlgorithm.h
>
8
#include <
ActsGeometryInterfaces/ITrackingGeometrySvc.h
>
9
10
#include "Identifier/Identifier.h"
11
#include "
MuonTesterTree/MuonTesterTree.h
"
12
#include "
ActsEvent/ContextUtility.h
"
13
#include "
MuonTesterTree/CoordTransformBranch.h
"
14
15
#include "Acts/Utilities/Helpers.hpp"
16
#include "Acts/Surfaces/Surface.hpp"
17
18
namespace
ActsTrk
{
23
class
ReadoutGeoDumpAlg
:
public
AthHistogramAlgorithm
{
24
public
:
25
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
26
27
28
StatusCode
initialize
()
override
;
29
StatusCode
execute
(
const
EventContext& ctx)
override
;
30
StatusCode
finalize
()
override
;
31
private
:
33
MuonVal::MuonTesterTree
m_tree
{
"ReadoutGeometryTest"
,
"ActsReadoutGeoDump"
};
35
MuonVal::ScalarBranch<Identifier::value_type>
&
36
m_identifier
{
m_tree
.newScalar<Identifier::value_type>(
"identifier"
)};
38
MuonVal::ScalarBranch<std::uint8_t>
&
m_detType
{
m_tree
.newScalar<std::uint8_t>(
"detectorType"
)};
40
MuonVal::ScalarBranch<std::uint8_t>
&
m_boundsType
{
m_tree
.newScalar<std::uint8_t>(
"boundType"
)};
42
MuonVal::VectorBranch<double>
&
m_boundValues
{
m_tree
.newVector<
double
>(
"boundValues"
)};
44
MuonVal::ScalarBranch<double>
&
m_thickness
{
m_tree
.newScalar<
double
>(
"thickness"
)};
46
MuonVal::CoordTransformBranch
m_readoutTransform
{
m_tree
,
"GeoModelTransform"
};
47
49
ServiceHandle<ActsTrk::ITrackingGeometrySvc>
m_trackingGeometrySvc
{
this
,
"TrackingGeometrySvc"
,
"ActsTrackingGeometrySvc"
};
51
ActsTrk::ContextUtility
m_ctxProvider
{
this
};
52
54
Gaudi::Property<std::set<unsigned short>>
m_detTypes
{
this
,
"Detectors"
, {
55
Acts::toUnderlying(
DetectorType::Pixel
),
56
Acts::toUnderlying(
DetectorType::Sct
),
57
Acts::toUnderlying(
DetectorType::Hgtd
)}};
58
std::unordered_set<DetectorType>
m_selTypes
{};
59
61
bool
m_executed
{
false
};
62
63
};
64
};
65
66
#endif
ITrackingGeometrySvc.h
AthHistogramAlgorithm.h
ContextUtility.h
CoordTransformBranch.h
MuonTesterTree.h
ActsTrk::ContextUtility
Utility class to handle the three contexts neeeded in an ACTS reconstruction job 1) GeometryContext -...
Definition
ContextUtility.h:27
ActsTrk::ReadoutGeoDumpAlg
Algorithm that scans the tracking geometry and dumps the transforms and surface bounds of the individ...
Definition
ReadoutGeoDumpAlg.h:23
ActsTrk::ReadoutGeoDumpAlg::m_boundsType
MuonVal::ScalarBranch< std::uint8_t > & m_boundsType
What is the type of the associated Acts Bounds.
Definition
ReadoutGeoDumpAlg.h:40
ActsTrk::ReadoutGeoDumpAlg::m_identifier
MuonVal::ScalarBranch< Identifier::value_type > & m_identifier
the Ahtena identifier of the readout element
Definition
ReadoutGeoDumpAlg.h:36
ActsTrk::ReadoutGeoDumpAlg::m_thickness
MuonVal::ScalarBranch< double > & m_thickness
Thickness of the readout surface.
Definition
ReadoutGeoDumpAlg.h:44
ActsTrk::ReadoutGeoDumpAlg::m_executed
bool m_executed
Flag whether the algorithm is executed.
Definition
ReadoutGeoDumpAlg.h:61
ActsTrk::ReadoutGeoDumpAlg::execute
StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
ReadoutGeoDumpAlg.cxx:30
ActsTrk::ReadoutGeoDumpAlg::m_trackingGeometrySvc
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
Tool handle to the tracking geometry.
Definition
ReadoutGeoDumpAlg.h:49
ActsTrk::ReadoutGeoDumpAlg::m_tree
MuonVal::MuonTesterTree m_tree
Write a TTree for validation purposes.
Definition
ReadoutGeoDumpAlg.h:33
ActsTrk::ReadoutGeoDumpAlg::m_readoutTransform
MuonVal::CoordTransformBranch m_readoutTransform
Final transform of the readout element.
Definition
ReadoutGeoDumpAlg.h:46
ActsTrk::ReadoutGeoDumpAlg::finalize
StatusCode finalize() override
Definition
ReadoutGeoDumpAlg.cxx:26
ActsTrk::ReadoutGeoDumpAlg::m_detType
MuonVal::ScalarBranch< std::uint8_t > & m_detType
The DetectorType of the readout element.
Definition
ReadoutGeoDumpAlg.h:38
ActsTrk::ReadoutGeoDumpAlg::initialize
StatusCode initialize() override
Definition
ReadoutGeoDumpAlg.cxx:11
ActsTrk::ReadoutGeoDumpAlg::m_selTypes
std::unordered_set< DetectorType > m_selTypes
Definition
ReadoutGeoDumpAlg.h:58
ActsTrk::ReadoutGeoDumpAlg::m_boundValues
MuonVal::VectorBranch< double > & m_boundValues
The defining parameter of the surface bounds.
Definition
ReadoutGeoDumpAlg.h:42
ActsTrk::ReadoutGeoDumpAlg::m_ctxProvider
ActsTrk::ContextUtility m_ctxProvider
Context provider for geometry, magnetic field and calibration contexts.
Definition
ReadoutGeoDumpAlg.h:51
ActsTrk::ReadoutGeoDumpAlg::m_detTypes
Gaudi::Property< std::set< unsigned short > > m_detTypes
Configure which detector types shall be dumped.
Definition
ReadoutGeoDumpAlg.h:54
ActsTrk::ReadoutGeoDumpAlg::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonVal::CoordTransformBranch
Helper class to dump the Amg::Transformations into a single three vector branch The first entry is th...
Definition
CoordTransformBranch.h:15
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::ScalarBranch
Definition
ScalarBranch.h:12
MuonVal::VectorBranch
Definition
VectorBranch.h:14
ServiceHandle
Definition
ClusterMakerTool.h:36
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
ActsTrk::DetectorType::Pixel
@ Pixel
Inner detector legacy.
Definition
GeometryDefs.h:27
ActsTrk::DetectorType::Sct
@ Sct
Definition
GeometryDefs.h:28
ActsTrk::DetectorType::Hgtd
@ Hgtd
Definition
GeometryDefs.h:30
Generated on
for ATLAS Offline Software by
1.17.0