CMS 3D CMS Logo

Functions
AlignableDTChamber.cc File Reference
#include "Alignment/MuonAlignment/interface/AlignableDTChamber.h"
#include "Alignment/MuonAlignment/interface/AlignableDTSuperLayer.h"

Go to the source code of this file.

Functions

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

Detailed Description

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

Definition in file AlignableDTChamber.cc.

Function Documentation

◆ operator<<()

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

Printout the DetUnits in the DT chamber.

Definition at line 28 of file AlignableDTChamber.cc.

28  {
29  const auto& theDets = r.components();
30 
31  os << " This DTChamber contains " << theDets.size() << " units" << std::endl;
32  os << " position = " << r.globalPosition() << std::endl;
33  os << " (phi, r, z)= (" << r.globalPosition().phi() << "," << r.globalPosition().perp() << ","
34  << r.globalPosition().z();
35  os << "), orientation:" << std::endl << r.globalRotation() << std::endl;
36 
37  os << " total displacement and rotation: " << r.displacement() << std::endl;
38  os << r.rotation() << std::endl;
39 
40  for (const auto& idet : theDets) {
41  const auto& comp = idet->components();
42 
43  for (unsigned int i = 0; i < comp.size(); ++i) {
44  os << " Det position, phi, r: " << comp[i]->globalPosition() << " , " << comp[i]->globalPosition().phi()
45  << " , " << comp[i]->globalPosition().perp() << std::endl;
46  os << " local position, phi, r: " << r.surface().toLocal(comp[i]->globalPosition()) << " , "
47  << r.surface().toLocal(comp[i]->globalPosition()).phi() << " , "
48  << r.surface().toLocal(comp[i]->globalPosition()).perp() << std::endl;
49  }
50  }
51 
52  return os;
53 }

References AlCaHLTBitMon_QueryRunRegistry::comp, mps_fire::i, and alignCSCRings::r.

mps_fire.i
i
Definition: mps_fire.py:355
AlCaHLTBitMon_QueryRunRegistry.comp
comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
alignCSCRings.r
r
Definition: alignCSCRings.py:93