ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
MuonGM::MMReadoutElement Class Referencefinal

An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station contains: More...

#include <MMReadoutElement.h>

Inheritance diagram for MuonGM::MMReadoutElement:
Collaboration diagram for MuonGM::MMReadoutElement:

Public Member Functions

 MMReadoutElement (GeoVFullPhysVol *pv, const std::string &stName, int zi, int fi, int mL, MuonDetectorManager *mgr, const NswPassivationDbData *)
 constructor More...
 
 ~MMReadoutElement ()
 destructor More...
 
virtual bool containsId (const Identifier &id) const override final
 function to be used to check whether a given Identifier is contained in the readout element More...
 
virtual double distanceToReadout (const Amg::Vector2D &pos, const Identifier &id) const override final
 distance to readout. More...
 
virtual int stripNumber (const Amg::Vector2D &pos, const Identifier &id) const override final
 strip number corresponding to local position. More...
 
virtual bool stripPosition (const Identifier &id, Amg::Vector2D &pos) const override final
 strip position – local or global If the strip number is outside the range of valid strips, the function will return false More...
 
bool stripGlobalPosition (const Identifier &id, Amg::Vector3D &gpos) const
 
double stereoAngle (const Identifier &id) const
 Wrapper to MuonChannelDesign::stereoAngle() More...
 
double stripLength (const Identifier &id) const
 strip length Wrappers to MuonChannelDesign::channelLength() taking into account the passivated width More...
 
double stripActiveLength (const Identifier &id) const
 
double stripActiveLengthLeft (const Identifier &id) const
 
double stripActiveLengthRight (const Identifier &id) const
 
bool insideActiveBounds (const Identifier &id, const Amg::Vector2D &locpos, double tol1=0., double tol2=0.) const
 boundary check Wrapper Trk::PlaneSurface::insideBounds() taking into account the passivated width More...
 
virtual int numberOfLayers (bool) const override
 number of layers in phi/eta projection More...
 
virtual int numberOfStrips (const Identifier &layerId) const override final
 number of strips per layer More...
 
virtual int numberOfStrips (int, bool measuresPhi) const override final
 
int numberOfMissingTopStrips (const Identifier &layerId) const
 Number of missing bottom and top strips (not read out) More...
 
int numberOfMissingBottomStrips (const Identifier &layerId) const
 
virtual bool spacePointPosition (const Identifier &phiId, const Identifier &etaId, Amg::Vector2D &pos) const override final
 space point position for a given pair of phi and eta identifiers The LocalPosition is expressed in the reference frame of the phi surface. More...
 
virtual bool spacePointPosition (const Identifier &phiId, const Identifier &etaId, Amg::Vector3D &pos) const override final
 Global space point position for a given pair of phi and eta identifiers If one of the identifiers is outside the valid range, the function will return false. More...
 
Amg::Vector3D localToGlobalCoords (const Amg::Vector3D &locPos, const Identifier &id) const
 simHit local (SD) To Global position - to be used by MuonGeoAdaprors only More...
 
bool spacePointPosition (const Identifier &layerId, const Amg::Vector2D &localPos, Amg::Vector3D &pos) const
 Method calculating the global position of the hit on surface taking the as-built corrections into account. More...
 
virtual void fillCache () override final
 function to fill tracking cache More...
 
virtual int surfaceHash (const Identifier &id) const override final
 returns the hash to be used to look up the surface and transform in the MuonClusterReadoutElement tracking cache More...
 
int surfaceHash (int gasGap, int measPhi) const
 returns the hash to be used to look up the surface and transform in the MuonClusterReadoutElement tracking cache More...
 
virtual int layerHash (const Identifier &id) const override final
 returns the hash to be used to look up the normal and center in the MuonClusterReadoutElement tracking cache More...
 
int layerHash (int gasGap) const
 returns the hash to be used to look up the normal and center in the MuonClusterReadoutElement tracking cache More...
 
virtual int boundaryHash (const Identifier &id) const override final
 returns the hash function to be used to look up the surface boundary for a given identifier More...
 
virtual bool measuresPhi (const Identifier &id) const override final
 returns whether the current identifier corresponds to a phi measurement More...
 
void initDesign ()
 initialize the design classes for this readout element More...
 
const MuonChannelDesigngetDesign (const Identifier &id) const
 returns the MuonChannelDesign class for the given identifier More...
 
void setChamberLayer (int ml)
 set methods only to be used by MuonGeoModel More...
 
const Amg::Transform3DgetDelta () const
 read A-line parameters and include the chamber rotation/translation in the local-to-global (ATLAS) reference frame transformaton More...
 
void setDelta (const ALinePar &aline)
 
void setBLinePar (const BLinePar &bLine)
 read B-line (chamber-deformation) parameters More...
 
void posOnDefChamber (Amg::Vector3D &locPosML) const
 transform a position (in chamber-frame coordinates) to the deformed-chamber geometry More...
 
bool has_ALines () const
 
bool has_BLines () const
 
const ALinePargetALinePar () const
 
const BLinePargetBLinePar () const
 
void clearALinePar ()
 
void clearBLinePar ()
 
const std::array< int, 4 > & getReadoutSide () const
 
virtual Amg::Vector3D AmdbLRSToGlobalCoords (const Amg::Vector3D &x) const override final
 
virtual Amg::Transform3D AmdbLRSToGlobalTransform () const override final
 
virtual Amg::Vector3D GlobalToAmdbLRSCoords (const Amg::Vector3D &x) const override final
 
virtual Amg::Transform3D GlobalToAmdbLRSTransform () const override final
 
virtual void clearCache () override final
 clear the cache of the readout elememt More...
 
virtual const Trk::PlaneSurfacesurface () const override
 access to chamber surface (phi orientation), uses the first gas gap More...
 
virtual const Trk::PlaneSurfacesurface (const Identifier &id) const override
 access to layer surfaces More...
 
const Trk::PlaneSurfacesurface (int surfHash) const
 access to layer surfaces More...
 
virtual const Trk::SurfaceBoundsbounds () const override
 Return the boundaries of the element. More...
 
virtual const Trk::SurfaceBoundsbounds (const Identifier &id) const override
 Return the boundaries of the surface associated with this identifier. More...
 
const Trk::SurfaceBoundsbounds (int boundHash) const
 
virtual const Amg::Vector3Dcenter () const override
 Return the center of the element. More...
 
virtual const Amg::Vector3Dcenter (const Identifier &id) const override
 Return the center of the surface associated with this identifier In the case of silicon it returns the same as center() More...
 
const Amg::Vector3Dcenter (int layHash) const
 
virtual const Amg::Vector3Dnormal () const override
 Return the normal of the element. More...
 
virtual const Amg::Vector3Dnormal (const Identifier &id) const override
 Return the normal of the surface associated with this identifier In the case of silicon it returns the same as normal() More...
 
const Amg::Vector3Dnormal (int layHash) const
 
virtual const Amg::Transform3Dtransform () const override
 Return local to global transform. More...
 
virtual const Amg::Transform3Dtransform (const Identifier &id) const override
 Return local to global transform associated with this identifier. More...
 
const Amg::Transform3Dtransform (int surfHash) const
 
virtual std::vector< const Trk::Surface * > surfaces () const
 returns all the surfaces contained in this detector element More...
 
Identifier identify () const override final
 Returns the ATLAS Identifier of the MuonReadOutElement. More...
 
IdentifierHash identifyHash () const override final
 Returns the IdentifierHash of the MuonStation, i.e. More...
 
IdentifierHash detectorElementHash () const
 Returns the IdentifierHash of the detector element. More...
 
void setIdentifier (const Identifier &id)
 Sets the Identifier, hashes & station names. More...
 
int getStationIndex () const
 
int getStationEta () const
 
int getStationPhi () const
 
const Amg::Vector3D globalPosition () const
 
const Amg::Transform3DabsTransform () const
 
const Amg::Transform3DdefTransform () const
 
std::string getTechnologyType () const
 
const std::string & getTechnologyName () const
 
void setTechnologyName (const std::string &str)
 
std::string getStationType () const
 
const std::string & getStationName () const
 
void setStationName (const std::string &)
 
double getSsize () const
 
double getRsize () const
 
double getZsize () const
 
double getLongSsize () const
 
double getLongRsize () const
 
double getLongZsize () const
 
double getStationS () const
 Seems to be exclusively used by the MDTs --> Move it to MdtReadoutElement. More...
 
void setStationS (double)
 
void setLongSsize (double)
 
void setLongRsize (double)
 
void setLongZsize (double)
 
void setSsize (double)
 
void setRsize (double)
 
void setZsize (double)
 
bool largeSector () const
 
bool smallSector () const
 
bool sideA () const
 
bool sideC () const
 
void setParentStationPV (const PVConstLink &)
 
void setParentStationPV ()
 
PVConstLink parentStationPV () const
 
const MuonStationparentMuonStation () const
 
void setParentMuonStation (const MuonStation *)
 
Amg::Transform3D toParentStation () const
 
Amg::Vector3D parentMuonStationPos () const
 
int getIndexOfREinMuonStation () const
 
bool hasCutouts () const
 
void setHasCutouts (bool flag)
 
void refreshCache ()
 
const Muon::IMuonIdHelperSvcidHelperSvc () const
 
Trk::DetectorElemType detectorType () const override final
 Return the Detector element type. More...
 
std::string detectorTypeString () const
 Returns a string of the Detector element type. More...
 
bool msgLvl (const MSG::Level lvl) const
 Test the output level. More...
 
MsgStream & msg () const
 The standard message stream. More...
 
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream. More...
 
void setLevel (MSG::Level lvl)
 Change the current logging level. More...
 

Protected Member Functions

const MuonDetectorManagermanager () const
 

Protected Attributes

std::unique_ptr< SurfaceDatam_surfaceData {}
 
double m_Ssize {-9999.}
 
double m_Rsize {-9999.}
 
double m_Zsize {-9999.}
 
double m_LongSsize {-9999.}
 
double m_LongRsize {-9999.}
 
double m_LongZsize {-9999.}
 size in the specified direction More...
 
std::string m_techname {"TTT0"}
 MDT or RPC or TGC or CSC plus a two digits subtype; example RPC17. More...
 
std::string m_statname {"XXX0"}
 examples are BMS5, CSS1, EML1 More...
 
int m_caching {-1}
 0 if we want to avoid caching geometry info for tracking interface More...
 
bool m_hasCutouts {false}
 true is there are cutouts in the readdout-element More...
 

Private Types

using PCBPassivation = NswPassivationDbData::PCBPassivation
 

Private Member Functions

void initDesignSqLite ()
 
void setIndexOfREinMuonStation ()
 
void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Private Attributes

const MmIdHelperm_idHelper {idHelperSvc()->mmIdHelper()}
 
std::array< MuonChannelDesign, 4 > m_etaDesign {}
 
int m_nlayers {0}
 
const NswPassivationDbDatam_passivData {nullptr}
 
int m_ml {0}
 
double m_halfX {100.}
 
double m_minHalfY {1900.}
 
double m_maxHalfY {2000.}
 
double m_offset {0.}
 
double m_sWidthChamber {0.}
 
double m_lWidthChamber {0.}
 
double m_lengthChamber {0.}
 
double m_tckChamber {0.}
 
Amg::Transform3D m_delta {Amg::Transform3D::Identity()}
 
const ALineParm_ALinePar {nullptr}
 
const BLineParm_BLinePar {nullptr}
 
std::array< int, 4 > m_readoutSide {}
 
std::array< Amg::Transform3D, 4 > m_Xlg {make_array<Amg::Transform3D,4>(Amg::Transform3D::Identity())}
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {"Muon::MuonIdHelperSvc/MuonIdHelperSvc", "MuonDetectorManager"}
 
Trk::DetectorElemType m_type {Trk::DetectorElemType::SolidState}
 
Identifier m_id {0}
 extended data-collection identifier More...
 
IdentifierHash m_idhash {0}
 data-collection hash identifier More...
 
IdentifierHash m_detectorElIdhash {0}
 detector element hash identifier More...
 
int m_indexOfREinMuonStation {-999}
 index of this RE in the mother MuonStation More...
 
double m_stationS {0.}
 
int m_stIdx {-1}
 Identifier field of the station index. More...
 
int m_eta {-1}
 Identifier field of the station eta. More...
 
int m_phi {-1}
 Identifier field of the station phi. More...
 
PVConstLink m_parentStationPV {nullptr}
 
const MuonStationm_parentMuonStation {nullptr}
 
MuonDetectorManagerm_muon_mgr {nullptr}
 
std::string m_nm
 Message source name. More...
 
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels) More...
 
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer. More...
 
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level. More...
 
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging) More...
 

Static Private Attributes

static constexpr PCBPassivation s_dummy_passiv {}
 

Friends

class ::MuonReadoutGeomCnvAlg
 

Detailed Description

An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station contains:

Definition at line 23 of file MMReadoutElement.h.

Member Typedef Documentation

◆ PCBPassivation

Definition at line 152 of file MMReadoutElement.h.

Constructor & Destructor Documentation

◆ MMReadoutElement()

MuonGM::MMReadoutElement::MMReadoutElement ( GeoVFullPhysVol *  pv,
const std::string &  stName,
int  zi,
int  fi,
int  mL,
MuonDetectorManager mgr,
const NswPassivationDbData passivData 
)

constructor

Active gas volume in the R4 like description

Definition at line 69 of file MMReadoutElement.cxx.

71  m_passivData(passivData),
72  m_ml(mL) {
73 
74  std::string fixName = (stName[2] == 'L') ? "MML" : "MMS";
75  setStationName(fixName);
76  setChamberLayer(mL);
77  Identifier id = mgr->mmIdHelper()->channelID(fixName, zi, fi, mL, 1, 1);
78  setIdentifier(id);
79 
80 
81  if (mgr->MinimalGeoFlag()) {
82  return;
83  }
84  bool foundShape = false;
85  const PVConstLink pvc {getMaterialGeom()};
86  const GeoTrd* trd=dynamic_cast<const GeoTrd *> (pvc->getLogVol()->getShape());
87  if (trd) {
88  m_sWidthChamber = 2*trd->getYHalfLength1(); // bottom base length (full chamber)
89  m_lWidthChamber = 2*trd->getYHalfLength2(); // top base length (full chamber)
90  m_lengthChamber = 2*trd->getZHalfLength(); // height of the trapezoid (full chamber)
91  } else {
92  ATH_MSG_DEBUG("Expected a GeoTrd but got "<<printGeoShape(pvc->getLogVol()->getShape()));
93  }
94 
95  std::vector<GeoChildNodeWithTrf> children{getAllSubVolumes(pvc)};
96  for (const GeoChildNodeWithTrf& child : children) {
97  ATH_MSG_VERBOSE("Child node "<<child.nodeName<<" "<<child.volume->getLogVol()->getName());
98  if (child.volume->getLogVol()->getName().find("Sensitive") == std::string::npos &&
100  child.volume->getLogVol()->getName() != "actMicroMegaGas") {
101  continue;
102  }
103  ++m_nlayers;
104  if (m_nlayers > 4) {
105  THROW_EXCEPTION("number of MM layers > 4: increase transform array size" );
106  }
107  m_Xlg[m_nlayers - 1] = child.transform;
108  // save layer dimensions
109  if (foundShape) {
110  continue;
111  }
112  const GeoShape* childShape = child.volume->getLogVol()->getShape();
113  while (childShape->typeID() != GeoTrd::getClassTypeID()){
114  auto [opA, opB] = getOps(childShape);
115  ATH_MSG_VERBOSE("Operands are "<<printGeoShape(opA)<<", "<<printGeoShape(opB));
116  childShape = opA;
117  }
118  const GeoTrd* trd = dynamic_cast<const GeoTrd*>(childShape);
119  m_halfX = trd->getZHalfLength();
120  // adjust phi dimensions according to the active area
121  m_minHalfY = trd->getYHalfLength1();
122  m_maxHalfY = trd->getYHalfLength2();
123  foundShape = true;
124  }
125 
126  if (!foundShape) {
127  THROW_EXCEPTION(" failed to initialize dimensions of this chamber " );
128  }
129  }

◆ ~MMReadoutElement()

MuonGM::MMReadoutElement::~MMReadoutElement ( )
default

destructor

Member Function Documentation

◆ absTransform()

const Amg::Transform3D & MuonGM::MuonReadoutElement::absTransform ( ) const
inlineinherited

Definition at line 210 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

210 { return getMaterialGeom()->getAbsoluteTransform(); }

◆ AmdbLRSToGlobalCoords()

virtual Amg::Vector3D MuonGM::MMReadoutElement::AmdbLRSToGlobalCoords ( const Amg::Vector3D x) const
inlinefinaloverridevirtual

Reimplemented from MuonGM::MuonReadoutElement.

Definition at line 140 of file MMReadoutElement.h.

140 { return AmdbLRSToGlobalTransform()*x; }

◆ AmdbLRSToGlobalTransform()

virtual Amg::Transform3D MuonGM::MMReadoutElement::AmdbLRSToGlobalTransform ( ) const
inlinefinaloverridevirtual

Reimplemented from MuonGM::MuonReadoutElement.

Definition at line 141 of file MMReadoutElement.h.

141 { return absTransform()*Amg::Translation3D(0, 0, m_offset)*getDelta(); }

◆ boundaryHash()

int MuonGM::MMReadoutElement::boundaryHash ( const Identifier id) const
inlinefinaloverridevirtual

returns the hash function to be used to look up the surface boundary for a given identifier

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 189 of file MMReadoutElement.h.

189 { return layerHash(m_idHelper.gasGap(id)); }

◆ bounds() [1/3]

const Trk::SurfaceBounds & MuonGM::MuonClusterReadoutElement::bounds ( ) const
inlineoverridevirtualinherited

Return the boundaries of the element.

Implements Trk::TrkDetElementBase.

Definition at line 127 of file MuonClusterReadoutElement.h.

127 { return bounds(0); }

◆ bounds() [2/3]

const Trk::SurfaceBounds & MuonGM::MuonClusterReadoutElement::bounds ( const Identifier id) const
inlineoverridevirtualinherited

Return the boundaries of the surface associated with this identifier.

For TRT this will be a straw, while for silicon it returns the same as bounds()

Implements Trk::TrkDetElementBase.

Definition at line 133 of file MuonClusterReadoutElement.h.

133 { return bounds(boundaryHash(id)); }

◆ bounds() [3/3]

const Trk::SurfaceBounds & MuonGM::MuonClusterReadoutElement::bounds ( int  boundHash) const
inlineinherited

Definition at line 185 of file MuonClusterReadoutElement.h.

185  {
186  if (!m_surfaceData) {
187  ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" "<<__func__<<" Requesting bounds but cache is empty");
188  throw std::runtime_error("Empty bounds cache");
189  }
190  if (hash == -1 || hash >= (int)m_surfaceData->m_surfBounds.size()) {
191  ATH_MSG_WARNING("normal hash out of range: " << hash << " elements " << m_surfaceData->m_surfBounds.size());
192  return *m_surfaceData->m_surfBounds.front();
193  }
194  return *m_surfaceData->m_surfBounds[hash];
195  }

◆ center() [1/3]

const Amg::Vector3D & MuonGM::MuonClusterReadoutElement::center ( ) const
inlineoverridevirtualinherited

Return the center of the element.

Implements Trk::TrkDetElementBase.

Definition at line 125 of file MuonClusterReadoutElement.h.

125 { return center(0); }

◆ center() [2/3]

const Amg::Vector3D & MuonGM::MuonClusterReadoutElement::center ( const Identifier id) const
inlineoverridevirtualinherited

Return the center of the surface associated with this identifier In the case of silicon it returns the same as center()

Implements Trk::TrkDetElementBase.

Definition at line 131 of file MuonClusterReadoutElement.h.

131 { return center(layerHash(id)); }

◆ center() [3/3]

const Amg::Vector3D & MuonGM::MuonClusterReadoutElement::center ( int  layHash) const
inlineinherited

Definition at line 161 of file MuonClusterReadoutElement.h.

161  {
162  if (!m_surfaceData) {
163  ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" "<<__func__<<" Requesting center but cache is empty");
164  throw std::runtime_error("Empty center cache");
165  }
166  if (hash == -1 || hash >= (int)m_surfaceData->m_layerCenters.size()) {
167  ATH_MSG_WARNING("center hash out of range: " << hash << " elements " << m_surfaceData->m_layerCenters.size());
168  return m_surfaceData->m_layerCenters.front();
169  }
170  return m_surfaceData->m_layerCenters[hash];
171  }

◆ clearALinePar()

void MuonGM::MMReadoutElement::clearALinePar ( )

Definition at line 376 of file MMReadoutElement.cxx.

376  {
377  if (has_ALines()) {
378  m_ALinePar = nullptr;
379  m_delta = Amg::Transform3D::Identity();
380  refreshCache();
381  }
382  }

◆ clearBLinePar()

void MuonGM::MMReadoutElement::clearBLinePar ( )
inline

Definition at line 136 of file MMReadoutElement.h.

136 { m_BLinePar = nullptr; }

◆ clearCache()

void MuonGM::MuonClusterReadoutElement::clearCache ( )
finaloverridevirtualinherited

clear the cache of the readout elememt

Implements MuonGM::MuonReadoutElement.

Definition at line 13 of file MuonClusterReadoutElement.cxx.

13 { m_surfaceData.reset(); }

◆ containsId()

bool MuonGM::MMReadoutElement::containsId ( const Identifier id) const
finaloverridevirtual

function to be used to check whether a given Identifier is contained in the readout element

Implements MuonGM::MuonReadoutElement.

Definition at line 330 of file MMReadoutElement.cxx.

330  {
331  if (m_idHelper.stationEta(id) != getStationEta()) return false;
332  if (m_idHelper.stationPhi(id) != getStationPhi()) return false;
333 
334  if (m_idHelper.multilayerID(id) != m_ml) return false;
335 
336  int gasgap = m_idHelper.gasGap(id);
337  if (gasgap < 1 || gasgap > m_nlayers) return false;
338 
339  int strip = m_idHelper.channel(id);
340  return strip >= 1 && strip <= m_etaDesign[gasgap - 1].totalStrips;
341  }

◆ defTransform()

const Amg::Transform3D & MuonGM::MuonReadoutElement::defTransform ( ) const
inlineinherited

Definition at line 212 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

212 { return getMaterialGeom()->getDefAbsoluteTransform(); }

◆ detectorElementHash()

IdentifierHash MuonGM::MuonReadoutElement::detectorElementHash ( ) const
inlineinherited

Returns the IdentifierHash of the detector element.

Unlike the identifyHash, this hash is unique for each readout element

Definition at line 186 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

186 { return m_detectorElIdhash; }

◆ detectorType()

Trk::DetectorElemType MuonGM::MuonReadoutElement::detectorType ( ) const
inlinefinaloverridevirtualinherited

Return the Detector element type.

Implements Trk::TrkDetElementBase.

Definition at line 138 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

138 { return m_type; }

◆ detectorTypeString()

std::string Trk::TrkDetElementBase::detectorTypeString ( ) const
inherited

Returns a string of the Detector element type.

Definition at line 10 of file TrkDetElementBase.cxx.

10  {
11  auto type = detectorType();
13  return "SolidState";
15  return "Silicon";
16  else if (type == Trk::DetectorElemType::TRT)
17  return "TRT";
18  else if (type == Trk::DetectorElemType::Csc)
19  return "Csc";
20  else if (type == Trk::DetectorElemType::Mdt)
21  return "Mdt";
22  else if (type == Trk::DetectorElemType::Rpc)
23  return "Rpc";
24  else if (type == Trk::DetectorElemType::Tgc)
25  return "Tgc";
27  return "sTgc";
28  else if (type == Trk::DetectorElemType::MM)
29  return "Mm";
30  return "Unknown";
31 }

◆ distanceToReadout()

double MuonGM::MMReadoutElement::distanceToReadout ( const Amg::Vector2D pos,
const Identifier id 
) const
inlinefinaloverridevirtual

distance to readout.

If the local position is outside the active volume, the function first shift the position back into the active volume

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 196 of file MMReadoutElement.h.

196  {
197  const MuonChannelDesign* design = getDesign(id);
198  if (!design) return -1.;
199  return design->distanceToReadout(pos);
200  }

◆ fillCache()

void MuonGM::MMReadoutElement::fillCache ( )
finaloverridevirtual

function to fill tracking cache

Implements MuonGM::MuonReadoutElement.

Definition at line 295 of file MMReadoutElement.cxx.

295  {
296 
297  if (m_surfaceData) {
298  ATH_MSG_WARNING("calling fillCache on an already filled cache" );
299  return;
300  }
301  m_surfaceData = std::make_unique<SurfaceData>();
302 
303 
304  for (int layer = 0; layer < m_nlayers; ++layer) {
305  // identifier of the first channel
306  Identifier id = m_idHelper.channelID(identify(), m_ml, layer + 1, 1);
307  const double sAngle = m_etaDesign[layer].stereoAngle();
308  m_surfaceData->m_layerSurfaces.emplace_back(std::make_unique<Trk::PlaneSurface>(*this,id));
309  m_surfaceData->m_surfBounds.emplace_back(std::make_unique<Trk::RotatedTrapezoidBounds>(m_halfX, m_minHalfY, m_maxHalfY, sAngle));
310 
311  m_surfaceData->m_layerTransforms.push_back(
312  absTransform() // transformation from chamber to ATLAS frame
313  * m_delta // rotations (a-lines) from the alignment group
314  * m_Xlg[layer] // x-shift of the gas-gap center w.r.t. quadruplet center
315  * Amg::getTranslateZ3D(m_offset) // z-shift to volume center
316  * Amg::getRotateY3D(-90. * CLHEP::deg) // x<->z because of GeoTrd definition
317  * Amg::getRotateZ3D(sAngle));
318 
319  // surface info (center, normal)
320  m_surfaceData->m_layerCenters.emplace_back(m_surfaceData->m_layerTransforms.back().translation());
321  m_surfaceData->m_layerNormals.emplace_back(m_surfaceData->m_layerTransforms.back().linear() * (-Amg::Vector3D::UnitZ()));
322 
323  ATH_MSG_DEBUG("MMReadoutElement layer " << layer << " sAngle " << sAngle << " phi direction MM eta strip "
324  << (m_surfaceData->m_layerTransforms.back().linear() * Amg::Vector3D::UnitY()).phi() );
325  }
326  }

◆ getALinePar()

const ALinePar* MuonGM::MMReadoutElement::getALinePar ( ) const
inline

Definition at line 133 of file MMReadoutElement.h.

133 { return m_ALinePar; }

◆ getBLinePar()

const BLinePar* MuonGM::MMReadoutElement::getBLinePar ( ) const
inline

Definition at line 134 of file MMReadoutElement.h.

134 { return m_BLinePar; }

◆ getDelta()

const Amg::Transform3D& MuonGM::MMReadoutElement::getDelta ( ) const
inline

read A-line parameters and include the chamber rotation/translation in the local-to-global (ATLAS) reference frame transformaton

Definition at line 122 of file MMReadoutElement.h.

122 { return m_delta; }

◆ getDesign()

const MuonChannelDesign * MuonGM::MMReadoutElement::getDesign ( const Identifier id) const
inline

returns the MuonChannelDesign class for the given identifier

Definition at line 193 of file MMReadoutElement.h.

193  {
194  return &(m_etaDesign[layerHash(id)]);
195  }

◆ getIndexOfREinMuonStation()

int MuonGM::MuonReadoutElement::getIndexOfREinMuonStation ( ) const
inherited

◆ getLongRsize()

double MuonGM::MuonReadoutElement::getLongRsize ( ) const
inlineinherited

◆ getLongSsize()

double MuonGM::MuonReadoutElement::getLongSsize ( ) const
inlineinherited

◆ getLongZsize()

double MuonGM::MuonReadoutElement::getLongZsize ( ) const
inlineinherited

◆ getReadoutSide()

const std::array<int, 4>& MuonGM::MMReadoutElement::getReadoutSide ( ) const
inline

Definition at line 137 of file MMReadoutElement.h.

137 { return m_readoutSide; }

◆ getRsize()

double MuonGM::MuonReadoutElement::getRsize ( ) const
inlineinherited

◆ getSsize()

double MuonGM::MuonReadoutElement::getSsize ( ) const
inlineinherited

◆ getStationEta()

int MuonGM::MuonReadoutElement::getStationEta ( ) const
inlineinherited

◆ getStationIndex()

int MuonGM::MuonReadoutElement::getStationIndex ( ) const
inlineinherited

◆ getStationName()

const std::string & MuonGM::MuonReadoutElement::getStationName ( ) const
inlineinherited

◆ getStationPhi()

int MuonGM::MuonReadoutElement::getStationPhi ( ) const
inlineinherited

◆ getStationS()

double MuonGM::MuonReadoutElement::getStationS ( ) const
inlineinherited

Seems to be exclusively used by the MDTs --> Move it to MdtReadoutElement.

Definition at line 202 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

202 { return m_stationS; }

◆ getStationType()

std::string MuonGM::MuonReadoutElement::getStationType ( ) const
inlineinherited

Definition at line 189 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

189 { return m_statname.substr(0,3); }

◆ getTechnologyName()

const std::string & MuonGM::MuonReadoutElement::getTechnologyName ( ) const
inlineinherited

◆ getTechnologyType()

std::string MuonGM::MuonReadoutElement::getTechnologyType ( ) const
inlineinherited

Definition at line 187 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

187 { return m_techname.substr(0, 3); }

◆ getZsize()

double MuonGM::MuonReadoutElement::getZsize ( ) const
inlineinherited

◆ globalPosition()

const Amg::Vector3D MuonGM::MuonReadoutElement::globalPosition ( ) const
inherited

Definition at line 47 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

47 { return absTransform().translation(); }

◆ GlobalToAmdbLRSCoords()

virtual Amg::Vector3D MuonGM::MMReadoutElement::GlobalToAmdbLRSCoords ( const Amg::Vector3D x) const
inlinefinaloverridevirtual

Reimplemented from MuonGM::MuonReadoutElement.

Definition at line 143 of file MMReadoutElement.h.

143 { return GlobalToAmdbLRSTransform()*x; }

◆ GlobalToAmdbLRSTransform()

virtual Amg::Transform3D MuonGM::MMReadoutElement::GlobalToAmdbLRSTransform ( ) const
inlinefinaloverridevirtual

Reimplemented from MuonGM::MuonReadoutElement.

Definition at line 144 of file MMReadoutElement.h.

144 { return AmdbLRSToGlobalTransform().inverse(); }

◆ has_ALines()

bool MuonGM::MMReadoutElement::has_ALines ( ) const
inline

Definition at line 131 of file MMReadoutElement.h.

131 { return (m_ALinePar != nullptr); }

◆ has_BLines()

bool MuonGM::MMReadoutElement::has_BLines ( ) const
inline

Definition at line 132 of file MMReadoutElement.h.

132 { return (m_BLinePar != nullptr); }

◆ hasCutouts()

bool MuonGM::MuonReadoutElement::hasCutouts ( ) const
inlineinherited

◆ identify()

Identifier MuonGM::MuonReadoutElement::identify ( ) const
inlinefinaloverridevirtualinherited

Returns the ATLAS Identifier of the MuonReadOutElement.

Usually the Identifier corresponds to the first channel covered by the Element

Implements Trk::TrkDetElementBase.

Definition at line 184 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

184 { return m_id; }

◆ identifyHash()

IdentifierHash MuonGM::MuonReadoutElement::identifyHash ( ) const
inlinefinaloverridevirtualinherited

Returns the IdentifierHash of the MuonStation, i.e.

2 readoutelements with same sationIndex, stationEta, stationPhi have the same identifiyHash

Implements Trk::TrkDetElementBase.

Definition at line 185 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

185 { return m_idhash; }

◆ idHelperSvc()

const Muon::IMuonIdHelperSvc* MuonGM::MuonReadoutElement::idHelperSvc ( ) const
inlineinherited

◆ initDesign()

void MuonGM::MMReadoutElement::initDesign ( )

initialize the design classes for this readout element

The stereo angle is defined clock-wise from the y-axis

Input width is defined as the distance between two channels

Definition at line 220 of file MMReadoutElement.cxx.

220  {
221  if (m_ml < 1 || m_ml > 2) {
222  THROW_EXCEPTION("MMReadoutElement -- Unexpected Multilayer: m_ml= " << m_ml );
223  return;
224  }
225  // Get the detector configuration.
226  ISvcLocator* svcLocator = Gaudi::svcLocator(); // from Bootstrap
227  IGeoDbTagSvc* geoDbTag{nullptr};
228  if (svcLocator->service("GeoDbTagSvc",geoDbTag).isFailure()) {
229  THROW_EXCEPTION("Could not locate GeoDbTagSvc");
230  }
231  if (geoDbTag->getSqliteReader()) {
233  return;
234  }
235  char side = getStationEta() < 0 ? 'C' : 'A';
236  char sector_l = getStationName().substr(2, 1) == "L" ? 'L' : 'S';
237  // Initialize from database:
238 
239  MMDetectorHelper aHelper;
240  MMDetectorDescription* mm = aHelper.Get_MMDetector(sector_l, std::abs(getStationEta()), getStationPhi(), m_ml, side);
241  MMReadoutParameters roParam = mm->GetReadoutParameters();
242 
243  double ylFrame = mm->ylFrame();
244  double ysFrame = mm->ysFrame();
245  double pitch = roParam.stripPitch;
246  m_sWidthChamber = mm->sWidth(); // bottom base length (full chamber)
247  m_lWidthChamber = mm->lWidth(); // top base length (full chamber)
248  m_lengthChamber = mm->Length(); // height of the trapezoid (full chamber)
249  m_tckChamber = mm->Tck(); // thickness (full chamber)
250  m_halfX = roParam.activeH / 2; // 0.5*radial_size (active area)
251  m_minHalfY = roParam.activeBottomLength / 2; // 0.5*bottom length (active area)
252  m_maxHalfY = roParam.activeTopLength / 2; // 0.5*top length (active area)
253  m_offset = -0.5*(ylFrame - ysFrame); // radial dist. of active area center w.r.t. chamber center
254  assign(roParam.readoutSide, m_readoutSide);
255 
256  for (int il = 0; il < m_nlayers; il++) {
257  // identifier of the first channel to retrieve max number of strips
258  Identifier id = m_idHelper.channelID(identify(), m_ml, il + 1, 1);
259  int chMax = m_idHelper.channelMax(id);
260  if (chMax < 0) {
261  THROW_EXCEPTION("MMReadoutElement -- Max number of strips not a valid value" );
262  }
263  MuonChannelDesign& design = m_etaDesign[il];
264 
266  design.detType = MuonChannelDesign::DetType::MM;
267  design.inputPitch = pitch;
268  design.thickness = roParam.gasThickness;
269  design.nMissedTopEta = roParam.nMissedTopEta; // #of eta strips that are not connected to any FE board
270  design.nMissedBottomEta = roParam.nMissedBottomEta;
271  design.nMissedTopStereo = roParam.nMissedTopStereo; // #of stereo strips that are not connected to any FE board
272  design.nMissedBottomStereo = roParam.nMissedBottomStereo;
273  design.totalStrips = roParam.tStrips;
275  design.defineTrapezoid(m_minHalfY, m_maxHalfY,m_halfX, - roParam.stereoAngle.at(il));
277  design.inputWidth = pitch * std::cos(design.stereoAngle());
278 
279  if (!design.hasStereoAngle()) { // eta layers
280  design.nch = design.totalStrips - design.nMissedBottomEta - design.nMissedTopEta;
281  design.setFirstPos(-0.5 * design.xSize() + pitch);
282  } else { // stereo layers
283  design.nch = design.totalStrips - design.nMissedBottomStereo - design.nMissedTopStereo;
284  design.setFirstPos( -0.5 * design.xSize() +
285  (1 + design.nMissedBottomStereo - design.nMissedBottomEta) * pitch);
286  }
287 
288  ATH_MSG_DEBUG("initDesign:" << getStationName() << " layer " << il << ", strip pitch " << design.inputPitch
289  << ", nstrips " << design.nch << " stereo " << design.stereoAngle() / Gaudi::Units::degree );
290  }
291  }

◆ initDesignSqLite()

void MuonGM::MMReadoutElement::initDesignSqLite ( )
private

The stereo angle is defined clock-wise from the y-axis

Input width is defined as the distance between two channels

Definition at line 136 of file MMReadoutElement.cxx.

136  {
137 
138  ISvcLocator* svcLocator = Gaudi::svcLocator(); // from Bootstrap
139  IGeoDbTagSvc* geoDbTag{nullptr};
140  if (svcLocator->service("GeoDbTagSvc",geoDbTag).isFailure()) {
141  THROW_EXCEPTION("Could not locate GeoDbTagSvc");
142  }
143  IRDBAccessSvc *accessSvc{nullptr};
144  if (svcLocator->service(geoDbTag->getParamSvcName(),accessSvc).isFailure()) {
145  THROW_EXCEPTION("Could not locate " << geoDbTag->getParamSvcName() );
146  }
147  const char sector_l = getStationName()[2];
148  IRDBRecordset_ptr wmmRec = accessSvc->getRecordsetPtr("WMM","","");
149  for (unsigned int ind = 0; ind < wmmRec->size(); ind++) {
150  std::string WMM_TYPE = (*wmmRec)[ind]->getString("WMM_TYPE");
151  if (sector_l != WMM_TYPE[4]){
152  continue;
153  }
154  if (std::abs(getStationEta())!=(int) (WMM_TYPE[6]-'0')) {
155  continue;
156  }
157  if (m_ml != (int) (WMM_TYPE[12]-'0')){
158  continue;
159  }
160  const double Tck = (*wmmRec)[ind]->getDouble("Tck");
161  const double activeBottomLength = (*wmmRec)[ind]->getDouble("activeBottomLength");
162  const double activeH = (*wmmRec)[ind]->getDouble("activeH");
163  const double activeTopLength = (*wmmRec)[ind]->getDouble("activeTopLength");
164  const double gasTck = (*wmmRec)[ind]->getDouble("gasTck");
165  const int nMissedBottomEta = (*wmmRec)[ind]->getInt("nMissedBottomEta");
166  const int nMissedBottomStereo = (*wmmRec)[ind]->getInt("nMissedBottomStereo");
167  const int nMissedTopEta = (*wmmRec)[ind]->getInt("nMissedTopEta");
168  const int nMissedTopStereo = (*wmmRec)[ind]->getInt("nMissedTopStereo");
169 
170  assign(tokenizeInt((*wmmRec)[ind]->getString("readoutSide"), ";"), m_readoutSide);
171  const std::vector<double> stereoAngle{tokenizeDouble((*wmmRec)[ind]->getString("stereoAngle"), ";")};
172  const double stripPitch = (*wmmRec)[ind]->getDouble("stripPitch");
173  const int totalStrips = (*wmmRec)[ind]->getInt ("totalStrips");
174  const double ylFrame = (*wmmRec)[ind]->getDouble("ylFrame");
175  const double ysFrame = (*wmmRec)[ind]->getDouble("ysFrame");
176 
177  m_tckChamber = Tck; // thickness (full chamber)
178  m_halfX = activeH / 2; // 0.5*radial_size (active area)
179  m_minHalfY = activeBottomLength / 2; // 0.5*bottom length (active area)
180  m_maxHalfY = activeTopLength / 2; // 0.5*top length (active area)
181  m_offset = -0.5*(ylFrame - ysFrame); // radial dist. of active area center w.r.t. chamber center
182  for (int il = 0; il < m_nlayers; il++) {
183  // identifier of the first channel to retrieve max number of strips
184  Identifier id = m_idHelper.channelID(identify(), m_ml, il + 1, 1);
185  int chMax = m_idHelper.channelMax(id);
186  if (chMax < 0) {
187  THROW_EXCEPTION("MMReadoutElement -- Max number of strips not a valid value" );
188  }
189  MuonChannelDesign& design = m_etaDesign[il];
190 
192  design.detType = MuonChannelDesign::DetType::MM;
193  design.inputPitch = stripPitch;
194  design.thickness = gasTck;
195  design.nMissedTopEta = nMissedTopEta; // #of eta strips that are not connected to any FE board
196  design.nMissedBottomEta = nMissedBottomEta;
197  design.nMissedTopStereo = nMissedTopStereo; // #of stereo strips that are not connected to any FE board
198  design.nMissedBottomStereo = nMissedBottomStereo;
199  design.totalStrips = totalStrips;
201  design.defineTrapezoid(m_minHalfY, m_maxHalfY,m_halfX, -stereoAngle[il]);
203  design.inputWidth = stripPitch * std::cos(design.stereoAngle());
204 
205  if (!design.hasStereoAngle()) { // eta layers
206  design.nch = design.totalStrips - design.nMissedBottomEta - design.nMissedTopEta;
207  design.setFirstPos(-0.5 * design.xSize() + stripPitch);
208  } else { // stereo layers
209  design.nch = design.totalStrips - design.nMissedBottomStereo - design.nMissedTopStereo;
210  design.setFirstPos( -0.5 * design.xSize() + (1 + design.nMissedBottomStereo - design.nMissedBottomEta) * stripPitch);
211  }
212  ATH_MSG_DEBUG("initDesign:" << getStationName() << " layer " << il
213  << ", strip pitch " << design.inputPitch << ", nstrips " << design.nch
214  << " stereo " << design.stereoAngle() / Gaudi::Units::degree );
215  }
216  }
217  }

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }

◆ insideActiveBounds()

bool MuonGM::MMReadoutElement::insideActiveBounds ( const Identifier id,
const Amg::Vector2D locpos,
double  tol1 = 0.,
double  tol2 = 0. 
) const
inline

boundary check Wrapper Trk::PlaneSurface::insideBounds() taking into account the passivated width

Definition at line 257 of file MMReadoutElement.h.

257  {
258  const MuonChannelDesign* design = getDesign(id);
259  if(!design) return false;
260  // Get the nearest strip number; not the time yet to check boundaries (in case of tolerance)
261  int stripNo = stripNumber(locpos, id);
262  if (stripNo < 0) stripNo = (locpos.x()<0) ? 1 : design->totalStrips;
264 
265  // ** Horizontal passivation: mask entire strips
266  //==============================================
267  int pcb = (stripNo-1)/1024 + 1; // starts from 1
268  int pcbStrip = stripNo % 1024;// - 1024*(pcb - 1);
270  // if(m_passivData && !pcbPassiv.valid) return false;
271  // the passivated width is constant along the PCB edge (not along y for stereo strips)
272  bool topPcb{pcb == 5 || (std::abs(getStationEta()) == 2 && pcb == 3)};
273  int pcbStripMin = 1 + (int)std::floor((design->passivatedHeight(pcbPassiv.bottom, pcb ==1) + 0.5*design->inputPitch - tol1)/design->inputPitch); // first pcb strip surviving passivation
274  int pcbStripMax = 1024 - (int)std::floor((design->passivatedHeight(pcbPassiv.top, topPcb) + 0.5*design->inputPitch - tol1)/design->inputPitch); // last pcb strip surviving passivation
275  if(pcbStrip < pcbStripMin || pcbStrip > pcbStripMax) return false;
276 
277  // ** Vertical passivation: cut strips from left and right
278  //=======================================
279  return bounds(id).inside(locpos, tol1, tol2 - design->passivatedLength(locpos[1]<0 ? pcbPassiv.left : pcbPassiv.right , locpos[1] < 0));
280  }

◆ largeSector()

bool MuonGM::MuonReadoutElement::largeSector ( ) const
inherited

Definition at line 49 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

49  {
50  // this doesn't apply to TGC
51  if(m_statname.size() >= 3){
52  char c = m_statname[2];
53  if (c == 'L')
54  return true;
55  else if (c == 'S')
56  return false;
57  else {
58  if (c == 'E' || c == 'F' || c == 'G') return false;
59  if (c == 'M' || c == 'R') return true;
60  }
61  }
62  ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" largeSector() - is this station a larger sector answer is no for readout element "<<m_idHelperSvc->toStringDetEl(identify()));
63  throw std::runtime_error("Unknown sector");
64  return false;
65  }

◆ layerHash() [1/2]

int MuonGM::MMReadoutElement::layerHash ( const Identifier id) const
inlinefinaloverridevirtual

returns the hash to be used to look up the normal and center in the MuonClusterReadoutElement tracking cache

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 185 of file MMReadoutElement.h.

185 { return layerHash(m_idHelper.gasGap(id)); }

◆ layerHash() [2/2]

int MuonGM::MMReadoutElement::layerHash ( int  gasGap) const
inline

returns the hash to be used to look up the normal and center in the MuonClusterReadoutElement tracking cache

Definition at line 187 of file MMReadoutElement.h.

187 { return gasGap - 1; }

◆ localToGlobalCoords()

Amg::Vector3D MuonGM::MMReadoutElement::localToGlobalCoords ( const Amg::Vector3D locPos,
const Identifier id 
) const

simHit local (SD) To Global position - to be used by MuonGeoAdaprors only

Definition at line 345 of file MMReadoutElement.cxx.

345  {
346  int gg = m_idHelper.gasGap(id);
347  //const MuonChannelDesign* design = getDesign(id);
348  Amg::Vector3D locPos_ML = (m_Xlg[gg - 1]) * Amg::getTranslateZ3D(m_offset) *
349  // (design->hasStereoAngle() ?
350  // Amg::AngleAxis3D(90. * CLHEP::deg, Amg::Vector3D::UnitY()) * Amg::AngleAxis3D(design->stereoAngle(), Amg::Vector3D::UnitZ()) *
351  // Amg::AngleAxis3D(-90. * CLHEP::deg, Amg::Vector3D::UnitY()) : AmgSymMatrix(3)::Identity())*
352  locPos;
353 
354  ATH_MSG_DEBUG("position coordinates in the gas-gap r.f.: " << Amg::toString(locPos) );
355  ATH_MSG_DEBUG("position coordinates in the multilayer r.f.: " << Amg::toString(locPos_ML) );
356  return absTransform() * m_delta * locPos_ML;
357  }

◆ manager()

const MuonDetectorManager * MuonGM::MuonReadoutElement::manager ( ) const
inlineprotectedinherited

◆ measuresPhi()

bool MuonGM::MMReadoutElement::measuresPhi ( const Identifier id) const
inlinefinaloverridevirtual

returns whether the current identifier corresponds to a phi measurement

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 191 of file MMReadoutElement.h.

191 { return false; }

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 164 of file AthMessaging.h.

165 {
166  MsgStream* ms = m_msg_tls.get();
167  if (!ms) {
168  if (!m_initialized.test_and_set()) initMessaging();
169  ms = new MsgStream(m_imsg,m_nm);
170  m_msg_tls.reset( ms );
171  }
172 
173  ms->setLevel (m_lvl);
174  return *ms;
175 }

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level  lvl) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 179 of file AthMessaging.h.

180 { return msg() << lvl; }

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152 {
153  if (!m_initialized.test_and_set()) initMessaging();
154  if (m_lvl <= lvl) {
155  msg() << lvl;
156  return true;
157  } else {
158  return false;
159  }
160 }

◆ normal() [1/3]

const Amg::Vector3D & MuonGM::MuonClusterReadoutElement::normal ( ) const
inlineoverridevirtualinherited

Return the normal of the element.

Implements Trk::TrkDetElementBase.

Definition at line 126 of file MuonClusterReadoutElement.h.

126 { return normal(0); }

◆ normal() [2/3]

const Amg::Vector3D & MuonGM::MuonClusterReadoutElement::normal ( const Identifier id) const
inlineoverridevirtualinherited

Return the normal of the surface associated with this identifier In the case of silicon it returns the same as normal()

Implements Trk::TrkDetElementBase.

Definition at line 132 of file MuonClusterReadoutElement.h.

132 { return normal(layerHash(id)); }

◆ normal() [3/3]

const Amg::Vector3D & MuonGM::MuonClusterReadoutElement::normal ( int  layHash) const
inlineinherited

Definition at line 173 of file MuonClusterReadoutElement.h.

173  {
174  if (!m_surfaceData) {
175  ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" "<<__func__<<" Requesting normal but cache is empty");
176  throw std::runtime_error("Empty normal cache");
177  }
178  if (hash == -1 || hash >= (int)m_surfaceData->m_layerNormals.size()) {
179  ATH_MSG_WARNING("normal hash out of range: " << hash << " elements " << m_surfaceData->m_layerNormals.size());
180  return m_surfaceData->m_layerNormals.front();
181  }
182  return m_surfaceData->m_layerNormals[hash];
183  }

◆ numberOfLayers()

int MuonGM::MMReadoutElement::numberOfLayers ( bool  ) const
inlineoverridevirtual

number of layers in phi/eta projection

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 289 of file MMReadoutElement.h.

289 { return m_nlayers; }

◆ numberOfMissingBottomStrips()

int MuonGM::MMReadoutElement::numberOfMissingBottomStrips ( const Identifier layerId) const
inline

Definition at line 306 of file MMReadoutElement.h.

306  {
307  const MuonChannelDesign* design = getDesign(id);
308  if (!design) return -1;
309  return design->numberOfMissingBottomStrips();
310  }

◆ numberOfMissingTopStrips()

int MuonGM::MMReadoutElement::numberOfMissingTopStrips ( const Identifier layerId) const
inline

Number of missing bottom and top strips (not read out)

Definition at line 300 of file MMReadoutElement.h.

300  {
301  const MuonChannelDesign* design = getDesign(id);
302  if (!design) return -1;
303  return design->numberOfMissingTopStrips();
304  }

◆ numberOfStrips() [1/2]

int MuonGM::MMReadoutElement::numberOfStrips ( const Identifier layerId) const
inlinefinaloverridevirtual

number of strips per layer

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 291 of file MMReadoutElement.h.

291 { return m_etaDesign[layerHash(layerId)].totalStrips; }

◆ numberOfStrips() [2/2]

int MuonGM::MMReadoutElement::numberOfStrips ( int  lay,
bool  measuresPhi 
) const
inlinefinaloverridevirtual

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 293 of file MMReadoutElement.h.

293  {
294  if (lay > -1 && lay < static_cast<int>(m_etaDesign.size()))
295  return m_etaDesign[lay].totalStrips;
296  else
297  return -1;
298  }

◆ parentMuonStation()

const MuonStation * MuonGM::MuonReadoutElement::parentMuonStation ( ) const
inherited

◆ parentMuonStationPos()

Amg::Vector3D MuonGM::MuonReadoutElement::parentMuonStationPos ( ) const
inherited

Definition at line 137 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

137  {
138  return parentMuonStation()->getTransform().translation();
139  }

◆ parentStationPV()

PVConstLink MuonGM::MuonReadoutElement::parentStationPV ( ) const
inherited

◆ posOnDefChamber()

void MuonGM::MMReadoutElement::posOnDefChamber ( Amg::Vector3D locPosML) const

transform a position (in chamber-frame coordinates) to the deformed-chamber geometry

Definition at line 390 of file MMReadoutElement.cxx.

390  {
391 
392  // note: amdb frame (s, z, t) = chamber frame (y, z, x)
393  if (!has_BLines()) return;
394 
395  double t0 = locPosML.x();
396  double s0 = locPosML.y();
397  double z0 = locPosML.z();
398  double width = m_sWidthChamber + (m_lWidthChamber - m_sWidthChamber)*(z0/m_lengthChamber + 0.5); // because z0 is in [-length/2, length/2]
399 
400  double s_rel = s0/(width/2.); // in [-1, 1]
401  double z_rel = z0/(m_lengthChamber/2.); // in [-1, 1]
402  double t_rel = t0/(m_tckChamber/2.); // in [-1, 1]
403 
404  // b-line parameters
405  using Parameter = BLinePar::Parameter;
406  double bp = m_BLinePar->getParameter(Parameter::bp);
408  double sp = m_BLinePar->getParameter(Parameter::sp);
409  double sn = m_BLinePar->getParameter(Parameter::sn);
410  double tw = m_BLinePar->getParameter(Parameter::tw);
411  double eg = m_BLinePar->getParameter(Parameter::eg)*1.e-3;
412  double ep = m_BLinePar->getParameter(Parameter::ep)*1.e-3;
413  double en = m_BLinePar->getParameter(Parameter::en)*1.e-3;
414 
415  double ds{0.}, dz{0.}, dt{0.};
416 
417  if (bp != 0 || bn != 0)
418  dt += 0.5*(s_rel*s_rel - 1)*((bp + bn) + (bp - bn)*z_rel);
419 
420  if (sp != 0 || sn != 0)
421  dt += 0.5*(z_rel*z_rel - 1)*((sp + sn) + (sp - sn)*s_rel);
422 
423  if (tw != 0) {
424  dt -= tw*s_rel*z_rel;
425  dz += tw*s_rel*t_rel*m_tckChamber/m_lengthChamber;
426  }
427 
428  if (eg != 0) {
429  dt += t0*eg;
430  ds += s0*eg;
431  dz += z0*eg;
432  }
433 
434  if (ep != 0 || en != 0) {
435  // the formulas below differ from those in Christoph's talk
436  // because are origin for NSW is at the center of the chamber,
437  // whereas in the talk (i.e. MDTs), it is at the bottom!
438  double delta = s_rel*s_rel * ((ep + en)*s_rel/6 + (ep - en)/4);
439  double phi = s_rel * ((ep + en)*s_rel + (ep - en)) / 2;
440  dt += phi*t0;
441  ds += delta*width/2;
442  dz += phi*z0;
443  }
444 
445  locPosML[0] += dt;
446  locPosML[1] += ds;
447  locPosML[2] += dz;
448  }

◆ refreshCache()

void MuonGM::MuonReadoutElement::refreshCache ( )
inherited

Definition at line 177 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

177  {
178  clearCache();
179  fillCache();
180  }

◆ setBLinePar()

void MuonGM::MMReadoutElement::setBLinePar ( const BLinePar bLine)

read B-line (chamber-deformation) parameters

Definition at line 385 of file MMReadoutElement.cxx.

385  {
386  ATH_MSG_VERBOSE("Setting B-line for " << idHelperSvc()->toStringDetEl(identify())<<" "<<bLine);
387  m_BLinePar = &bLine;
388  }

◆ setChamberLayer()

void MuonGM::MMReadoutElement::setChamberLayer ( int  ml)
inline

set methods only to be used by MuonGeoModel

Definition at line 118 of file MMReadoutElement.h.

118 { m_ml = ml; }

◆ setDelta()

void MuonGM::MMReadoutElement::setDelta ( const ALinePar aline)

Definition at line 361 of file MMReadoutElement.cxx.

361  {
362  // amdb frame (s, z, t) = chamber frame (y, z, x)
363  if (aline) {
364  m_delta = aline.delta();
365  // The origin of the rotation axes is at the center of the active area
366  // in the z (radial) direction. Account for this shift in the definition
367  // of m_delta so that it can be applied on chamber frame coordinates.
368  m_ALinePar = &aline;
370  refreshCache();
371  } else {
372  clearALinePar();
373  }
374  }

◆ setHasCutouts()

void MuonGM::MuonReadoutElement::setHasCutouts ( bool  flag)
inlineinherited

◆ setIdentifier()

void MuonGM::MuonReadoutElement::setIdentifier ( const Identifier id)
inherited

Sets the Identifier, hashes & station names.

Definition at line 156 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

156  {
157  m_id = id;
158  if (!m_idHelperSvc->isMuon(id)) {
159  ATH_MSG_FATAL("The Identifier "<<m_idHelperSvc->toString(id)<<" is not a muon one.");
160  throw std::runtime_error("Invalid Identifier set");
161  }
162  m_stIdx = m_idHelperSvc->stationName(id);
163  m_eta = m_idHelperSvc->stationEta(id);
164  m_phi = m_idHelperSvc->stationPhi(id);
165  m_idhash = m_idHelperSvc->moduleHash(id);
166  m_detectorElIdhash = m_idHelperSvc->detElementHash(id);
167  }

◆ setIndexOfREinMuonStation()

void MuonGM::MuonReadoutElement::setIndexOfREinMuonStation ( )
privateinherited

Definition at line 104 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

104  {
105  PVConstLink par = parentStationPV();
106  if (par == PVConstLink(nullptr)) {
107  ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" No parent station found for "<<m_idHelperSvc->toStringDetEl(identify()));
108  throw std::runtime_error("Parent station is a nullptr");
109  }
110  Query<unsigned int> c = par->indexOf(getMaterialGeom());
111  if (c.isValid()) {
113  } else
115  }

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level  lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29 {
30  m_lvl = lvl;
31 }

◆ setLongRsize()

void MuonGM::MuonReadoutElement::setLongRsize ( double  v)
inherited

◆ setLongSsize()

void MuonGM::MuonReadoutElement::setLongSsize ( double  v)
inherited

◆ setLongZsize()

void MuonGM::MuonReadoutElement::setLongZsize ( double  v)
inherited

◆ setParentMuonStation()

void MuonGM::MuonReadoutElement::setParentMuonStation ( const MuonStation mstat)
inherited

Definition at line 128 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

128  {
129  m_parentMuonStation = mstat;
130  if (mstat->getPhysVol()) {
131  setParentStationPV(mstat->getPhysVol());
132  }
133  }

◆ setParentStationPV() [1/2]

void MuonGM::MuonReadoutElement::setParentStationPV ( )
inherited

Definition at line 77 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

77  {
78  if (m_parentStationPV) return;
79 
80  std::string::size_type npos;
81  PVConstLink pStat = PVConstLink(nullptr);
82  PVConstLink myphysvol(getMaterialGeom());
83 
84  std::string name = (myphysvol->getLogVol())->getName();
85  if ((npos = name.find("Station")) != std::string::npos) {
86  pStat = myphysvol;
87  } else {
88  for (unsigned int k = 0; k < 10; k++) {
89  pStat = myphysvol->getParent();
90  if (pStat == PVConstLink(nullptr)) break;
91  name = (pStat->getLogVol())->getName();
92  if ((npos = name.find("Station")) != std::string::npos) { break; }
93  myphysvol = pStat;
94  }
95  }
96  m_parentStationPV = pStat;
98  }

◆ setParentStationPV() [2/2]

void MuonGM::MuonReadoutElement::setParentStationPV ( const PVConstLink &  x)
inherited

◆ setRsize()

void MuonGM::MuonReadoutElement::setRsize ( double  v)
inherited

◆ setSsize()

void MuonGM::MuonReadoutElement::setSsize ( double  v)
inherited

◆ setStationName()

void MuonGM::MuonReadoutElement::setStationName ( const std::string &  str)
inherited

◆ setStationS()

void MuonGM::MuonReadoutElement::setStationS ( double  v)
inherited

◆ setTechnologyName()

void MuonGM::MuonReadoutElement::setTechnologyName ( const std::string &  str)
inherited

◆ setZsize()

void MuonGM::MuonReadoutElement::setZsize ( double  v)
inherited

◆ sideA()

bool MuonGM::MuonReadoutElement::sideA ( ) const
inlineinherited

◆ sideC()

bool MuonGM::MuonReadoutElement::sideC ( ) const
inlineinherited

◆ smallSector()

bool MuonGM::MuonReadoutElement::smallSector ( ) const
inherited

Definition at line 67 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

67  {
68  // this doesn't apply to TGC
69  return (!largeSector());
70  }

◆ spacePointPosition() [1/3]

bool MuonGM::MMReadoutElement::spacePointPosition ( const Identifier layerId,
const Amg::Vector2D localPos,
Amg::Vector3D pos 
) const

Method calculating the global position of the hit on surface taking the as-built corrections into account.

The local position is expressed in the reference frame of each individual layer

Definition at line 452 of file MMReadoutElement.cxx.

452  {
453 
454  pos = Amg::Vector3D(lpos.x(), lpos.y(), 0.);
455 
456  const MuonChannelDesign* design = getDesign(layerId);
457  if (!design) {
458  ATH_MSG_WARNING("Unable to get MuonChannelDesign, therefore cannot provide position corrections. Returning." );
459  return false;
460  }
461 
462  bool conditionsApplied{false};
463  Amg::Transform3D trfToML{Amg::Transform3D::Identity()};
464 
465 #ifndef SIMULATIONBASE
466  //*********************
467  // As-Built (MuonNswAsBuilt is not included in AthSimulation)
468  //*********************
470  if (sc) {
471 
472  // express the local position w.r.t. the nearest active strip
473  Amg::Vector2D rel_pos;
474  int istrip = design->positionRelativeToStrip(lpos, rel_pos);
475  if (istrip < 0) {
476  ATH_MSG_WARNING("As-built corrections are provided only within the active area. Returning." );
477  return false;
478  }
479 
480  // setup strip calculator
483  strip_id.ilayer = m_idHelper.gasGap(layerId);
484  strip_id.istrip = istrip;
485 
486  // get the position coordinates, in the chamber frame, from NswAsBuilt.
487  // Applying a 2.75mm correction along the layer normal, since NswAsBuilt considers the layer
488  // on the readout strips, whereas Athena wants it at the middle of the drift gap.
489  NswAsBuilt::StripCalculator::position_t calcPos = sc->getPositionAlongStrip(NswAsBuilt::Element::ParameterClass::CORRECTION, strip_id, rel_pos.y(), rel_pos.x());
490 
492  pos = calcPos.pos;
493  pos[0] += strip_id.ilayer%2 ? -2.75 : 2.75;
494 
495  // signal that pos is now in the chamber reference frame
496  // (don't go back to the layer frame yet, since we may apply b-lines later on)
497  trfToML = m_delta.inverse()*absTransform().inverse()*transform(layerId);
498  conditionsApplied = true;
499  } else {
500  ATH_MSG_DEBUG( "No as-built corrections provided for "<<idHelperSvc()->toStringDetEl(identify())<<" layer: "<<strip_id.ilayer);
501  }
502  }
503 #endif
504 
505  //*********************
506  // B-Lines
507  //*********************
508  if (has_BLines()) {
509  // go to the multilayer reference frame if we are not already there
510  if (!conditionsApplied) {
511  trfToML = m_delta.inverse()*absTransform().inverse()*transform(layerId);
512  pos = trfToML*pos;
513 
514  // signal that pos is now in the multilayer reference frame
515  conditionsApplied = true;
516  }
518  }
519 
520  // back to the layer reference frame from where we started
521  if (conditionsApplied) pos = trfToML.inverse()*pos;
522 
523  return true;
524  }

◆ spacePointPosition() [2/3]

bool MuonGM::MMReadoutElement::spacePointPosition ( const Identifier phiId,
const Identifier etaId,
Amg::Vector2D pos 
) const
inlinefinaloverridevirtual

space point position for a given pair of phi and eta identifiers The LocalPosition is expressed in the reference frame of the phi surface.

If one of the identifiers is outside the valid range, the function will return false

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 312 of file MMReadoutElement.h.

312  {
313  if (!stripPosition(etaId, pos)) return false;
314  const MuonChannelDesign* phi_design = getDesign(phiId);
315  const MuonChannelDesign* eta_design = getDesign(etaId);
316  if (!phi_design || !eta_design) return false;
317  pos = phi_design->rotation() * eta_design->rotation().inverse()*pos;
318  return true;
319  }

◆ spacePointPosition() [3/3]

bool MuonGM::MMReadoutElement::spacePointPosition ( const Identifier phiId,
const Identifier etaId,
Amg::Vector3D pos 
) const
inlinefinaloverridevirtual

Global space point position for a given pair of phi and eta identifiers If one of the identifiers is outside the valid range, the function will return false.

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 321 of file MMReadoutElement.h.

321  {
323  spacePointPosition(phiId, etaId, lpos);
324  surface(phiId).localToGlobal(lpos, pos, pos);
325  return true;
326  }

◆ stereoAngle()

double MuonGM::MMReadoutElement::stereoAngle ( const Identifier id) const
inline

Wrapper to MuonChannelDesign::stereoAngle()

Definition at line 215 of file MMReadoutElement.h.

215  {
216  const MuonChannelDesign* design = getDesign(id);
217  if (!design) return 0;
218  return design->stereoAngle();
219  }

◆ stripActiveLength()

double MuonGM::MMReadoutElement::stripActiveLength ( const Identifier id) const
inline

Definition at line 227 of file MMReadoutElement.h.

227  {
229  }

◆ stripActiveLengthLeft()

double MuonGM::MMReadoutElement::stripActiveLengthLeft ( const Identifier id) const
inline

Definition at line 231 of file MMReadoutElement.h.

231  {
232  const MuonChannelDesign* design = getDesign(id);
233  if (!design) return -1;
234 
236  // Let's keep it for the moment as we have to think about proper treatmeant of the non-passivated stuff
237  // if (m_passivData && !passiv.valid) return -1;
238 
239  double l = design->channelHalfLength(m_idHelper.channel(id), true);
240  if (l < 0) return -1;
241  return std::max(0., l - design->passivatedLength(passiv.left, true));
242  }

◆ stripActiveLengthRight()

double MuonGM::MMReadoutElement::stripActiveLengthRight ( const Identifier id) const
inline

Definition at line 244 of file MMReadoutElement.h.

244  {
245  const MuonChannelDesign* design = getDesign(id);
246  if (!design) return -1;
247 
249  // Let's keep it for the moment as we have to think about proper treatmeant of the non-passivated stuff
250  // if (m_passivData && !passiv.valid) return -1;
251 
252  double l = design->channelHalfLength(m_idHelper.channel(id), false);
253  if (l < 0) return -1;
254  return std::max(0., l - design->passivatedLength(passiv.right, false));
255  }

◆ stripGlobalPosition()

bool MuonGM::MMReadoutElement::stripGlobalPosition ( const Identifier id,
Amg::Vector3D gpos 
) const
inline

Definition at line 282 of file MMReadoutElement.h.

282  {
284  if (!stripPosition(id, lpos)) return false;
285  surface(id).localToGlobal(lpos, Amg::Vector3D::Zero(), gpos);
286  return true;
287  }

◆ stripLength()

double MuonGM::MMReadoutElement::stripLength ( const Identifier id) const
inline

strip length Wrappers to MuonChannelDesign::channelLength() taking into account the passivated width

Definition at line 221 of file MMReadoutElement.h.

221  {
222  const MuonChannelDesign* design = getDesign(id);
223  if (!design) return -1;
224  return design->channelLength(m_idHelper.channel(id));
225  }

◆ stripNumber()

int MuonGM::MMReadoutElement::stripNumber ( const Amg::Vector2D pos,
const Identifier id 
) const
inlinefinaloverridevirtual

strip number corresponding to local position.

If the local position is outside the active volume, the function first shift the position back into the active volume

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 202 of file MMReadoutElement.h.

202  {
203  // returns the position of the strip at pos, assuming the nominal geometry (no as-built conditions)
204  const MuonChannelDesign* design = getDesign(id);
205  if (!design) return -1;
206  return design->channelNumber(pos);
207  }

◆ stripPosition()

bool MuonGM::MMReadoutElement::stripPosition ( const Identifier id,
Amg::Vector2D pos 
) const
inlinefinaloverridevirtual

strip position – local or global If the strip number is outside the range of valid strips, the function will return false

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 209 of file MMReadoutElement.h.

209  {
210  const MuonChannelDesign* design = getDesign(id);
211  if (!design) return false;
212  return design->center(m_idHelper.channel(id), pos);
213  }

◆ surface() [1/3]

const Trk::PlaneSurface & MuonGM::MuonClusterReadoutElement::surface ( ) const
inlineoverridevirtualinherited

access to chamber surface (phi orientation), uses the first gas gap

Implements Trk::TrkDetElementBase.

Definition at line 123 of file MuonClusterReadoutElement.h.

123 { return surface(0); }

◆ surface() [2/3]

const Trk::PlaneSurface & MuonGM::MuonClusterReadoutElement::surface ( const Identifier id) const
inlineoverridevirtualinherited

access to layer surfaces

Implements Trk::TrkDetElementBase.

Definition at line 129 of file MuonClusterReadoutElement.h.

129 { return surface(surfaceHash(id)); }

◆ surface() [3/3]

const Trk::PlaneSurface & MuonGM::MuonClusterReadoutElement::surface ( int  surfHash) const
inlineinherited

access to layer surfaces

Definition at line 135 of file MuonClusterReadoutElement.h.

135  {
136  if (!m_surfaceData) {
137  ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" "<<__func__<<" Requesting surface but cache is empty");
138  throw std::runtime_error("Empty surface cache");
139  }
140  if (hash == -1 || hash >= (int)m_surfaceData->m_layerSurfaces.size()) {
141  ATH_MSG_WARNING(" surface hash out of range: " << hash << " elements "
142  << m_surfaceData->m_layerSurfaces.size());
143  return *m_surfaceData->m_layerSurfaces.front();
144  }
145  return *m_surfaceData->m_layerSurfaces[hash];
146  }

◆ surfaceHash() [1/2]

int MuonGM::MMReadoutElement::surfaceHash ( const Identifier id) const
inlinefinaloverridevirtual

returns the hash to be used to look up the surface and transform in the MuonClusterReadoutElement tracking cache

Implements MuonGM::MuonClusterReadoutElement.

Definition at line 181 of file MMReadoutElement.h.

181 { return surfaceHash(m_idHelper.gasGap(id), 0); }

◆ surfaceHash() [2/2]

int MuonGM::MMReadoutElement::surfaceHash ( int  gasGap,
int  measPhi 
) const
inline

returns the hash to be used to look up the surface and transform in the MuonClusterReadoutElement tracking cache

Definition at line 183 of file MMReadoutElement.h.

183 { return gasGap - 1; } // measPhi not used

◆ surfaces()

std::vector< const Trk::Surface * > MuonGM::MuonClusterReadoutElement::surfaces ( ) const
inlinevirtualinherited

returns all the surfaces contained in this detector element

Definition at line 197 of file MuonClusterReadoutElement.h.

197  {
198  std::vector<const Trk::Surface*> elementSurfaces;
199 
200  // create when first time requested and when possible
201  if (m_surfaceData) {
202  elementSurfaces.reserve(m_surfaceData->m_layerSurfaces.size());
203  for (const std::unique_ptr<Trk::PlaneSurface>& ptr : m_surfaceData->m_layerSurfaces) {
204  elementSurfaces.emplace_back(ptr.get());
205  }
206  }
207  // return the element surfaces
208  return elementSurfaces;
209  }

◆ toParentStation()

Amg::Transform3D MuonGM::MuonReadoutElement::toParentStation ( ) const
inherited

Definition at line 117 of file MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx.

117  {
118  PVConstLink par = parentStationPV();
119  if (par == PVConstLink(nullptr)) {
120  ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" No parent station found for "<<m_idHelperSvc->toStringDetEl(identify()));
121  throw std::runtime_error("Parent station is a nullptr");
122  }
123 
124  if (m_indexOfREinMuonStation >= 0) return par->getXToChildVol((unsigned int)m_indexOfREinMuonStation);
125  return GeoTrf::Transform3D::Identity();
126  }

◆ transform() [1/3]

const Amg::Transform3D & MuonGM::MuonClusterReadoutElement::transform ( ) const
inlineoverridevirtualinherited

Return local to global transform.

Implements Trk::TrkDetElementBase.

Definition at line 124 of file MuonClusterReadoutElement.h.

124 { return transform(0); }

◆ transform() [2/3]

const Amg::Transform3D & MuonGM::MuonClusterReadoutElement::transform ( const Identifier id) const
inlineoverridevirtualinherited

Return local to global transform associated with this identifier.

Implements Trk::TrkDetElementBase.

Definition at line 130 of file MuonClusterReadoutElement.h.

130 { return transform(surfaceHash(id)); }

◆ transform() [3/3]

const Amg::Transform3D & MuonGM::MuonClusterReadoutElement::transform ( int  surfHash) const
inlineinherited

Definition at line 148 of file MuonClusterReadoutElement.h.

148  {
149  if (!m_surfaceData) {
150  ATH_MSG_FATAL(__FILE__<<":"<<__LINE__<<" "<<__func__<<" Requesting transform but cache is empty");
151  throw std::runtime_error("Empty transform cache");
152  }
153  if (hash == -1 || hash >= (int)m_surfaceData->m_layerTransforms.size()) {
154  ATH_MSG_WARNING("transform hash out of range: " << hash << " elements "
155  << m_surfaceData->m_layerTransforms.size());
156  return m_surfaceData->m_layerTransforms.front();
157  }
158  return m_surfaceData->m_layerTransforms[hash];
159  }

Friends And Related Function Documentation

◆ ::MuonReadoutGeomCnvAlg

friend class ::MuonReadoutGeomCnvAlg
friend

Definition at line 25 of file MMReadoutElement.h.

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_ALinePar

const ALinePar* MuonGM::MMReadoutElement::m_ALinePar {nullptr}
private

Definition at line 174 of file MMReadoutElement.h.

◆ m_BLinePar

const BLinePar* MuonGM::MMReadoutElement::m_BLinePar {nullptr}
private

Definition at line 175 of file MMReadoutElement.h.

◆ m_caching

int MuonGM::MuonReadoutElement::m_caching {-1}
protectedinherited

0 if we want to avoid caching geometry info for tracking interface

Definition at line 156 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_delta

Amg::Transform3D MuonGM::MMReadoutElement::m_delta {Amg::Transform3D::Identity()}
private

Definition at line 173 of file MMReadoutElement.h.

◆ m_detectorElIdhash

IdentifierHash MuonGM::MuonReadoutElement::m_detectorElIdhash {0}
privateinherited

detector element hash identifier

Definition at line 167 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_eta

int MuonGM::MuonReadoutElement::m_eta {-1}
privateinherited

Identifier field of the station eta.

Definition at line 175 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_etaDesign

std::array<MuonChannelDesign, 4> MuonGM::MMReadoutElement::m_etaDesign {}
private

Definition at line 155 of file MMReadoutElement.h.

◆ m_halfX

double MuonGM::MMReadoutElement::m_halfX {100.}
private

Definition at line 164 of file MMReadoutElement.h.

◆ m_hasCutouts

bool MuonGM::MuonReadoutElement::m_hasCutouts {false}
protectedinherited

true is there are cutouts in the readdout-element

Definition at line 158 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_id

Identifier MuonGM::MuonReadoutElement::m_id {0}
privateinherited

extended data-collection identifier

Definition at line 165 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_idhash

IdentifierHash MuonGM::MuonReadoutElement::m_idhash {0}
privateinherited

data-collection hash identifier

Definition at line 166 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_idHelper

const MmIdHelper& MuonGM::MMReadoutElement::m_idHelper {idHelperSvc()->mmIdHelper()}
private

Definition at line 150 of file MMReadoutElement.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> MuonGM::MuonReadoutElement::m_idHelperSvc {"Muon::MuonIdHelperSvc/MuonIdHelperSvc", "MuonDetectorManager"}
privateinherited

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_indexOfREinMuonStation

int MuonGM::MuonReadoutElement::m_indexOfREinMuonStation {-999}
privateinherited

index of this RE in the mother MuonStation

Definition at line 169 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_lengthChamber

double MuonGM::MMReadoutElement::m_lengthChamber {0.}
private

Definition at line 171 of file MMReadoutElement.h.

◆ m_LongRsize

double MuonGM::MuonReadoutElement::m_LongRsize {-9999.}
protectedinherited

◆ m_LongSsize

double MuonGM::MuonReadoutElement::m_LongSsize {-9999.}
protectedinherited

◆ m_LongZsize

double MuonGM::MuonReadoutElement::m_LongZsize {-9999.}
protectedinherited

size in the specified direction

Definition at line 148 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_lWidthChamber

double MuonGM::MMReadoutElement::m_lWidthChamber {0.}
private

Definition at line 170 of file MMReadoutElement.h.

◆ m_maxHalfY

double MuonGM::MMReadoutElement::m_maxHalfY {2000.}
private

Definition at line 166 of file MMReadoutElement.h.

◆ m_minHalfY

double MuonGM::MMReadoutElement::m_minHalfY {1900.}
private

Definition at line 165 of file MMReadoutElement.h.

◆ m_ml

int MuonGM::MMReadoutElement::m_ml {0}
private

Definition at line 161 of file MMReadoutElement.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_muon_mgr

MuonDetectorManager* MuonGM::MuonReadoutElement::m_muon_mgr {nullptr}
privateinherited

◆ m_nlayers

int MuonGM::MMReadoutElement::m_nlayers {0}
private

Definition at line 157 of file MMReadoutElement.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_offset

double MuonGM::MMReadoutElement::m_offset {0.}
private

Definition at line 167 of file MMReadoutElement.h.

◆ m_parentMuonStation

const MuonStation* MuonGM::MuonReadoutElement::m_parentMuonStation {nullptr}
privateinherited

◆ m_parentStationPV

PVConstLink MuonGM::MuonReadoutElement::m_parentStationPV {nullptr}
privateinherited

◆ m_passivData

const NswPassivationDbData* MuonGM::MMReadoutElement::m_passivData {nullptr}
private

Definition at line 159 of file MMReadoutElement.h.

◆ m_phi

int MuonGM::MuonReadoutElement::m_phi {-1}
privateinherited

Identifier field of the station phi.

Definition at line 177 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_readoutSide

std::array<int, 4> MuonGM::MMReadoutElement::m_readoutSide {}
private

Definition at line 176 of file MMReadoutElement.h.

◆ m_Rsize

double MuonGM::MuonReadoutElement::m_Rsize {-9999.}
protectedinherited

◆ m_Ssize

double MuonGM::MuonReadoutElement::m_Ssize {-9999.}
protectedinherited

◆ m_stationS

double MuonGM::MuonReadoutElement::m_stationS {0.}
privateinherited

◆ m_statname

std::string MuonGM::MuonReadoutElement::m_statname {"XXX0"}
protectedinherited

examples are BMS5, CSS1, EML1

Definition at line 154 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_stIdx

int MuonGM::MuonReadoutElement::m_stIdx {-1}
privateinherited

Identifier field of the station index.

Definition at line 173 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_surfaceData

std::unique_ptr<SurfaceData> MuonGM::MuonClusterReadoutElement::m_surfaceData {}
protectedinherited

Definition at line 120 of file MuonClusterReadoutElement.h.

◆ m_sWidthChamber

double MuonGM::MMReadoutElement::m_sWidthChamber {0.}
private

Definition at line 169 of file MMReadoutElement.h.

◆ m_tckChamber

double MuonGM::MMReadoutElement::m_tckChamber {0.}
private

Definition at line 172 of file MMReadoutElement.h.

◆ m_techname

std::string MuonGM::MuonReadoutElement::m_techname {"TTT0"}
protectedinherited

MDT or RPC or TGC or CSC plus a two digits subtype; example RPC17.

Definition at line 152 of file MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h.

◆ m_type

Trk::DetectorElemType MuonGM::MuonReadoutElement::m_type {Trk::DetectorElemType::SolidState}
privateinherited

◆ m_Xlg

std::array<Amg::Transform3D, 4> MuonGM::MMReadoutElement::m_Xlg {make_array<Amg::Transform3D,4>(Amg::Transform3D::Identity())}
private

Definition at line 178 of file MMReadoutElement.h.

◆ m_Zsize

double MuonGM::MuonReadoutElement::m_Zsize {-9999.}
protectedinherited

◆ s_dummy_passiv

constexpr PCBPassivation MuonGM::MMReadoutElement::s_dummy_passiv {}
staticconstexprprivate

Definition at line 153 of file MMReadoutElement.h.


The documentation for this class was generated from the following files:
MuonGM::MMReadoutElement::stripPosition
virtual bool stripPosition(const Identifier &id, Amg::Vector2D &pos) const override final
strip position – local or global If the strip number is outside the range of valid strips,...
Definition: MMReadoutElement.h:209
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
PlotCalibFromCool.il
il
Definition: PlotCalibFromCool.py:381
python.changerun.bn
bn
Definition: changerun.py:79
MMReadoutParameters::activeH
double activeH
Definition: MMDetectorDescription.h:30
NswAsBuilt::StripCalculator::position_t
Definition: StripCalculator.h:58
MuonGM::MuonClusterReadoutElement::transform
virtual const Amg::Transform3D & transform() const override
Return local to global transform.
Definition: MuonClusterReadoutElement.h:124
dumpTgcDigiDeadChambers.gasGap
list gasGap
Definition: dumpTgcDigiDeadChambers.py:33
checkxAOD.ds
ds
Definition: Tools/PyUtils/bin/checkxAOD.py:257
MMReadoutParameters::nMissedTopEta
int nMissedTopEta
Definition: MMDetectorDescription.h:34
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
CxxUtils::tokenizeDouble
std::vector< double > tokenizeDouble(const std::string &the_str, std::string_view delimiter)
Definition: Control/CxxUtils/Root/StringUtils.cxx:34
MuonGM::MuonReadoutElement::m_statname
std::string m_statname
examples are BMS5, CSS1, EML1
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:154
MMReadoutParameters::tStrips
int tStrips
Definition: MMDetectorDescription.h:42
Trk::SurfaceBounds::inside
virtual bool inside(const Amg::Vector2D &locpo, double tol1=0., double tol2=0.) const =0
Each Bounds has a method inside, which checks if a LocalPosition is inside the bounds.
MuonGM::MuonReadoutElement::absTransform
const Amg::Transform3D & absTransform() const
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:210
MuonGM::MuonReadoutElement::m_id
Identifier m_id
extended data-collection identifier
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:165
max
#define max(a, b)
Definition: cfImp.cxx:41
MuonGM::MMReadoutElement::m_readoutSide
std::array< int, 4 > m_readoutSide
Definition: MMReadoutElement.h:176
MuonGM::MuonReadoutElement::m_techname
std::string m_techname
MDT or RPC or TGC or CSC plus a two digits subtype; example RPC17.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:152
MuonGM::MuonReadoutElement::m_Zsize
double m_Zsize
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:145
MMReadoutParameters::activeBottomLength
double activeBottomLength
Definition: MMDetectorDescription.h:28
MuonGM::MuonClusterReadoutElement::MuonClusterReadoutElement
MuonClusterReadoutElement(GeoVFullPhysVol *pv, MuonDetectorManager *mgr, Trk::DetectorElemType detType)
Definition: MuonClusterReadoutElement.cxx:8
MuonGM::MuonClusterReadoutElement::normal
virtual const Amg::Vector3D & normal() const override
Return the normal of the element.
Definition: MuonClusterReadoutElement.h:126
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
MuonGM::MuonReadoutElement::m_LongRsize
double m_LongRsize
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:147
ParticleTest.eg
eg
Definition: ParticleTest.py:29
MuonGM::MuonReadoutElement::m_eta
int m_eta
Identifier field of the station eta.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:175
MMReadoutParameters::readoutSide
std::vector< int > readoutSide
Definition: MMDetectorDescription.h:24
MuonGM::MuonReadoutElement::m_detectorElIdhash
IdentifierHash m_detectorElIdhash
detector element hash identifier
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:167
NswAsBuilt::stripIdentifier_t::quadruplet
quadrupletIdentifier_t quadruplet
Definition: MuonSpectrometer/MuonDetDescr/MuonNSWAsBuilt/MuonNSWAsBuilt/Identifier.h:82
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
NswAsBuilt::StripCalculator::IsValid::VALID
@ VALID
MuonGM::MuonClusterReadoutElement::center
virtual const Amg::Vector3D & center() const override
Return the center of the element.
Definition: MuonClusterReadoutElement.h:125
MuonGM::MMReadoutElement::AmdbLRSToGlobalTransform
virtual Amg::Transform3D AmdbLRSToGlobalTransform() const override final
Definition: MMReadoutElement.h:141
MuonGM::MuonReadoutElement::fillCache
virtual void fillCache()=0
Trk::DetectorElemType::Tgc
@ Tgc
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
CxxUtils::tokenizeInt
std::vector< int > tokenizeInt(const std::string &the_str, std::string_view delimiter)
Definition: Control/CxxUtils/Root/StringUtils.cxx:55
Trk::DetectorElemType::TRT
@ TRT
MmIdHelper::channelMax
static int channelMax()
Definition: MmIdHelper.cxx:831
MMReadoutParameters::activeTopLength
double activeTopLength
Definition: MMDetectorDescription.h:29
Amg::getTranslateZ3D
Amg::Transform3D getTranslateZ3D(const double Z)
: Returns a shift transformation along the z-axis
Definition: GeoPrimitivesHelpers.h:285
MuonGM::MuonReadoutElement::largeSector
bool largeSector() const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:49
MuonGM::MMReadoutElement::getDesign
const MuonChannelDesign * getDesign(const Identifier &id) const
returns the MuonChannelDesign class for the given identifier
Definition: MMReadoutElement.h:193
MuonGM::MuonStation::getTransform
Amg::Transform3D getTransform() const
Definition: MuonStation.h:169
ALFA_EventTPCnv_Dict::t0
std::vector< ALFA_RawData_p1 > t0
Definition: ALFA_EventTPCnvDict.h:42
MuonGM::MuonReadoutElement::m_Ssize
double m_Ssize
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:143
MuonGM::MMReadoutElement::initDesignSqLite
void initDesignSqLite()
Definition: MMReadoutElement.cxx:136
MCP::ScaleSmearParam::s0
@ s0
MuonGM::MuonReadoutElement::setParentStationPV
void setParentStationPV()
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:77
deg
#define deg
Definition: SbPolyhedron.cxx:17
MuonGM::MMReadoutElement::GlobalToAmdbLRSTransform
virtual Amg::Transform3D GlobalToAmdbLRSTransform() const override final
Definition: MMReadoutElement.h:144
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
MuonGM::MMReadoutElement::m_Xlg
std::array< Amg::Transform3D, 4 > m_Xlg
Definition: MMReadoutElement.h:178
MuonGM::MuonReadoutElement::m_parentMuonStation
const MuonStation * m_parentMuonStation
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:180
MuonGM::MuonReadoutElement::m_type
Trk::DetectorElemType m_type
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:164
MuonGM::MMReadoutElement::m_passivData
const NswPassivationDbData * m_passivData
Definition: MMReadoutElement.h:159
MuonGM::MuonReadoutElement::m_stationS
double m_stationS
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:171
BLinePar::getParameter
float getParameter(const Parameter p) const
Returns a given parameter.
Definition: BLinePar.h:39
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
MuonGM::MuonDetectorManager::getMMAsBuiltCalculator
const NswAsBuilt::StripCalculator * getMMAsBuiltCalculator() const
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:149
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
THROW_EXCEPTION
#define THROW_EXCEPTION(MSG)
Definition: MMReadoutElement.cxx:48
NswPassivationDbData::getPassivation
const PCBPassivation & getPassivation(const Identifier &id) const
Definition: NswPassivationDbData.cxx:47
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
x
#define x
MuonGM::MuonClusterReadoutElement::boundaryHash
virtual int boundaryHash(const Identifier &id) const =0
returns the hash function to be used to look up the surface boundary for a given identifier
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
MuonGM::MuonClusterReadoutElement::surface
virtual const Trk::PlaneSurface & surface() const override
access to chamber surface (phi orientation), uses the first gas gap
Definition: MuonClusterReadoutElement.h:123
MuonGM::MuonReadoutElement::setIndexOfREinMuonStation
void setIndexOfREinMuonStation()
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:104
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
keylayer_zslicemap.strip
strip
Definition: keylayer_zslicemap.py:151
Trk::DetectorElemType::Csc
@ Csc
MuonGM::MMReadoutElement::has_BLines
bool has_BLines() const
Definition: MMReadoutElement.h:132
Trk::TrkDetElementBase::detectorType
virtual DetectorElemType detectorType() const =0
Return the Detector element type.
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
Amg::getRotateZ3D
Amg::Transform3D getRotateZ3D(double angle)
get a rotation transformation around Z-axis
Definition: GeoPrimitivesHelpers.h:270
MuonGM::MuonReadoutElement::m_phi
int m_phi
Identifier field of the station phi.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:177
TRT::Hit::side
@ side
Definition: HitInfo.h:83
MuonGM::MMReadoutElement::m_sWidthChamber
double m_sWidthChamber
Definition: MMReadoutElement.h:169
MuonGM::MuonReadoutElement::idHelperSvc
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:136
MuonGM::MMReadoutElement::m_tckChamber
double m_tckChamber
Definition: MMReadoutElement.h:172
BchCleanup.mgr
mgr
Definition: BchCleanup.py:294
Trk::DetectorElemType::Silicon
@ Silicon
MuonGM::MMReadoutElement::stripActiveLengthRight
double stripActiveLengthRight(const Identifier &id) const
Definition: MMReadoutElement.h:244
MuonGM::MMReadoutElement::m_nlayers
int m_nlayers
Definition: MMReadoutElement.h:157
MuonGM::MuonReadoutElement::refreshCache
void refreshCache()
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:177
MmIdHelper::multilayerID
Identifier multilayerID(const Identifier &channeldID) const
Definition: MmIdHelper.cxx:276
MuonGM::MuonClusterReadoutElement::m_surfaceData
std::unique_ptr< SurfaceData > m_surfaceData
Definition: MuonClusterReadoutElement.h:120
NswAsBuilt::StripCalculator::position_t::isvalid
IsValid isvalid
Definition: StripCalculator.h:59
MuonGM::MuonReadoutElement::clearCache
virtual void clearCache()=0
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MMDetectorDescription
Definition: MMDetectorDescription.h:45
MuonGM::MuonReadoutElement::getStationName
const std::string & getStationName() const
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:190
Trk::DetectorElemType::SolidState
@ SolidState
MuonGM::MuonReadoutElement::m_Rsize
double m_Rsize
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:144
MuonGM::MuonChannelDesign::DetType::MM
@ MM
MuonGM::MMReadoutElement::has_ALines
bool has_ALines() const
Definition: MMReadoutElement.h:131
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition: IRDBAccessSvc.h:45
MMReadoutParameters::gasThickness
double gasThickness
Definition: MMDetectorDescription.h:20
MuonGM::MuonReadoutElement::setIdentifier
void setIdentifier(const Identifier &id)
Sets the Identifier, hashes & station names.
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:156
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
CaloNoise_fillDB.dt
dt
Definition: CaloNoise_fillDB.py:58
MuonGM::MMReadoutElement::PCBPassivation
NswPassivationDbData::PCBPassivation PCBPassivation
Definition: MMReadoutElement.h:152
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
MuonGM::MuonReadoutElement::parentMuonStation
const MuonStation * parentMuonStation() const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:135
NswAsBuilt::stripIdentifier_t
Athena indices of a MM strip.
Definition: MuonSpectrometer/MuonDetDescr/MuonNSWAsBuilt/MuonNSWAsBuilt/Identifier.h:81
master.flag
bool flag
Definition: master.py:29
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
NswAsBuilt::quadrupletIdentifier_t::MML
@ MML
Definition: MuonSpectrometer/MuonDetDescr/MuonNSWAsBuilt/MuonNSWAsBuilt/Identifier.h:28
MuonGM::MMReadoutElement::m_BLinePar
const BLinePar * m_BLinePar
Definition: MMReadoutElement.h:175
MuonGM::MuonReadoutElement::m_parentStationPV
PVConstLink m_parentStationPV
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:179
MMReadoutParameters::stripPitch
double stripPitch
Definition: MMDetectorDescription.h:19
MuonGM::MMReadoutElement::surfaceHash
virtual int surfaceHash(const Identifier &id) const override final
returns the hash to be used to look up the surface and transform in the MuonClusterReadoutElement tra...
Definition: MMReadoutElement.h:181
MuonGM::MMReadoutElement::m_minHalfY
double m_minHalfY
Definition: MMReadoutElement.h:165
IGeoDbTagSvc
Definition: IGeoDbTagSvc.h:26
MuonGM::MuonReadoutElement::manager
const MuonDetectorManager * manager() const
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:204
MuonGM::MuonReadoutElement::m_hasCutouts
bool m_hasCutouts
true is there are cutouts in the readdout-element
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:158
TRT::Track::z0
@ z0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:63
MMDetectorHelper::Get_MMDetector
MMDetectorDescription * Get_MMDetector(char type, int ieta, int iphi, int layer=1, char side='A')
Definition: MMDetectorHelper.cxx:41
NswAsBuilt::StripCalculator::position_t::pos
Amg::Vector3D pos
Definition: StripCalculator.h:60
ALinePar::delta
Amg::Transform3D delta() const
Definition: ALinePar.cxx:45
MuonGM::MMReadoutElement::m_delta
Amg::Transform3D m_delta
Definition: MMReadoutElement.h:173
MuonGM::MMReadoutElement::m_lengthChamber
double m_lengthChamber
Definition: MMReadoutElement.h:171
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
MuonGM::MMReadoutElement::clearALinePar
void clearALinePar()
Definition: MMReadoutElement.cxx:376
MuonGM::MMReadoutElement::setChamberLayer
void setChamberLayer(int ml)
set methods only to be used by MuonGeoModel
Definition: MMReadoutElement.h:118
IRDBRecordset_ptr
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition: IRDBAccessSvc.h:25
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
MuonGM::MuonReadoutElement::setStationName
void setStationName(const std::string &)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:169
MuonIdHelper::stationPhi
int stationPhi(const Identifier &id) const
Definition: MuonIdHelper.cxx:814
MuonGM::MuonReadoutElement::m_LongSsize
double m_LongSsize
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:146
Trk::DetectorElemType::sTgc
@ sTgc
MuonGM::MMReadoutElement::getDelta
const Amg::Transform3D & getDelta() const
read A-line parameters and include the chamber rotation/translation in the local-to-global (ATLAS) re...
Definition: MMReadoutElement.h:122
MuonGM::MMReadoutElement::m_etaDesign
std::array< MuonChannelDesign, 4 > m_etaDesign
Definition: MMReadoutElement.h:155
MuonGM::MuonClusterReadoutElement::layerHash
virtual int layerHash(const Identifier &id) const =0
returns the hash function to be used to look up the center and the normal of the tracking surface for...
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
MuonGM::MuonReadoutElement::m_idhash
IdentifierHash m_idhash
data-collection hash identifier
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:166
PlotCalibFromCool.en
en
Definition: PlotCalibFromCool.py:399
MuonGM::MMReadoutElement::m_idHelper
const MmIdHelper & m_idHelper
Definition: MMReadoutElement.h:150
MuonGM::MMReadoutElement::m_ml
int m_ml
Definition: MMReadoutElement.h:161
MuonGM::MMReadoutElement::m_maxHalfY
double m_maxHalfY
Definition: MMReadoutElement.h:166
MuonIdHelper::stationEta
int stationEta(const Identifier &id) const
Definition: MuonIdHelper.cxx:809
Amg::getRotateY3D
Amg::Transform3D getRotateY3D(double angle)
get a rotation transformation around Y-axis
Definition: GeoPrimitivesHelpers.h:261
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonGM::MMReadoutElement::layerHash
virtual int layerHash(const Identifier &id) const override final
returns the hash to be used to look up the normal and center in the MuonClusterReadoutElement trackin...
Definition: MMReadoutElement.h:185
MuonGM::MuonReadoutElement::m_LongZsize
double m_LongZsize
size in the specified direction
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:148
MMReadoutParameters::nMissedTopStereo
int nMissedTopStereo
Definition: MMDetectorDescription.h:36
MMReadoutParameters::stereoAngle
std::vector< double > stereoAngle
Definition: MMDetectorDescription.h:23
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
MMReadoutParameters::nMissedBottomStereo
int nMissedBottomStereo
Definition: MMDetectorDescription.h:37
MuonGM::MMReadoutElement::posOnDefChamber
void posOnDefChamber(Amg::Vector3D &locPosML) const
transform a position (in chamber-frame coordinates) to the deformed-chamber geometry
Definition: MMReadoutElement.cxx:390
python.PyAthena.v
v
Definition: PyAthena.py:157
BLinePar::Parameter
Parameter
Definition: BLinePar.h:21
NswAsBuilt::stripIdentifier_t::ilayer
int ilayer
Definition: MuonSpectrometer/MuonDetDescr/MuonNSWAsBuilt/MuonNSWAsBuilt/Identifier.h:83
MuonGM::MuonReadoutElement::m_muon_mgr
MuonDetectorManager * m_muon_mgr
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:181
Trk::DetectorElemType::MM
@ MM
MmIdHelper::channel
int channel(const Identifier &id) const override
Definition: MmIdHelper.cxx:800
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
MmIdHelper::gasGap
int gasGap(const Identifier &id) const override
get the hashes
Definition: MmIdHelper.cxx:798
Trk::DetectorElemType::Rpc
@ Rpc
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
NswAsBuilt::quadrupletIdentifier_t::MMS
@ MMS
Definition: MuonSpectrometer/MuonDetDescr/MuonNSWAsBuilt/MuonNSWAsBuilt/Identifier.h:27
MuonGM::MMReadoutElement::spacePointPosition
virtual bool spacePointPosition(const Identifier &phiId, const Identifier &etaId, Amg::Vector2D &pos) const override final
space point position for a given pair of phi and eta identifiers The LocalPosition is expressed in th...
Definition: MMReadoutElement.h:312
MuonGM::MMReadoutElement::stereoAngle
double stereoAngle(const Identifier &id) const
Wrapper to MuonChannelDesign::stereoAngle()
Definition: MMReadoutElement.h:215
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
MuonGM::MuonReadoutElement::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:163
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonGM::MMReadoutElement::stripNumber
virtual int stripNumber(const Amg::Vector2D &pos, const Identifier &id) const override final
strip number corresponding to local position.
Definition: MMReadoutElement.h:202
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
NswAsBuilt::stripIdentifier_t::istrip
int istrip
Definition: MuonSpectrometer/MuonDetDescr/MuonNSWAsBuilt/MuonNSWAsBuilt/Identifier.h:84
Amg::Translation3D
Eigen::Translation< double, 3 > Translation3D
Definition: GeoPrimitives.h:44
MuonGM::MuonReadoutElement::identify
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:184
python.changerun.pv
pv
Definition: changerun.py:81
MMReadoutParameters::nMissedBottomEta
int nMissedBottomEta
Definition: MMDetectorDescription.h:35
python.DecayParser.children
children
Definition: DecayParser.py:32
checkFileSG.fi
fi
Definition: checkFileSG.py:65
NswAsBuilt::StripCalculator
Definition: StripCalculator.h:30
MuonGM::MuonReadoutElement::m_indexOfREinMuonStation
int m_indexOfREinMuonStation
index of this RE in the mother MuonStation
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:169
MuonGM::MuonReadoutElement::m_stIdx
int m_stIdx
Identifier field of the station index.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:173
NswAsBuilt::Element::ParameterClass::CORRECTION
@ CORRECTION
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
MMDetectorHelper
Definition: MMDetectorHelper.h:24
MuonGM::MMReadoutElement::m_ALinePar
const ALinePar * m_ALinePar
Definition: MMReadoutElement.h:174
Trk::PlaneSurface::localToGlobal
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const override final
Specified for PlaneSurface: LocalToGlobal method without dynamic memory allocation.
Definition: PlaneSurface.cxx:204
MuonGM::MMReadoutElement::m_halfX
double m_halfX
Definition: MMReadoutElement.h:164
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
MuonGM::MuonClusterReadoutElement::bounds
virtual const Trk::SurfaceBounds & bounds() const override
Return the boundaries of the element.
Definition: MuonClusterReadoutElement.h:127
MmIdHelper::channelID
Identifier channelID(int stationName, int stationEta, int stationPhi, int multilayer, int gasGap, int channel) const
Definition: MmIdHelper.cxx:736
python.compressB64.c
def c
Definition: compressB64.py:93
MuonGM::MMReadoutElement::m_offset
double m_offset
Definition: MMReadoutElement.h:167
MuonGM::MuonReadoutElement::parentStationPV
PVConstLink parentStationPV() const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:100
MuonGM::MuonClusterReadoutElement::surfaceHash
virtual int surfaceHash(const Identifier &id) const =0
returns the hash function to be used to look up the surface and surface transform for a given identif...
python.SystemOfUnits.degree
tuple degree
Definition: SystemOfUnits.py:106
MuonGM::MuonReadoutElement::getStationPhi
int getStationPhi() const
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:194
MuonGM::MMReadoutElement::s_dummy_passiv
static constexpr PCBPassivation s_dummy_passiv
Definition: MMReadoutElement.h:153
MuonGM::MMReadoutElement::m_lWidthChamber
double m_lWidthChamber
Definition: MMReadoutElement.h:170
MMReadoutParameters
Definition: MMDetectorDescription.h:18
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
MuonGM::MuonReadoutElement::getStationEta
int getStationEta() const
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:193
Trk::DetectorElemType::Mdt
@ Mdt
MuonGM::MuonChannelDesign::ChannelType::etaStrip
@ etaStrip
fitman.k
k
Definition: fitman.py:528
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
MuonGM::MMReadoutElement::stripActiveLengthLeft
double stripActiveLengthLeft(const Identifier &id) const
Definition: MMReadoutElement.h:231