CMS 3D CMS Logo

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

Go to the source code of this file.

Namespaces

 truncPyr
 

Typedefs

typedef TruncatedPyramid::CCGFloat CCGFloat
 
typedef HepGeom::Plane3D< double > DPlane3D
 
typedef HepGeom::Point3D< double > DPt3D
 
typedef HepGeom::Vector3D< double > DVec3D
 
typedef HepGeom::Plane3D
< CCGFloat
Plane3D
 
typedef TruncatedPyramid::Pt3D Pt3D
 
typedef TruncatedPyramid::Pt3DVec Pt3DVec
 
typedef TruncatedPyramid::Tr3D Tr3D
 
typedef HepGeom::Vector3D
< CCGFloat
Vec3D
 

Functions

std::ostream & operator<< (std::ostream &s, const TruncatedPyramid &cell)
 
Pt3D truncPyr::refl (const Pt3D &p)
 

Typedef Documentation

Definition at line 6 of file TruncatedPyramid.cc.

typedef HepGeom::Plane3D<double> DPlane3D

Definition at line 15 of file TruncatedPyramid.cc.

typedef HepGeom::Point3D<double> DPt3D

Definition at line 16 of file TruncatedPyramid.cc.

typedef HepGeom::Vector3D<double> DVec3D

Definition at line 14 of file TruncatedPyramid.cc.

typedef HepGeom::Plane3D<CCGFloat> Plane3D

Definition at line 12 of file TruncatedPyramid.cc.

Definition at line 7 of file TruncatedPyramid.cc.

Definition at line 8 of file TruncatedPyramid.cc.

Definition at line 9 of file TruncatedPyramid.cc.

typedef HepGeom::Vector3D<CCGFloat> Vec3D

Definition at line 11 of file TruncatedPyramid.cc.

Function Documentation

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

Definition at line 398 of file TruncatedPyramid.cc.

References TruncatedPyramid::getCorners(), TruncatedPyramid::getPhiAxis(), TruncatedPyramid::getThetaAxis(), i, and alignCSCRings::s.

399 {
400  s << "Center: " << ( (const CaloCellGeometry&) cell).getPosition() << std::endl;
401  const float thetaaxis ( cell.getThetaAxis() ) ;
402  const float phiaxis ( cell.getPhiAxis() ) ;
403  s << "Axis: " << thetaaxis << " " << phiaxis << std::endl ;
404  const CaloCellGeometry::CornersVec& corners ( cell.getCorners() ) ;
405  for ( unsigned int i=0 ; i != corners.size() ; ++i )
406  {
407  s << "Corner: " << corners[i] << std::endl;
408  }
409  return s ;
410 }
int i
Definition: DBlmapReader.cc:9
CCGFloat getPhiAxis() const
CCGFloat getThetaAxis() const
virtual const CornersVec & getCorners() const
Returns the corner points of this cell&#39;s volume.