ATLAS Offline Software
MuonSpectrometer
MuonPhaseII
MuonDetDescr
MuonReadoutGeometryR4
src
RadialStripDesign.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include <
MuonReadoutGeometryR4/RadialStripDesign.h
>
5
namespace
MuonGMR4
{
6
bool
RadialStripDesign::operator<
(
const
RadialStripDesign
&
other
)
const
{
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
A muon chamber is a collection of readout elements belonging to the same station.
Definition:
ChamberAssembleTool.h:16
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.
Generated on Tue Jul 2 2024 21:25:02 for ATLAS Offline Software by
1.8.18