31 for ( std::vector<AlignableDTWheel*>::iterator iter =
theDTWheels.begin();
42 throw cms::Exception(
"LogicError") <<
"Wheel index (" << i <<
") out of range";
66 for ( std::vector<AlignableDTWheel*>::iterator ilayer =
theDTWheels.begin();
68 zz += (*ilayer)->globalPosition().
z();
89 os <<
"This DTBarrel contains " << b.
theDTWheels.size() <<
" Barrel wheels" << std::endl;
92 os <<
"), orientation:" << std::endl<< b.
globalRotation() << std::endl;
103 for ( std::vector<AlignableDTWheel*>::iterator iWheel =
theDTWheels.begin();
113 std::vector<Alignable*> comp = this->
components();
116 for ( std::vector<Alignable*>::iterator
i=comp.begin();
i!=comp.end();
i++ )
118 Alignments* tmpAlignments = (*i)->alignments();
120 std::back_inserter(m_alignments->
m_align) );
121 delete tmpAlignments;
135 std::vector<Alignable*> comp = this->
components();
139 for ( std::vector<Alignable*>::iterator
i=comp.begin();
i!=comp.end();
i++ )
144 delete tmpAlignmentErrors;
150 return m_alignmentErrors;
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
Alignments * alignments() const
Return alignment data.
void dump(void)
Recursive printout of the muon Barrel structure.
std::vector< AlignTransformError > m_alignError
Geom::Phi< T > phi() const
const RotationType & globalRotation() const
Return the global orientation of the object.
const int size() const
Return number of direct components.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
std::vector< AlignTransform > m_align
~AlignableDTBarrel()
Clean delete of the vector and its elements.
virtual std::vector< Alignable * > components() const
Return vector of direct components.
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
void setSurface(const AlignableSurface &s)
std::vector< AlignableDTWheel * > theDTWheels
AlignableDTWheel & wheel(int i)
Return AlignableBarrelLayer at given index.
AlignableSurface computeSurface()
align::RotationType RotationType
align::PositionType PositionType
AlignmentErrors * alignmentErrors() const
Return vector of alignment errors.
const PositionType & globalPosition() const
Return the global position of the object.
AlignableDTBarrel(const std::vector< AlignableDTWheel * > dtWheels)
The constructor simply copies the vector of wheels and computes the surface from them.