ATLAS Offline Software
RadialStripDesign.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
5 namespace MuonGMR4{
7  if (other.m_strips.size() != m_strips.size()) {
8  return m_strips.size() < other.m_strips.size();
9  }
10  for (unsigned int strip = 0; strip < m_strips.size(); ++strip) {
11  if (m_strips[strip].distOnBottom != other.m_strips[strip].distOnBottom) {
12  return m_strips[strip].distOnBottom < other.m_strips[strip].distOnBottom;
13  }
14  if (m_strips[strip].distOnTop != other.m_strips[strip].distOnTop) {
15  return m_strips[strip].distOnTop < other.m_strips[strip].distOnTop;
16  }
17  }
18  return static_cast<const StripDesign&>(*this) < other;
19  }
20  void RadialStripDesign::addStrip(const double posOnBottom,
21  const double posOnTop) {
22  m_strips.emplace_back(0.5*lenBottomEdge() + posOnBottom, 0.5* lenTopEdge()+ posOnTop, *this);
25  if (m_strips.size() == 2) {
26  m_reversedStripOrder = m_strips[1].distOnBottom < m_strips[0].distOnBottom;
27  }
28  }
29 }
MuonGMR4::StripDesign
Definition: StripDesign.h:30
MuonGMR4::StripDesign::lenBottomEdge
double lenBottomEdge() const
Length of the edge from bottom left -> bottom right.
RadialStripDesign.h
MuonGMR4::RadialStripDesign::addStrip
void addStrip(const double posOnBottom, const double posOnTop)
: Defines a new radial strip.
Definition: RadialStripDesign.cxx:20
MuonGMR4::RadialStripDesign::m_reversedStripOrder
bool m_reversedStripOrder
Definition: RadialStripDesign.h:100
MuonGMR4::RadialStripDesign::operator<
bool operator<(const RadialStripDesign &other) const
set sorting operator
Definition: RadialStripDesign.cxx:6
MuonGMR4::RadialStripDesign::m_strips
stripEdgeVec m_strips
Definition: RadialStripDesign.h:98
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition: MdtCalibInput.h:20
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonGMR4::RadialStripDesign
Definition: RadialStripDesign.h:23
MuonGMR4::StripDesign::lenTopEdge
double lenTopEdge() const
Length of the the edge from top left -> top right.