ATLAS Offline Software
Classes | Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
MuonGMR4::MuonChamber Class Reference

#include <MuonChamber.h>

Collaboration diagram for MuonGMR4::MuonChamber:

Classes

struct  defineArgs
 

Public Types

using ReadoutSet = std::vector< const MuonReadoutElement * >
 

Public Member Functions

 MuonChamber (defineArgs &&args)
 
 MuonChamber (const MuonChamber &other)
 
 MuonChamber (MuonChamber &&other)
 
MuonChamberoperator= (const MuonChamber &other)
 
MuonChamberoperator= (MuonChamber &&other)
 
const Muon::IMuonIdHelperSvcidHelperSvc () const
 Returns the idHelperSvc. More...
 
Muon::MuonStationIndex::ChIndex chamberIndex () const
 Returns the chamber index. More...
 
int stationName () const
 
int stationEta () const
 Returns the station eta of the chamber. More...
 
int stationPhi () const
 Returns the station phi of the chamber. More...
 
ActsTrk::DetectorType detectorType () const
 Returns the detector type of the primary detector element. More...
 
int sector () const
 Returns the sector of the detector element. More...
 
const ReadoutSetreadOutElements () const
 Returns the list of all associated readout elements. More...
 
const Amg::Transform3DlocalToGlobalTrans (const ActsGeometryContext &gctx) const
 Returns the transformation of the MuonChamber. More...
 
Amg::Transform3D globalToLocalTrans (const ActsGeometryContext &gctx) const
 
double halfXLong () const
 Surrounding box dimensions. More...
 
double halfXShort () const
 
double halfY () const
 
double halfZ () const
 
std::shared_ptr< Acts::Volume > boundingVolume (const ActsGeometryContext &gctx) const
 
std::shared_ptr< Acts::TrapezoidVolumeBounds > bounds () const
 
const defineArgsparameters () const
 

Private Types

using AlignmentStore = ActsGeometryContext::AlignmentStore
 

Private Attributes

defineArgs m_args {}
 
ActsTrk::TransformCacheDetEle< MuonChamberm_localToGlobal {IdentifierHash{0}, this}
 

Detailed Description

Definition at line 39 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h.

Member Typedef Documentation

◆ AlignmentStore

◆ ReadoutSet

Constructor & Destructor Documentation

◆ MuonChamber() [1/3]

MuonGMR4::MuonChamber::MuonChamber ( defineArgs &&  args)

Definition at line 42 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

42  :
43  m_args{std::move(args)} {}

◆ MuonChamber() [2/3]

MuonGMR4::MuonChamber::MuonChamber ( const MuonChamber other)

Definition at line 44 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

44  :
45  m_args{other.m_args} {}

◆ MuonChamber() [3/3]

MuonGMR4::MuonChamber::MuonChamber ( MuonChamber &&  other)

Definition at line 46 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

46  :
47  m_args{std::move(other.m_args)} {}

Member Function Documentation

◆ boundingVolume()

std::shared_ptr< Acts::Volume > MuonGMR4::MuonChamber::boundingVolume ( const ActsGeometryContext gctx) const

Definition at line 80 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

80  {
81  return std::make_shared<Acts::Volume>(localToGlobalTrans(gctx), bounds());
82 }

◆ bounds()

std::shared_ptr< Acts::TrapezoidVolumeBounds > MuonGMR4::MuonChamber::bounds ( ) const

Definition at line 83 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

83  {
84  return std::make_shared<Acts::TrapezoidVolumeBounds>(halfXShort(), halfXLong(), halfY(), halfZ());
85 }

◆ chamberIndex()

Muon::MuonStationIndex::ChIndex MuonGMR4::MuonChamber::chamberIndex ( ) const

Returns the chamber index.

Definition at line 62 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

62 { return m_args.readoutEles[0]->chamberIndex(); }

◆ detectorType()

ActsTrk::DetectorType MuonGMR4::MuonChamber::detectorType ( ) const

Returns the detector type of the primary detector element.

Definition at line 66 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

66 { return m_args.readoutEles[0]->detectorType(); }

◆ globalToLocalTrans()

Amg::Transform3D MuonGMR4::MuonChamber::globalToLocalTrans ( const ActsGeometryContext gctx) const

Definition at line 71 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

71  {
72  return localToGlobalTrans(gctx).inverse();
73 }

◆ halfXLong()

double MuonGMR4::MuonChamber::halfXLong ( ) const

Surrounding box dimensions.

Definition at line 74 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

74 { return m_args.halfXLong; }

◆ halfXShort()

double MuonGMR4::MuonChamber::halfXShort ( ) const

◆ halfY()

double MuonGMR4::MuonChamber::halfY ( ) const

◆ halfZ()

double MuonGMR4::MuonChamber::halfZ ( ) const

◆ idHelperSvc()

const Muon::IMuonIdHelperSvc * MuonGMR4::MuonChamber::idHelperSvc ( ) const

Returns the idHelperSvc.

Definition at line 61 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

61 { return m_args.readoutEles[0]->idHelperSvc();}

◆ localToGlobalTrans()

const Amg::Transform3D & MuonGMR4::MuonChamber::localToGlobalTrans ( const ActsGeometryContext gctx) const

Returns the transformation of the MuonChamber.

Definition at line 68 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

68  {
69  return m_localToGlobal.getTransform(gctx.getStore(detectorType()).get());
70 }

◆ operator=() [1/2]

MuonChamber & MuonGMR4::MuonChamber::operator= ( const MuonChamber other)

Definition at line 48 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

48  {
49  if (this != &other) {
50  m_args = other.m_args;
51  }
52  return *this;
53 }

◆ operator=() [2/2]

MuonChamber & MuonGMR4::MuonChamber::operator= ( MuonChamber &&  other)

Definition at line 54 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

54  {
55  if (this != &other) {
56  m_args = std::move(other.m_args);
57  }
58  return *this;
59 }

◆ parameters()

const MuonChamber::defineArgs & MuonGMR4::MuonChamber::parameters ( ) const

◆ readOutElements()

const ReadoutSet & MuonGMR4::MuonChamber::readOutElements ( ) const

Returns the list of all associated readout elements.

Definition at line 67 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

67 { return m_args.readoutEles; }

◆ sector()

int MuonGMR4::MuonChamber::sector ( ) const

Returns the sector of the detector element.

Definition at line 78 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

78 {return idHelperSvc()->sector(m_args.readoutEles[0]->identify()); }

◆ stationEta()

int MuonGMR4::MuonChamber::stationEta ( ) const

Returns the station eta of the chamber.

Definition at line 65 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

65 { return m_args.readoutEles[0]->stationEta(); }

◆ stationName()

int MuonGMR4::MuonChamber::stationName ( ) const

Definition at line 63 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

63 { return m_args.readoutEles[0]->stationName(); }

◆ stationPhi()

int MuonGMR4::MuonChamber::stationPhi ( ) const

Returns the station phi of the chamber.

Definition at line 64 of file MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx.

64 { return m_args.readoutEles[0]->stationPhi(); }

Member Data Documentation

◆ m_args

defineArgs MuonGMR4::MuonChamber::m_args {}
private

◆ m_localToGlobal

ActsTrk::TransformCacheDetEle<MuonChamber> MuonGMR4::MuonChamber::m_localToGlobal {IdentifierHash{0}, this}
private

The documentation for this class was generated from the following files:
MuonGMR4::MuonChamber::m_localToGlobal
ActsTrk::TransformCacheDetEle< MuonChamber > m_localToGlobal
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h:92
MuonGMR4::MuonChamber::defineArgs::halfY
double halfY
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h:48
MuonGMR4::MuonChamber::defineArgs::halfXShort
double halfXShort
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h:47
MuonGMR4::MuonChamber::m_args
defineArgs m_args
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h:90
ActsGeometryContext::getStore
AlignmentStorePtr & getStore(const DetectorType type)
Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.)
Definition: ActsGeometryContext.h:34
MuonGMR4::MuonChamber::defineArgs::readoutEles
ReadoutSet readoutEles
List of readout elements in the chamber.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h:44
MuonGMR4::MuonChamber::idHelperSvc
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Returns the idHelperSvc.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx:61
MuonGMR4::MuonChamber::defineArgs::halfXLong
double halfXLong
Definition of the surrounding box.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h:46
MuonGMR4::MuonChamber::defineArgs::halfZ
double halfZ
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h:49
MuonGMR4::MuonChamber::bounds
std::shared_ptr< Acts::TrapezoidVolumeBounds > bounds() const
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx:83
MuonGMR4::MuonChamber::halfXShort
double halfXShort() const
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx:75
MuonGMR4::MuonChamber::detectorType
ActsTrk::DetectorType detectorType() const
Returns the detector type of the primary detector element.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx:66
MuonGMR4::MuonChamber::halfZ
double halfZ() const
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx:77
MuonGMR4::MuonChamber::halfXLong
double halfXLong() const
Surrounding box dimensions.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx:74
MuonGMR4::MuonChamber::localToGlobalTrans
const Amg::Transform3D & localToGlobalTrans(const ActsGeometryContext &gctx) const
Returns the transformation of the MuonChamber.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx:68
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127
MuonGMR4::MuonChamber::halfY
double halfY() const
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonChamber.cxx:76
Muon::IMuonIdHelperSvc::sector
virtual int sector(const Identifier &id) const =0
return sector number 1-16, odd=large, even=small
python.CaloScaleNoiseConfig.args
args
Definition: CaloScaleNoiseConfig.py:80