CMS 3D CMS Logo

AlignableDTSuperLayer.cc File Reference

Date
2008/03/26 21:59:30
Revision
1.1
More...

#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.


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 18 of file AlignableDTSuperLayer.cc.

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

00018                                                                          {
00019    std::vector<Alignable*> theDets = r.components();
00020 
00021    os << "    This DTSuperLayer contains " << theDets.size() << " units" << std::endl ;
00022    os << "    position = " << r.globalPosition() << std::endl;
00023    os << "    (phi, r, z)= (" << r.globalPosition().phi() << "," << r.globalPosition().perp() << "," << r.globalPosition().z();
00024    os << "), orientation:" << std::endl<< r.globalRotation() << std::endl;
00025    
00026    os << "    total displacement and rotation: " << r.displacement() << std::endl;
00027    os << r.rotation() << std::endl;
00028  
00029    for (std::vector<Alignable*>::const_iterator idet = theDets.begin();  idet != theDets.end();  ++idet) {
00030       const align::Alignables& comp = (*idet)->components();
00031 
00032       for (unsigned int i = 0; i < comp.size(); ++i) {
00033          os << "     Det position, phi, r: " 
00034             << comp[i]->globalPosition() << " , "
00035             << comp[i]->globalPosition().phi() << " , "
00036             << comp[i]->globalPosition().perp() << std::endl; 
00037          os << "     local  position, phi, r: " 
00038             << r.surface().toLocal(comp[i]->globalPosition())        << " , "
00039             << r.surface().toLocal(comp[i]->globalPosition()).phi()  << " , "
00040             << r.surface().toLocal(comp[i]->globalPosition()).perp() << std::endl; 
00041       }
00042    }
00043 
00044    return os;
00045 }


Generated on Tue Jun 9 17:50:34 2009 for CMSSW by  doxygen 1.5.4