ATLAS Offline Software
Loading...
Searching...
No Matches
RadialStripDesign.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
5namespace 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}
void addStrip(const double posOnBottom, const double posOnTop)
: Defines a new radial strip.
bool operator<(const RadialStripDesign &other) const
set sorting operator
double lenTopEdge() const
Length of the the edge from top left -> top right.
double lenBottomEdge() const
Length of the edge from bottom left -> bottom right.
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...