CMS 3D CMS Logo

AlignableGEMSuperChamber.cc
Go to the documentation of this file.
1 /* AlignableGEMSuperChamber
2  * \author Hyunyong Kim - TAMU
3  */
6 
9  const std::vector<const GeomDet*>& geomDets = geomDet->components();
10  for (std::vector<const GeomDet*>::const_iterator idet = geomDets.begin(); idet != geomDets.end(); ++idet) {
12  }
13  this->theSurface = geomDet->surface();
14 }
15 
17  AlignableDet::update(geomDet);
18  theSurface = geomDet->surface();
19 }
20 
21 std::ostream& operator<<(std::ostream& os, const AlignableGEMSuperChamber& r) {
22  const auto& theDets = r.components();
23 
24  os << " This GEMSuperChamber contains " << theDets.size() << " units" << std::endl;
25  os << " position = " << r.globalPosition() << std::endl;
26  os << " (phi, r, z)= (" << r.globalPosition().phi() << "," << r.globalPosition().perp() << ","
27  << r.globalPosition().z();
28  os << "), orientation:" << std::endl << r.globalRotation() << std::endl;
29 
30  os << " total displacement and rotation: " << r.displacement() << std::endl;
31  os << r.rotation() << std::endl;
32 
33  for (const auto& idet : theDets) {
34  const auto& comp = idet->components();
35 
36  for (unsigned int i = 0; i < comp.size(); ++i) {
37  os << " Det position, phi, r: " << comp[i]->globalPosition() << " , " << comp[i]->globalPosition().phi()
38  << " , " << comp[i]->globalPosition().perp() << std::endl;
39  os << " local position, phi, r: " << r.surface().toLocal(comp[i]->globalPosition()) << " , "
40  << r.surface().toLocal(comp[i]->globalPosition()).phi() << " , "
41  << r.surface().toLocal(comp[i]->globalPosition()).perp() << std::endl;
42  }
43  }
44 
45  return os;
46 }
AlCaHLTBitMon_QueryRunRegistry.comp
string comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
mps_fire.i
i
Definition: mps_fire.py:428
AlignableGEMSuperChamber::AlignableGEMSuperChamber
AlignableGEMSuperChamber(const GeomDet *geomDet)
Definition: AlignableGEMSuperChamber.cc:7
funct::false
false
Definition: Factorize.h:29
GeomDet
Definition: GeomDet.h:27
align::AlignableGEMChamber
Definition: StructureType.h:88
operator<<
std::ostream & operator<<(std::ostream &os, const AlignableGEMSuperChamber &r)
Definition: AlignableGEMSuperChamber.cc:21
GeomDet::components
virtual std::vector< const GeomDet * > components() const
Returns direct components, if any.
Definition: GeomDet.h:73
AlignableDet
Definition: AlignableDet.h:8
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
AlignableGEMSuperChamber
Definition: AlignableGEMSuperChamber.h:18
AlignableGEMChamber.h
AlignableComposite::addComponent
void addComponent(Alignable *component) final
Definition: AlignableComposite.cc:53
AlignableDet::update
void update(const GeomDet *geomDet, bool updateComponents=true)
Definition: AlignableDet.cc:50
AlignableGEMSuperChamber::update
void update(const GeomDet *geomDet)
Definition: AlignableGEMSuperChamber.cc:16
AlignableComposite::theStructureType
StructureType theStructureType
Definition: AlignableComposite.h:114
Alignable::theSurface
AlignableSurface theSurface
Definition: Alignable.h:237
alignCSCRings.r
r
Definition: alignCSCRings.py:93
align::AlignableGEMSuperChamber
Definition: StructureType.h:87
AlignableGEMSuperChamber.h