ATLAS Offline Software
Loading...
Searching...
No Matches
Chamber.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 MUONREADOUTGEOMETRYR4_CHAMBER_H
5#define MUONREADOUTGEOMETRYR4_CHAMBER_H
6
8#ifndef SIMULATIONBASE
11
12namespace Acts {
13 class VolumeBounds;
14 class Volume;
15 class PlaneSurface;
16}
17
18
19namespace MuonGMR4 {
28 class Chamber {
29 public:
31 using ReadoutSet = std::vector<const MuonReadoutElement*>;
32 struct defineArgs{
34 std::shared_ptr<const Acts::PlaneSurface> surface{};
38 std::shared_ptr<Acts::VolumeBounds> bounds{};
39 };
40
42 Chamber(defineArgs&& args);
44 Chamber(const Chamber& other) = delete;
45 const Chamber& operator=(const Chamber& other) = delete;
47 bool operator<(const Chamber& other) const;
49 std::string identString() const;
57 int stationPhi() const;
59 int stationEta() const;
61 int8_t side() const;
63 int stationName() const;
65 int sector() const;
67 bool barrel() const;
69 const ReadoutSet& readoutEles() const;
77 const Acts::PlaneSurface& surface() const;
79 double halfXLong() const;
81 double halfXShort() const;
83 double halfY() const;
85 double halfZ() const;
87 const defineArgs& parameters() const;
90 std::shared_ptr<Acts::Volume> boundingVolume(const ActsTrk::GeometryContext& gctx) const;
92 std::shared_ptr<Acts::VolumeBounds> bounds() const;
94 const SpectrometerSector* parent() const;
97 private:
100 };
101 std::ostream& operator<<(std::ostream& ostr,
102 const Chamber::defineArgs& args);
103
104 std::ostream& operator<<(std::ostream& ostr,
105 const Chamber& chamber);
106}
107#endif
108#endif
const SpectrometerSector * m_parent
Definition Chamber.h:99
std::string identString() const
Define a string of the chamber used for debugging.
Definition Chamber.cxx:51
const Acts::PlaneSurface & surface() const
Returns the surface associated with the chamber.
Definition Chamber.cxx:92
int stationEta() const
Returns the station eta of the chamber.
Definition Chamber.cxx:84
const Amg::Transform3D & localToGlobalTransform(const ActsTrk::GeometryContext &gctx) const
Returns the transformation chamber frame -> global transformation.
Definition Chamber.cxx:95
const ReadoutSet & readoutEles() const
Returns the list of contained readout elements.
Definition Chamber.cxx:89
double halfXLong() const
Long-extend of the chamber in the x-direction at positive Y.
Definition Chamber.cxx:74
bool operator<(const Chamber &other) const
Comparison operator for set ordering.
Definition Chamber.cxx:34
const Chamber & operator=(const Chamber &other)=delete
Chamber(defineArgs &&args)
Standard constructor taking the defineArgs.
Definition Chamber.cxx:26
void setParent(const SpectrometerSector *parent)
Sets the connection to the MS sector enclosing the chamber.
Definition Chamber.cxx:102
const SpectrometerSector * parent() const
Returns the pointer to the MS sector enclosing the chamber.
Definition Chamber.cxx:101
double halfY() const
Extend of the chamber in the y-direction.
Definition Chamber.cxx:76
ActsTrk::DetectorType detectorType() const
Returns the first readout elements detectorType (sorted by techIdx)
Definition Chamber.cxx:71
int sector() const
Returns the MS sector of the chamber.
Definition Chamber.cxx:87
Amg::Transform3D globalToLocalTransform(const ActsTrk::GeometryContext &gctx) const
Returns the global -> local transformation.
Definition Chamber.cxx:98
Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index.
Definition Chamber.cxx:67
int stationPhi() const
Returns the station phi of the chamber.
Definition Chamber.cxx:83
int stationName() const
Returns an integer representing the stationName.
Definition Chamber.cxx:85
std::shared_ptr< Acts::Volume > boundingVolume(const ActsTrk::GeometryContext &gctx) const
Returns the Acts::Volume representation of the chamber.
Definition Chamber.cxx:79
const defineArgs & parameters() const
Returns the reference to the defining parameters of the chamber.
Definition Chamber.cxx:88
std::vector< const MuonReadoutElement * > ReadoutSet
Define the list of read out elements of the chamber.
Definition Chamber.h:31
bool barrel() const
Returns whether the chamber is placed in the barrel.
Definition Chamber.cxx:61
defineArgs m_args
Definition Chamber.h:98
double halfXShort() const
Short extend of the chamber in the x-direction at negative Y.
Definition Chamber.cxx:75
int8_t side() const
Returns the side of the chamber.
Definition Chamber.cxx:86
double halfZ() const
Thickness of the chamber in the z-direction.
Definition Chamber.cxx:77
std::shared_ptr< Acts::VolumeBounds > bounds() const
Returns the volume bounds.
Definition Chamber.cxx:82
Chamber(const Chamber &other)=delete
delete the copy constructors
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Returns a pointer to the idHelperSvc.
Definition Chamber.cxx:64
A spectrometer sector forms the envelope of all chambers that are placed in the same MS sector & laye...
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Eigen::Affine3d Transform3D
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
std::ostream & operator<<(std::ostream &ostr, const Chamber::defineArgs &args)
Definition Chamber.cxx:14
RpcReadoutElement::defineArgs defineArgs
ChIndex
enum to classify the different chamber layers in the muon spectrometer
std::shared_ptr< const Acts::PlaneSurface > surface
Associated chamber surface.
Definition Chamber.h:34
ReadoutSet detEles
List of associated readout elements.
Definition Chamber.h:36
std::shared_ptr< Acts::VolumeBounds > bounds
Chamber volume bounds.
Definition Chamber.h:38