CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
AlignableDTSuperLayer.cc File Reference
#include "Alignment/MuonAlignment/interface/AlignableDTSuperLayer.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const AlignableDTSuperLayer &r)
 Printout the DetUnits in the CSC chamber. More...
 

Detailed Description

Date:
2008/03/26 21:59:30
Revision:
1.1
Author
Andre Sznajder - UERJ(Brazil)

Definition in file AlignableDTSuperLayer.cc.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const AlignableDTSuperLayer r 
)

Printout the DetUnits in the CSC chamber.

Definition at line 17 of file AlignableDTSuperLayer.cc.

References AlCaHLTBitMon_QueryRunRegistry::comp, AlignableComposite::components(), Alignable::displacement(), Alignable::globalPosition(), Alignable::globalRotation(), mps_fire::i, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), Alignable::rotation(), Alignable::surface(), AlignableSurface::toLocal(), and PV3DBase< T, PVType, FrameType >::z().

17  {
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 }
T perp() const
Definition: PV3DBase.h:69
const GlobalVector & displacement() const
Return change of the global position since the creation of the object.
Definition: Alignable.h:141
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
const Alignables & components() const override
Return vector of direct components.
const RotationType & globalRotation() const
Return the global orientation of the object.
Definition: Alignable.h:138
const RotationType & rotation() const
Return change of orientation since the creation of the object.
Definition: Alignable.h:144
align::RotationType toLocal(const align::RotationType &) const
Return in local frame a rotation given in global frame.
T z() const
Definition: PV3DBase.h:61
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
Definition: Alignable.h:132
const PositionType & globalPosition() const
Return the global position of the object.
Definition: Alignable.h:135