22 for (
const auto&
chamber: cscChambers) {
38 throw cms::Exception(
"LogicError") <<
"CSC Chamber index (" << i <<
") out of range";
62 for ( std::vector<AlignableCSCChamber*>::iterator ichamber =
theCSCChambers.begin();
64 zz += (*ichamber)->globalPosition().z();
94 os <<
"This CSC Ring contains " << b.
theCSCChambers.size() <<
" CSC chambers" << std::endl;
97 os <<
"), orientation:" << std::endl<< b.
globalRotation() << std::endl;
108 for ( std::vector<AlignableCSCChamber*>::const_iterator iChamber =
theCSCChambers.begin();
Geom::Phi< T > phi() const
friend std::ostream & operator<<(std::ostream &, const AlignableCSCRing &)
Printout muon CSC Ring information (not recursive)
const RotationType & globalRotation() const
Return the global orientation of the object.
AlignableCSCRing(const std::vector< AlignableCSCChamber * > &cscChambers)
The constructor simply copies the vector of CSC Chambers and computes the surface from them...
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
void setSurface(const AlignableSurface &s)
std::vector< AlignableCSCChamber * > theCSCChambers
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
void setMother(Alignable *mother)
Assign mother to alignable.
align::RotationType RotationType
align::PositionType PositionType
AlignableSurface computeSurface()
CompConstraintType compConstraintType_
const PositionType & globalPosition() const
Return the global position of the object.
Alignable * mother() const
Return pointer to container alignable (if any)
AlignableCSCChamber & chamber(int i)
Return Alignable CSC Chamber at given index.
void addComponent(Alignable *component) final
int size() const
Return number of direct components.
void dump(void) const override
Recursive printout of the muon CSC Ring structure.
A muon CSC Chamber( an AlignableDet )