ATLAS Offline Software
Loading...
Searching...
No Matches
Chamber.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MUONREADOUTGEOMETRYR4_CHAMBER_H
5#define MUONREADOUTGEOMETRYR4_CHAMBER_H
6
7#ifndef SIMULATIONBASE
8
9
12
13namespace Acts {
14 class VolumeBounds;
15 class Volume;
16 class PlaneSurface;
17}
18
19
20namespace MuonGMR4 {
22
23 class Chamber {
24 public:
26 using ReadoutSet = std::vector<const MuonReadoutElement*>;
27 struct defineArgs{
29 std::shared_ptr<const Acts::PlaneSurface> surface{};
33 std::shared_ptr<Acts::VolumeBounds> bounds{};
34 };
35
37 Chamber(defineArgs&& args);
39 Chamber(const Chamber& other) = delete;
40 const Chamber& operator=(const Chamber& other) = delete;
42 bool operator<(const Chamber& other) const;
44 std::string identString() const;
52 int stationPhi() const;
54 int stationEta() const;
56 int8_t side() const;
58 int stationName() const;
60 int sector() const;
62 bool barrel() const;
64 const ReadoutSet& readoutEles() const;
72 const Acts::PlaneSurface& surface() const;
74 double halfXLong() const;
76 double halfXShort() const;
78 double halfY() const;
80 double halfZ() const;
82 const defineArgs& parameters() const;
85 std::shared_ptr<Acts::Volume> boundingVolume(const ActsTrk::GeometryContext& gctx) const;
87 std::shared_ptr<Acts::VolumeBounds> bounds() const;
89 const SpectrometerSector* parent() const;
92 private:
95 };
96 std::ostream& operator<<(std::ostream& ostr,
97 const Chamber::defineArgs& args);
98
99 std::ostream& operator<<(std::ostream& ostr,
100 const Chamber& chamber);
101}
102#endif
103#endif
const SpectrometerSector * m_parent
Definition Chamber.h:94
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 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
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
const Amg::Transform3D & localToGlobalTrans(const ActsTrk::GeometryContext &gctx) const
Returns the transformation chamber frame -> global transformation.
Definition Chamber.cxx:95
std::vector< const MuonReadoutElement * > ReadoutSet
Define the list of read out elements of the chamber.
Definition Chamber.h:26
bool barrel() const
Returns whether the chamber is placed in the barrel.
Definition Chamber.cxx:61
defineArgs m_args
Definition Chamber.h:93
Amg::Transform3D globalToLocalTrans(const ActsTrk::GeometryContext &gctx) const
Returns the global -> local transformation.
Definition Chamber.cxx: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:29
ReadoutSet detEles
List of associated readout elements.
Definition Chamber.h:31
std::shared_ptr< Acts::VolumeBounds > bounds
Chamber volume bounds.
Definition Chamber.h:33