21 for (
const auto&
station : cscStations) {
34 throw cms::Exception(
"LogicError") <<
"Station index (" << i <<
") out of range";
51 zz += (*ilayer)->globalPosition().
z();
63 os <<
"This EndCap contains " << b.
theCSCStations.size() <<
" CSC stations" << std::endl;
66 os <<
"), orientation:" << std::endl << b.
globalRotation() << std::endl;
73 for (std::vector<AlignableCSCStation*>::const_iterator iLayer =
theCSCStations.begin();
86 std::unique_ptr<Alignments> tmpAlignments{
i->alignments()};
87 std::copy(tmpAlignments->m_align.begin(), tmpAlignments->m_align.end(), std::back_inserter(m_alignments->
m_align));
91 std::sort(m_alignments->
m_align.begin(), m_alignments->
m_align.end());
103 std::unique_ptr<AlignmentErrorsExtended> tmpAlignmentErrorsExtended{
i->alignmentErrors()};
104 std::copy(tmpAlignmentErrorsExtended->m_alignError.begin(),
105 tmpAlignmentErrorsExtended->m_alignError.end(),
112 return m_alignmentErrors;
uint16_t *__restrict__ id
Geom::Phi< T > phi() const
const Alignables & components() const override
Return vector of direct components.
const RotationType & globalRotation() const
Return the global orientation of the object.
Alignments * alignments() const override
Return alignment data.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
std::vector< AlignTransform > m_align
AlignmentErrorsExtended * alignmentErrors() const override
Return vector of alignment errors.
void setSurface(const AlignableSurface &s)
AlignableSurface computeSurface()
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
void dump(void) const override
Recursive printout of the muon End Cap structure.
Log< level::Info, false > LogInfo
void setMother(Alignable *mother)
Assign mother to alignable.
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.
Alignable * mother() const
Return pointer to container alignable (if any)
AlignableCSCEndcap(const std::vector< AlignableCSCStation * > &cscStations)
The constructor simply copies the vector of stations and computes the surface from them...
void addComponent(Alignable *component) final
int size() const
Return number of direct components.
AlignableCSCStation & station(int i)
Return AlignableCSCEndcap station at given index.