CMS 3D CMS Logo

Functions
AlignableGEMSuperChamber.cc File Reference
#include "Alignment/MuonAlignment/interface/AlignableGEMSuperChamber.h"
#include "Alignment/MuonAlignment/interface/AlignableGEMChamber.h"

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 21 of file AlignableGEMSuperChamber.cc.

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

21  {
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 }