20 const std::vector<const GeomDet*>& geomDets = geomDet->
components();
21 for (std::vector<const GeomDet*>::const_iterator idet = geomDets.begin(); idet != geomDets.end(); ++idet) {
33 os <<
" This DTChamber contains " << theDets.size() <<
" units" << std::endl ;
36 os <<
"), orientation:" << std::endl<< r.
globalRotation() << std::endl;
38 os <<
" total displacement and rotation: " << r.
displacement() << std::endl;
41 for (
const auto& idet: theDets) {
42 const auto&
comp = idet->components();
44 for (
unsigned int i = 0;
i <
comp.size(); ++
i) {
45 os <<
" Det position, phi, r: " 46 <<
comp[
i]->globalPosition() <<
" , " 47 <<
comp[
i]->globalPosition().phi() <<
" , " 48 <<
comp[
i]->globalPosition().perp() << std::endl;
49 os <<
" local position, phi, r: " const Alignables & components() const override
Return vector of direct components.
A muon DT Chamber( an AlignableDet )
AlignableDTChamber(const GeomDet *geomDet)
Constructor.
const GlobalVector & displacement() const
Return change of the global position since the creation of the object.
Geom::Phi< T > phi() const
const RotationType & globalRotation() const
Return the global orientation of the object.
const Plane & surface() const
The nominal surface of the GeomDet.
const RotationType & rotation() const
Return change of orientation since the creation of the object.
StructureType theStructureType
align::RotationType toLocal(const align::RotationType &) const
Return in local frame a rotation given in global frame.
friend std::ostream & operator<<(std::ostream &, const AlignableDTChamber &)
Printout the DetUnits in the DT chamber.
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
virtual std::vector< const GeomDet * > components() const
Returns direct components, if any.
const PositionType & globalPosition() const
Return the global position of the object.
void addComponent(Alignable *component) final
AlignableSurface theSurface