|
|
Go to the documentation of this file.
21 for (
const auto&
wheel : dtWheels) {
34 throw cms::Exception(
"LogicError") <<
"Wheel index (" <<
i <<
") out of range";
49 for (std::vector<AlignableDTWheel*>::iterator ilayer =
theDTWheels.begin(); ilayer !=
theDTWheels.end(); ilayer++)
50 zz += (*ilayer)->globalPosition().z();
62 os <<
"This DTBarrel contains " <<
b.theDTWheels.size() <<
" Barrel wheels" << std::endl;
63 os <<
"(phi, r, z) = (" <<
b.globalPosition().phi() <<
"," <<
b.globalPosition().perp() <<
","
64 <<
b.globalPosition().z();
65 os <<
"), orientation:" << std::endl <<
b.globalRotation() << std::endl;
72 for (std::vector<AlignableDTWheel*>::const_iterator iWheel =
theDTWheels.begin(); iWheel !=
theDTWheels.end();
83 std::unique_ptr<Alignments> tmpAlignments{
i->alignments()};
84 std::copy(tmpAlignments->m_align.begin(), tmpAlignments->m_align.end(), std::back_inserter(m_alignments->
m_align));
88 std::sort(m_alignments->
m_align.begin(), m_alignments->
m_align.end());
99 std::unique_ptr<AlignmentErrorsExtended> tmpAlignmentErrorsExtended{
i->alignmentErrors()};
100 std::copy(tmpAlignmentErrorsExtended->m_alignError.begin(),
101 tmpAlignmentErrorsExtended->m_alignError.end(),
108 return m_alignmentErrors;
AlignmentErrorsExtended * alignmentErrors() const override
Return vector of alignment errors.
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)
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
Log< level::Info, false > LogInfo
void setSurface(const AlignableSurface &s)
Alignments * alignments() const override
Return alignment data.
align::PositionType PositionType
CompConstraintType compConstraintType_
void addComponent(Alignable *component) final
AlignableDTBarrel(const std::vector< AlignableDTWheel * > &dtWheels)
The constructor simply copies the vector of wheels and computes the surface from them.
std::vector< AlignableDTWheel * > theDTWheels
AlignableDTWheel & wheel(int i)
Return AlignableBarrelLayer at given index.
align::RotationType RotationType
void setMother(Alignable *mother)
Assign mother to alignable.
AlignableSurface computeSurface()
std::vector< AlignTransform > m_align
std::vector< AlignTransformErrorExtended > m_alignError
void dump(void) const override
Recursive printout of the muon Barrel structure.
std::ostream & operator<<(std::ostream &os, const AlignableDTBarrel &b)
Output Half Barrel information.
Alignable * mother() const
Return pointer to container alignable (if any)
int size() const
Return number of direct components.