CMS 3D CMS Logo

Classes | Functions
PreshowerStrip.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  PreshowerStrip
 A base class to handle the shape of preshower strips. More...
 

Functions

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

Function Documentation

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

Definition at line 74 of file PreshowerStrip.cc.

References PreshowerStrip::dx(), PreshowerStrip::dy(), PreshowerStrip::dz(), CaloCellGeometry::getCorners(), CaloCellGeometry::getPosition(), CaloCellGeometry::param(), and alignCSCRings::s.

Referenced by PreshowerStrip::getTransform().

75 {
76  s << "Center: " << cell.getPosition() << std::endl ;
77  if( cell.param() != 0 )
78  {
79  s << "dx = " << cell.dx() << ", dy = " << cell.dy() << ", dz = " << cell.dz() << std::endl ;
80 
81  const CaloCellGeometry::CornersVec& corners ( cell.getCorners() ) ;
82  for( unsigned int ci ( 0 ) ; ci != corners.size(); ci++ )
83  {
84  s << "Corner: " << corners[ci] << std::endl;
85  }
86  }
87  else
88  {
89  s << " with empty parameters." << std::endl;
90  }
91 
92  return s;
93 }
const CCGFloat * param() const
CCGFloat dx() const
CornersVec const & getCorners() const
Returns the corner points of this cell&#39;s volume.
CCGFloat dy() const
CCGFloat dz() const
const GlobalPoint & getPosition() const
Returns the position of reference for this cell.