ATLAS Offline Software
Loading...
Searching...
No Matches
CylinderBoundsExpander.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 ACTSMUONDETECTOR_CYLINDERBOUNDSEXPANDER_H
5#define ACTSMUONDETECTOR_CYLINDERBOUNDSEXPANDER_H
6#ifndef SIMULATIONBASE
9
10namespace MuonGMR4 {
14 public:
16 explicit CylinderBoundsExpander(std::unique_ptr<const Acts::Logger> loggerObj = nullptr);
22 virtual void expand(const Acts::GeometryContext& tgContext,
23 const Acts::Volume& volume) override;
25 virtual std::shared_ptr<Acts::VolumeBounds>
26 makeBounds(Acts::VolumeBoundFactory& factory) override final;
30 void setMargin(const double extraR, const double extraZ);
32 double rMin() const;
34 double& rMin();
36 double rMax() const;
38 double& rMax();
40 double zMin() const;
42 double& zMin();
44 double zMax() const;
46 double& zMax();
47 private:
49 double m_rMin{2.*Acts::UnitConstants::km};
51 double m_rMax{-2.*Acts::UnitConstants::km};
53 double m_zMin{m_rMin};
55 double m_zMax{m_rMax};
57 double m_extraR{0.1};
59 double m_extraZ{0.1};
60 };
61
62}
63#endif
64#endif
BoundsExpander()=default
Default constructor.
void expand(const Acts::GeometryContext &tgContext, const MuonGMR4::Chamber &chamber)
Expand the bounds from a chamber.
static std::shared_ptr< Acts::VolumeBounds > makeBounds(const MuonGMR4::MuonReadoutElement &readoutElement, Acts::VolumeBoundFactory &boundFactory)
Crate volume bounds that enclose the readout element from the central localToGlobalTransform.
void setMargin(const double extraR, const double extraZ)
Assign an extra margin to the constructed bounds.
double zMin() const
Minimum seen longitudinal displacement.
double m_extraZ
Extra margin to be applied in z.
virtual std::shared_ptr< Acts::VolumeBounds > makeBounds(Acts::VolumeBoundFactory &factory) override final
Crate volume bounds that enclose the readout element from the central localToGlobalTransform.
double m_extraR
Extra margin to be applied in R.
CylinderBoundsExpander(std::unique_ptr< const Acts::Logger > loggerObj=nullptr)
Constructor with an optional logger instance.
virtual void expand(const Acts::GeometryContext &tgContext, const Acts::Volume &volume) override
Expand the bounds from a chamber.
double zMax() const
Maximum seen longitudinal displacement.
double m_rMin
Minimum r of any shown vertex.
double m_zMin
Minimum z of any shown vertex.
double rMax() const
Maximum seen radius.
double rMin() const
Minimum seen radius.
double m_rMax
Maximum r of any shown vertex.
double m_zMax
Maximum z of any shown vertex.
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...