31 for ( std::vector<AlignableCSCStation*>::iterator iter =
theCSCStations.begin();
42 throw cms::Exception(
"LogicError") <<
"Station index (" << i <<
") out of range";
66 for ( std::vector<AlignableCSCStation*>::iterator ilayer =
theCSCStations.begin();
68 zz += (*ilayer)->globalPosition().
z();
88 os <<
"This EndCap contains " << b.
theCSCStations.size() <<
" CSC stations" << std::endl;
91 os <<
"), orientation:" << std::endl<< b.
globalRotation() << std::endl;
102 for ( std::vector<AlignableCSCStation*>::const_iterator iLayer =
theCSCStations.begin();
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;
140 for ( std::vector<Alignable*>::iterator
i=comp.begin();
i!=comp.end();
i++ )
145 delete tmpAlignmentErrorsExtended;
151 return m_alignmentErrors;
~AlignableCSCEndcap()
Clean delete of the vector and its elements.
Geom::Phi< T > phi() const
virtual std::vector< Alignable * > components() const
Return vector of direct components.
const RotationType & globalRotation() const
Return the global orientation of the object.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
std::vector< AlignTransform > m_align
void setSurface(const AlignableSurface &s)
void dump(void) const
Recursive printout of the muon End Cap structure.
AlignableSurface computeSurface()
Alignments * alignments() const
Return alignment data.
AlignmentErrorsExtended * alignmentErrors() const
Return vector of alignment errors.
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
std::vector< AlignableCSCStation * > theCSCStations
std::vector< AlignTransformErrorExtended > m_alignError
align::RotationType RotationType
align::PositionType PositionType
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
const PositionType & globalPosition() const
Return the global position of the object.
AlignableCSCEndcap(const std::vector< AlignableCSCStation * > &cscStations)
The constructor simply copies the vector of stations and computes the surface from them...
int size() const
Return number of direct components.
AlignableCSCStation & station(int i)
Return AlignableCSCEndcap station at given index.