25 for (
const auto&
wheel: dtWheels) {
41 throw cms::Exception(
"LogicError") <<
"Wheel index (" << i <<
") out of range";
65 for ( std::vector<AlignableDTWheel*>::iterator ilayer =
theDTWheels.begin();
67 zz += (*ilayer)->globalPosition().z();
88 os <<
"This DTBarrel contains " << b.
theDTWheels.size() <<
" Barrel wheels" << std::endl;
91 os <<
"), orientation:" << std::endl<< b.
globalRotation() << std::endl;
102 for ( std::vector<AlignableDTWheel*>::const_iterator iWheel =
theDTWheels.begin();
115 std::unique_ptr<Alignments> tmpAlignments{
i->alignments()};
116 std::copy(tmpAlignments->m_align.begin(), tmpAlignments->m_align.end(),
117 std::back_inserter(m_alignments->
m_align));
121 std::sort( m_alignments->
m_align.begin(), m_alignments->
m_align.end());
133 std::unique_ptr<AlignmentErrorsExtended> tmpAlignmentErrorsExtended{
i->alignmentErrors()};
134 std::copy(tmpAlignmentErrorsExtended->m_alignError.begin(), tmpAlignmentErrorsExtended->m_alignError.end(),
141 return m_alignmentErrors;
const Alignables & components() const override
Return vector of direct components.
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
Geom::Phi< T > phi() const
const RotationType & globalRotation() const
Return the global orientation of the object.
std::vector< AlignTransform > m_align
friend std::ostream & operator<<(std::ostream &, const AlignableDTBarrel &)
Printout muon Barrel information (not recursive)
AlignableDTBarrel(const std::vector< AlignableDTWheel * > &dtWheels)
The constructor simply copies the vector of wheels and computes the surface from them.
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
void setSurface(const AlignableSurface &s)
Alignments * alignments() const override
Return alignment data.
std::vector< AlignableDTWheel * > theDTWheels
AlignableDTWheel & wheel(int i)
Return AlignableBarrelLayer at given index.
AlignableSurface computeSurface()
void setMother(Alignable *mother)
Assign mother to alignable.
void dump(void) const override
Recursive printout of the muon Barrel structure.
std::vector< AlignTransformErrorExtended > m_alignError
AlignmentErrorsExtended * alignmentErrors() const override
Return vector of alignment errors.
align::RotationType RotationType
align::PositionType PositionType
CompConstraintType compConstraintType_
const PositionType & globalPosition() const
Return the global position of the object.
Alignable * mother() const
Return pointer to container alignable (if any)
void addComponent(Alignable *component) final
int size() const
Return number of direct components.