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;
64 os <<
"(phi, r, z) = (" <<
b.globalPosition().phi() <<
"," <<
b.globalPosition().perp() <<
"," 65 <<
b.globalPosition().z();
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));
103 std::unique_ptr<AlignmentErrorsExtended> tmpAlignmentErrorsExtended{
i->alignmentErrors()};
104 std::copy(tmpAlignmentErrorsExtended->m_alignError.begin(),
105 tmpAlignmentErrorsExtended->m_alignError.end(),
112 return m_alignmentErrors;
std::ostream & operator<<(std::ostream &os, const AlignableCSCEndcap &b)
Output Half Barrel information.
Alignable * mother() const
Return pointer to container alignable (if any)
const Alignables & components() const override
Return vector of direct components.
Alignments * alignments() const override
Return alignment data.
std::vector< AlignTransform > m_align
AlignableCSCEndcap(const std::vector< AlignableCSCStation *> &cscStations)
The constructor simply copies the vector of stations and computes the surface from them...
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
int size() const
Return number of direct components.
align::PositionType PositionType
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
CompConstraintType compConstraintType_
void addComponent(Alignable *component) final
AlignableCSCStation & station(int i)
Return AlignableCSCEndcap station at given index.