CMS 3D CMS Logo

Classes | Functions
TruncatedPyramid.h File Reference
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include <CLHEP/Geometry/Point3D.h>
#include <CLHEP/Geometry/Plane3D.h>
#include <CLHEP/Geometry/Vector3D.h>
#include <CLHEP/Geometry/Transform3D.h>
#include <vector>

Go to the source code of this file.

Classes

class  TruncatedPyramid
 A base class to handle the particular shape of Ecal Xtals. Taken from ORCA Calorimetry Code. More...
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 305 of file TruncatedPyramid.cc.

305  {
306  s << "Center: " << ((const CaloCellGeometry&)cell).getPosition() << std::endl;
307  const float thetaaxis(cell.getThetaAxis());
308  const float phiaxis(cell.getPhiAxis());
309  s << "Axis: " << thetaaxis << " " << phiaxis << std::endl;
310  const CaloCellGeometry::CornersVec& corners(cell.getCorners());
311  for (unsigned int i = 0; i != corners.size(); ++i) {
312  s << "Corner: " << corners[i] << std::endl;
313  }
314  return s;
315 }

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

mps_fire.i
i
Definition: mps_fire.py:428
CaloCellGeometry::getCorners
CornersVec const & getCorners() const
Returns the corner points of this cell's volume.
Definition: CaloCellGeometry.h:73
EZArrayFL< GlobalPoint >
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CaloCellGeometry
Definition: CaloCellGeometry.h:50
TruncatedPyramid::getThetaAxis
CCGFloat getThetaAxis() const
Definition: TruncatedPyramid.cc:49
TruncatedPyramid::getPhiAxis
CCGFloat getPhiAxis() const
Definition: TruncatedPyramid.cc:51