CMS 3D CMS Logo

AlignableDTSuperLayer Class Reference

A muon DT SuperLayer ( an AlignableDet ). More...

#include <Alignment/MuonAlignment/interface/AlignableDTSuperLayer.h>

Inheritance diagram for AlignableDTSuperLayer:

AlignableDet AlignableComposite Alignable

List of all members.

Public Member Functions

 AlignableDTSuperLayer (const GeomDet *geomDet)
 Constructor.

Friends

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


Detailed Description

A muon DT SuperLayer ( an AlignableDet ).

The alignable muon DT superlayer.

Date
2008/03/26 21:59:00
Revision
1.1
Author:
Jim Pivarski - Texas A&M University

Definition at line 25 of file AlignableDTSuperLayer.h.


Constructor & Destructor Documentation

AlignableDTSuperLayer::AlignableDTSuperLayer ( const GeomDet geomDet  ) 

Constructor.

Definition at line 10 of file AlignableDTSuperLayer.cc.

References align::AlignableDTSuperLayer, GeomDet::surface(), AlignableComposite::theStructureType, and Alignable::theSurface.

00010                                                                   : AlignableDet(geomDet)
00011 {
00012    theStructureType = align::AlignableDTSuperLayer;
00013    // DO NOT let the chamber position become an average of the layers
00014    this->theSurface = geomDet->surface();
00015 }


Friends And Related Function Documentation

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

Printout the DetUnits in the CSC chamber.

Definition at line 18 of file AlignableDTSuperLayer.cc.

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 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:14:18 2009 for CMSSW by  doxygen 1.5.4