CMS 3D CMS Logo

Classes | Functions
FlatHexagon.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 <cmath>
#include <vector>

Go to the source code of this file.

Classes

class  FlatHexagon
 A base class to handle the hexagonal shape of HGCal silicon volumes. More...
 

Functions

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

Function Documentation

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

Definition at line 285 of file FlatHexagon.cc.

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

285  {
286  s << "Center: " << cell.getPosition() << " eta " << cell.etaPos()
287  << " phi " << cell.phiPos() << std::endl;
288  s << "Axis: " << cell.getThetaAxis() << " " << cell.getPhiAxis() <<std::endl;
289  const CaloCellGeometry::CornersVec& corners ( cell.getCorners() ) ;
290  for ( unsigned int i=0 ; i != corners.size() ; ++i ) {
291  s << "Corner: " << corners[i] << std::endl;
292  }
293  return s ;
294 }
virtual float phiPos() const
Definition: FlatHexagon.h:50
GlobalPoint const & getPosition() const override
Returns the position of reference for this cell.
Definition: FlatHexagon.h:47
virtual float etaPos() const
Definition: FlatHexagon.h:49
CCGFloat getPhiAxis() const
Definition: FlatHexagon.cc:138
CornersVec const & getCorners() const
Returns the corner points of this cell&#39;s volume.
CCGFloat getThetaAxis() const
Definition: FlatHexagon.cc:134