CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Functions
CaloCellGeometry.cc File Reference
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include <CLHEP/Geometry/Plane3D.h>

Go to the source code of this file.

Typedefs

typedef CaloCellGeometry::CCGFloat CCGFloat
 
typedef HepGeom::Plane3D< double > DPlane3D
 
typedef HepGeom::Point3D< double > DPt3D
 
typedef std::vector< DPt3DDPt3DVec
 
typedef HepGeom::Vector3D< double > DVec3D
 
typedef HepGeom::Plane3D
< CCGFloat
Plane3D
 
typedef CaloCellGeometry::Pt3D Pt3D
 
typedef CaloCellGeometry::Pt3DVec Pt3DVec
 
typedef CaloCellGeometry::Tr3D Tr3D
 
typedef HepGeom::Vector3D
< CCGFloat
Vec3D
 

Functions

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

Typedef Documentation

Definition at line 4 of file CaloCellGeometry.cc.

typedef HepGeom::Plane3D<double> DPlane3D

Definition at line 13 of file CaloCellGeometry.cc.

typedef HepGeom::Point3D<double> DPt3D

Definition at line 14 of file CaloCellGeometry.cc.

typedef std::vector<DPt3D> DPt3DVec

Definition at line 15 of file CaloCellGeometry.cc.

typedef HepGeom::Vector3D<double> DVec3D

Definition at line 12 of file CaloCellGeometry.cc.

typedef HepGeom::Plane3D<CCGFloat> Plane3D

Definition at line 10 of file CaloCellGeometry.cc.

Definition at line 5 of file CaloCellGeometry.cc.

Definition at line 6 of file CaloCellGeometry.cc.

Definition at line 7 of file CaloCellGeometry.cc.

typedef HepGeom::Vector3D<CCGFloat> Vec3D

Definition at line 9 of file CaloCellGeometry.cc.

Function Documentation

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

Definition at line 92 of file CaloCellGeometry.cc.

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

93 {
94  s << ", Center: " << cell.getPosition() << std::endl;
95 
96  if( cell.emptyCorners() )
97  {
98  s << "Corners vector is empty." << std::endl ;
99  }
100  else
101  {
102  const CaloCellGeometry::CornersVec& corners ( cell.getCorners() ) ;
103  for ( unsigned int i ( 0 ) ; i != corners.size() ; ++i )
104  {
105  s << "Corner: " << corners[ i ] << std::endl;
106  }
107  }
108  return s ;
109 }
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.