#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &s, const CaloCellGeometry &cell) |
std::ostream& operator<< | ( | std::ostream & | s, | |
const CaloCellGeometry & | cell | |||
) |
Definition at line 11 of file CaloCellGeometry.cc.
References CaloCellGeometry::emptyCorners(), lat::endl(), CaloCellGeometry::getCorners(), CaloCellGeometry::getPosition(), and i.
00012 { 00013 s << ", Center: " << cell.getPosition() << std::endl; 00014 00015 if( cell.emptyCorners() ) 00016 { 00017 s << "Corners vector is empty." << std::endl ; 00018 } 00019 else 00020 { 00021 const CaloCellGeometry::CornersVec& corners ( cell.getCorners() ) ; 00022 for ( unsigned int i ( 0 ) ; i != corners.size() ; ++i ) 00023 { 00024 s << "Corner: " << corners[ i ] << std::endl; 00025 } 00026 } 00027 return s ; 00028 }