ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
10#include "Identifier/Identifier.h"
14
15#include "Acts/Utilities/Helpers.hpp"
16#include "Acts/Surfaces/Surface.hpp"
17
18namespace ActsTrk {
24 public:
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"};
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")};
47
49 ServiceHandle<ActsTrk::ITrackingGeometrySvc> m_trackingGeometrySvc{this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"};
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
Utility class to handle the three contexts neeeded in an ACTS reconstruction job 1) GeometryContext -...
Algorithm that scans the tracking geometry and dumps the transforms and surface bounds of the individ...
MuonVal::ScalarBranch< std::uint8_t > & m_boundsType
What is the type of the associated Acts Bounds.
MuonVal::ScalarBranch< Identifier::value_type > & m_identifier
the Ahtena identifier of the readout element
MuonVal::ScalarBranch< double > & m_thickness
Thickness of the readout surface.
bool m_executed
Flag whether the algorithm is executed.
StatusCode execute(const EventContext &ctx) override
Execute method.
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
Tool handle to the tracking geometry.
MuonVal::MuonTesterTree m_tree
Write a TTree for validation purposes.
MuonVal::CoordTransformBranch m_readoutTransform
Final transform of the readout element.
StatusCode finalize() override
MuonVal::ScalarBranch< std::uint8_t > & m_detType
The DetectorType of the readout element.
StatusCode initialize() override
std::unordered_set< DetectorType > m_selTypes
MuonVal::VectorBranch< double > & m_boundValues
The defining parameter of the surface bounds.
ActsTrk::ContextUtility m_ctxProvider
Context provider for geometry, magnetic field and calibration contexts.
Gaudi::Property< std::set< unsigned short > > m_detTypes
Configure which detector types shall be dumped.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper class to dump the Amg::Transformations into a single three vector branch The first entry is th...
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
@ Pixel
Inner detector legacy.