|
|
Go to the documentation of this file.
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;
AlignableSurface computeSurface()
AlignableCSCEndcap(const std::vector< AlignableCSCStation * > &cscStations)
The constructor simply copies the vector of stations and computes the surface from them.
const Alignables & components() const override
Return vector of direct components.
AlignmentErrorsExtended * alignmentErrors() const override
Return vector of alignment errors.
Log< level::Info, false > LogInfo
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
void setSurface(const AlignableSurface &s)
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
align::PositionType PositionType
CompConstraintType compConstraintType_
void addComponent(Alignable *component) final
void dump(void) const override
Recursive printout of the muon End Cap structure.
AlignableCSCStation & station(int i)
Return AlignableCSCEndcap station at given index.
align::RotationType RotationType
void setMother(Alignable *mother)
Assign mother to alignable.
std::vector< AlignableCSCStation * > theCSCStations
Alignments * alignments() const override
Return alignment data.
std::vector< AlignTransform > m_align
std::vector< AlignTransformErrorExtended > m_alignError
std::ostream & operator<<(std::ostream &os, const AlignableCSCEndcap &b)
Output Half Barrel information.
Alignable * mother() const
Return pointer to container alignable (if any)
int size() const
Return number of direct components.