CMS 3D CMS Logo

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 "DataFormats/Math/interface/PtEtaPhiMass.h"
#include <vector>
#include <array>
#include <string>
#include <cassert>

Go to the source code of this file.

Classes

class  CaloCellGeometry
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 37 of file CaloCellGeometry.cc.

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

37  {
38  s << ", Center: " << cell.getPosition() << std::endl;
39 
40  if (cell.emptyCorners()) {
41  s << "Corners vector is empty." << std::endl;
42  } else {
43  const CaloCellGeometry::CornersVec& corners(cell.getCorners());
44  for (unsigned int i(0); i != corners.size(); ++i) {
45  s << "Corner: " << corners[i] << std::endl;
46  }
47  }
48  return s;
49 }
bool emptyCorners() const
virtual const GlobalPoint & getPosition() const
Returns the position of reference for this cell.
CornersVec const & getCorners() const
Returns the corner points of this cell&#39;s volume.