CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_1/src/Geometry/CaloGeometry/interface/TruncatedPyramid.h File Reference

#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include <CLHEP/Geometry/Point3D.h>
#include <CLHEP/Geometry/Plane3D.h>
#include <CLHEP/Geometry/Vector3D.h>
#include <CLHEP/Geometry/Transform3D.h>
#include <vector>

Go to the source code of this file.

Classes

class  TruncatedPyramid
 A base class to handle the particular shape of Ecal Xtals. Taken from ORCA Calorimetry Code. More...

Functions

std::ostream & operator<< (std::ostream &s, const TruncatedPyramid &cell)

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const TruncatedPyramid cell 
)

Definition at line 398 of file TruncatedPyramid.cc.

References TruncatedPyramid::getCorners(), TruncatedPyramid::getPhiAxis(), TruncatedPyramid::getThetaAxis(), i, and alignCSCRings::s.

{
   s << "Center: " <<  ( (const CaloCellGeometry&) cell).getPosition() << std::endl;
   const float thetaaxis ( cell.getThetaAxis() ) ;
   const float phiaxis   ( cell.getPhiAxis()   ) ;
   s << "Axis: " <<  thetaaxis << " " << phiaxis << std::endl ;
   const CaloCellGeometry::CornersVec& corners ( cell.getCorners() ) ;
   for ( unsigned int i=0 ; i != corners.size() ; ++i ) 
   {
      s << "Corner: " << corners[i] << std::endl;
   }
  return s ;
}