#include <Alignment/MuonAlignment/interface/AlignableDTSuperLayer.h>
Public Member Functions | |
AlignableDTSuperLayer (const GeomDet *geomDet) | |
Constructor. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const AlignableDTSuperLayer &) |
Printout the DetUnits in the CSC chamber. |
The alignable muon DT superlayer.
Definition at line 25 of file AlignableDTSuperLayer.h.
AlignableDTSuperLayer::AlignableDTSuperLayer | ( | const GeomDet * | geomDet | ) |
Constructor.
Definition at line 10 of file AlignableDTSuperLayer.cc.
References align::AlignableDTSuperLayer, GeomDet::surface(), AlignableComposite::theStructureType, and Alignable::theSurface.
00010 : AlignableDet(geomDet) 00011 { 00012 theStructureType = align::AlignableDTSuperLayer; 00013 // DO NOT let the chamber position become an average of the layers 00014 this->theSurface = geomDet->surface(); 00015 }
std::ostream& operator<< | ( | std::ostream & | os, | |
const AlignableDTSuperLayer & | r | |||
) | [friend] |
Printout the DetUnits in the CSC chamber.
Definition at line 18 of file AlignableDTSuperLayer.cc.
00018 { 00019 std::vector<Alignable*> theDets = r.components(); 00020 00021 os << " This DTSuperLayer contains " << theDets.size() << " units" << std::endl ; 00022 os << " position = " << r.globalPosition() << std::endl; 00023 os << " (phi, r, z)= (" << r.globalPosition().phi() << "," << r.globalPosition().perp() << "," << r.globalPosition().z(); 00024 os << "), orientation:" << std::endl<< r.globalRotation() << std::endl; 00025 00026 os << " total displacement and rotation: " << r.displacement() << std::endl; 00027 os << r.rotation() << std::endl; 00028 00029 for (std::vector<Alignable*>::const_iterator idet = theDets.begin(); idet != theDets.end(); ++idet) { 00030 const align::Alignables& comp = (*idet)->components(); 00031 00032 for (unsigned int i = 0; i < comp.size(); ++i) { 00033 os << " Det position, phi, r: " 00034 << comp[i]->globalPosition() << " , " 00035 << comp[i]->globalPosition().phi() << " , " 00036 << comp[i]->globalPosition().perp() << std::endl; 00037 os << " local position, phi, r: " 00038 << r.surface().toLocal(comp[i]->globalPosition()) << " , " 00039 << r.surface().toLocal(comp[i]->globalPosition()).phi() << " , " 00040 << r.surface().toLocal(comp[i]->globalPosition()).perp() << std::endl; 00041 } 00042 } 00043 00044 return os; 00045 }