CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/Geometry/CaloGeometry/interface/CaloCellGeometry.h File Reference

#include "Geometry/CaloGeometry/interface/EZArrayFL.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include <CLHEP/Geometry/Point3D.h>
#include <CLHEP/Geometry/Transform3D.h>
#include <vector>
#include <string>

Go to the source code of this file.

Classes

class  CaloCellGeometry

Functions

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

Function Documentation

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

Definition at line 96 of file CaloCellGeometry.cc.

References CaloCellGeometry::emptyCorners(), CaloCellGeometry::getCorners(), CaloCellGeometry::getPosition(), i, and asciidump::s.

{
   s << ", Center: " <<  cell.getPosition() << std::endl;

   if( cell.emptyCorners() )
   {
      s << "Corners vector is empty." << std::endl ;
   }
   else
   {
      const CaloCellGeometry::CornersVec& corners ( cell.getCorners() ) ;
      for ( unsigned int i ( 0 ) ; i != corners.size() ; ++i ) 
      {
         s << "Corner: " << corners[ i ] << std::endl;
      }
   }
   return s ;
}