CMS 3D CMS Logo

AlignableDTSuperLayer.cc
Go to the documentation of this file.
1 
9 
12  // DO NOT let the chamber position become an average of the layers
13  this->theSurface = geomDet->surface();
14 }
15 
17 std::ostream& operator<<(std::ostream& os, const AlignableDTSuperLayer& r) {
18  const auto& theDets = r.components();
19 
20  os << " This DTSuperLayer contains " << theDets.size() << " units" << std::endl;
21  os << " position = " << r.globalPosition() << std::endl;
22  os << " (phi, r, z)= (" << r.globalPosition().phi() << "," << r.globalPosition().perp() << ","
23  << r.globalPosition().z();
24  os << "), orientation:" << std::endl << r.globalRotation() << std::endl;
25 
26  os << " total displacement and rotation: " << r.displacement() << std::endl;
27  os << r.rotation() << std::endl;
28 
29  for (const auto& idet : theDets) {
30  const auto& comp = idet->components();
31 
32  for (unsigned int i = 0; i < comp.size(); ++i) {
33  os << " Det position, phi, r: " << comp[i]->globalPosition() << " , " << comp[i]->globalPosition().phi()
34  << " , " << comp[i]->globalPosition().perp() << std::endl;
35  os << " local position, phi, r: " << r.surface().toLocal(comp[i]->globalPosition()) << " , "
36  << r.surface().toLocal(comp[i]->globalPosition()).phi() << " , "
37  << r.surface().toLocal(comp[i]->globalPosition()).perp() << std::endl;
38  }
39  }
40 
41  return os;
42 }
AlCaHLTBitMon_QueryRunRegistry.comp
string comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
mps_fire.i
i
Definition: mps_fire.py:428
GeomDet
Definition: GeomDet.h:27
operator<<
std::ostream & operator<<(std::ostream &os, const AlignableDTSuperLayer &r)
Printout the DetUnits in the CSC chamber.
Definition: AlignableDTSuperLayer.cc:17
AlignableDTSuperLayer
A muon DT SuperLayer ( an AlignableDet )
Definition: AlignableDTSuperLayer.h:24
AlignableDet
Definition: AlignableDet.h:8
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
align::AlignableDTSuperLayer
Definition: StructureType.h:77
AlignableComposite::theStructureType
StructureType theStructureType
Definition: AlignableComposite.h:114
Alignable::theSurface
AlignableSurface theSurface
Definition: Alignable.h:237
alignCSCRings.r
r
Definition: alignCSCRings.py:93
AlignableDTSuperLayer::AlignableDTSuperLayer
AlignableDTSuperLayer(const GeomDet *geomDet)
Constructor.
Definition: AlignableDTSuperLayer.cc:10
AlignableDTSuperLayer.h