ATLAS Offline Software
StripLayer.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
5 #include <GeoModelHelpers/TransformSorter.h>
6 namespace MuonGMR4{
7 
8  std::ostream& operator<<(std::ostream& ostr, const StripLayer& lay) {
9  ostr<<"Strip layer transform: "<<Amg::toString(lay.toOrigin())<<", ";
10  ostr<<lay.design()<<", ";
11  ostr<<"Hash: "<<static_cast<unsigned int>(lay.hash());
12  return ostr;
13  }
15  StripDesignPtr design,
16  const IdentifierHash hash):
17  m_transform{layerTransform},
18  m_design{std::move(design)},
19  m_hash{hash} {
20  }
22  if (hash() != other.hash()) {
23  return hash() < other.hash();
24  }
25  const GeoTrf::TransformSorter sorter{};
26  const int trf = sorter.compare(m_transform, other.m_transform);
27  if (trf) {
28  return trf <0;
29  }
30  return (*m_design) < (*other.m_design);
31  }
32 }
GeoModel::TransientConstSharedPtr< StripDesign >
MuonGMR4::StripLayer::operator<
bool operator<(const StripLayer &other) const
Definition: StripLayer.cxx:21
MuonGMR4::StripLayer::m_transform
Amg::Transform3D m_transform
Definition: StripLayer.h:35
MuonGMR4::StripLayer::toOrigin
const Amg::Transform3D & toOrigin() const
Returns the transformation to go from the strip layer center to the origin of the Strip chamber.
postInclude.sorter
sorter
Definition: postInclude.SortInput.py:23
MuonGMR4::StripLayer::m_design
StripDesignPtr m_design
Definition: StripLayer.h:36
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
MuonGMR4
A muon chamber is a collection of readout elements belonging to the same station.
Definition: ChamberAssembleTool.h:16
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
MuonGMR4::StripLayer::design
const StripDesign & design() const
Returns the underlying strip design.
StripLayer.h
MuonGMR4::StripLayer
Definition: StripLayer.h:10
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
MuonGMR4::StripLayer::hash
const IdentifierHash hash() const
Returns the hash of the strip layer.
MuonGMR4::StripLayer::StripLayer
StripLayer(const Amg::Transform3D &layerTransform, StripDesignPtr design, const IdentifierHash hash)
Definition: StripLayer.cxx:14
CaloLCW_tf.trf
trf
Definition: CaloLCW_tf.py:20
IdentifierHash
Definition: IdentifierHash.h:38
MuonGMR4::operator<<
std::ostream & operator<<(std::ostream &ostr, const CutOutArea &cut)
Definition: CutOutArea.h:23