17 for (
const auto&
ring : cscRings) {
30 throw cms::Exception(
"LogicError") <<
"CSC Ring index (" <<
i <<
") out of range";
45 for (std::vector<AlignableCSCRing*>::iterator ilayer =
theCSCRings.begin(); ilayer !=
theCSCRings.end(); ilayer++)
46 zz += (*ilayer)->globalPosition().z();
67 os <<
"This CSC Station contains " <<
b.theCSCRings.size() <<
" CSC rings" << std::endl;
68 os <<
"(phi, r, z) = (" <<
b.globalPosition().phi() <<
"," <<
b.globalPosition().perp() <<
"," 69 <<
b.globalPosition().z();
70 os <<
"), orientation:" << std::endl <<
b.globalRotation() << std::endl;
77 for (std::vector<AlignableCSCRing*>::const_iterator iRing =
theCSCRings.begin(); iRing !=
theCSCRings.end(); iRing++)
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
Alignable * mother() const
Return pointer to container alignable (if any)
AlignableCSCRing & ring(int i)
Return Alignable CSC Ring at given index.
std::ostream & operator<<(std::ostream &os, const AlignableCSCStation &b)
Output Station information.
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
AlignableCSCStation(const std::vector< AlignableCSCRing *> &cscRings)
The constructor simply copies the vector of CSC Rings and computes the surface from them...
void setSurface(const AlignableSurface &s)
AlignableSurface computeSurface()
void dump(void) const override
Recursive printout of the muon CSC Station structure.
Log< level::Info, false > LogInfo
void setMother(Alignable *mother)
Assign mother to alignable.
std::vector< AlignableCSCRing * > theCSCRings
align::RotationType RotationType
int size() const
Return number of direct components.
align::PositionType PositionType
CompConstraintType compConstraintType_
void addComponent(Alignable *component) final