CMS 3D CMS Logo

Namespaces | Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/Geometry/CaloGeometry/src/TruncatedPyramid.cc File Reference

#include "Geometry/CaloGeometry/interface/TruncatedPyramid.h"
#include <algorithm>
#include <iostream>

Go to the source code of this file.

Namespaces

namespace  truncPyr

Functions

std::ostream & operator<< (std::ostream &s, const TruncatedPyramid &cell)
HepGeom::Point3D< double > truncPyr::refl (const HepGeom::Point3D< double > &p)

Function Documentation

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

Definition at line 288 of file TruncatedPyramid.cc.

References TruncatedPyramid::getCorners(), TruncatedPyramid::getPhiAxis(), TruncatedPyramid::getThetaAxis(), i, and asciidump::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 ;
}