CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
FlatTrd.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  FlatTrd
 A base class to handle the particular shape of HGCal volumes. More...
 

Functions

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

Function Documentation

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

Definition at line 266 of file FlatTrd.cc.

References FlatTrd::etaPos(), CaloCellGeometry::getCorners(), FlatTrd::getPhiAxis(), FlatTrd::getPosition(), FlatTrd::getThetaAxis(), i, FlatTrd::phiPos(), and alignCSCRings::s.

266  {
267  s << "Center: " << cell.getPosition() << " eta " << cell.etaPos()
268  << " phi " << cell.phiPos() << std::endl;
269  s << "Axis: " << cell.getThetaAxis() << " " << cell.getPhiAxis() <<std::endl;
270  const CaloCellGeometry::CornersVec& corners ( cell.getCorners() ) ;
271  for ( unsigned int i=0 ; i != corners.size() ; ++i ) {
272  s << "Corner: " << corners[i] << std::endl;
273  }
274  return s ;
275 }
int i
Definition: DBlmapReader.cc:9
virtual const GlobalPoint & getPosition() const
Definition: FlatTrd.h:46
CCGFloat getThetaAxis() const
Definition: FlatTrd.cc:118
virtual float phiPos() const
Definition: FlatTrd.h:49
virtual float etaPos() const
Definition: FlatTrd.h:48
const CornersVec & getCorners() const
Returns the corner points of this cell&#39;s volume.
CCGFloat getPhiAxis() const
Definition: FlatTrd.cc:122