CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
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>
#include "FWCore/Utilities/interface/GCC11Compatibility.h"

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 64 of file CaloCellGeometry.cc.

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

65 {
66  s << ", Center: " << cell.getPosition() << std::endl;
67 
68  if( cell.emptyCorners() )
69  {
70  s << "Corners vector is empty." << std::endl ;
71  }
72  else
73  {
74  const CaloCellGeometry::CornersVec& corners ( cell.getCorners() ) ;
75  for ( unsigned int i ( 0 ) ; i != corners.size() ; ++i )
76  {
77  s << "Corner: " << corners[ i ] << std::endl;
78  }
79  }
80  return s ;
81 }
int i
Definition: DBlmapReader.cc:9
bool emptyCorners() const
const GlobalPoint & getPosition() const
Returns the position of reference for this cell.
virtual const CornersVec & getCorners() const =0
Returns the corner points of this cell&#39;s volume.