CMS 3D CMS Logo

Public Member Functions | Friends

AlignableDTSuperLayer Class Reference

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

#include <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 GeomDet::surface(), AlignableComposite::theStructureType, and Alignable::theSurface.

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

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.

                                                                         {
   std::vector<Alignable*> theDets = r.components();

   os << "    This DTSuperLayer contains " << theDets.size() << " units" << std::endl ;
   os << "    position = " << r.globalPosition() << std::endl;
   os << "    (phi, r, z)= (" << r.globalPosition().phi() << "," << r.globalPosition().perp() << "," << r.globalPosition().z();
   os << "), orientation:" << std::endl<< r.globalRotation() << std::endl;
   
   os << "    total displacement and rotation: " << r.displacement() << std::endl;
   os << r.rotation() << std::endl;
 
   for (std::vector<Alignable*>::const_iterator idet = theDets.begin();  idet != theDets.end();  ++idet) {
      const align::Alignables& comp = (*idet)->components();

      for (unsigned int i = 0; i < comp.size(); ++i) {
         os << "     Det position, phi, r: " 
            << comp[i]->globalPosition() << " , "
            << comp[i]->globalPosition().phi() << " , "
            << comp[i]->globalPosition().perp() << std::endl; 
         os << "     local  position, phi, r: " 
            << r.surface().toLocal(comp[i]->globalPosition())        << " , "
            << r.surface().toLocal(comp[i]->globalPosition()).phi()  << " , "
            << r.surface().toLocal(comp[i]->globalPosition()).perp() << std::endl; 
      }
   }

   return os;
}