CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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

◆ operator<<()

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

Definition at line 255 of file FlatHexagon.cc.

255  {
256  s << "Center: " << cell.getPosition() << " eta " << cell.etaPos() << " phi " << cell.phiPos() << std::endl;
257  s << "Axis: " << cell.getThetaAxis() << " " << cell.getPhiAxis() << std::endl;
258  const CaloCellGeometry::CornersVec& corners(cell.getCorners());
259  for (unsigned int i = 0; i != corners.size(); ++i) {
260  s << "Corner: " << corners[i] << std::endl;
261  }
262  return s;
263 }

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

mps_fire.i
i
Definition: mps_fire.py:428
FlatHexagon::phiPos
float phiPos() const override
Definition: FlatHexagon.h:52
CaloCellGeometry::getCorners
CornersVec const & getCorners() const
Returns the corner points of this cell's volume.
Definition: CaloCellGeometry.h:73
EZArrayFL< GlobalPoint >
FlatHexagon::etaPos
float etaPos() const override
Definition: FlatHexagon.h:51
alignCSCRings.s
s
Definition: alignCSCRings.py:92
FlatHexagon::getPhiAxis
CCGFloat getPhiAxis() const
Definition: FlatHexagon.cc:128
FlatHexagon::getPosition
GlobalPoint const & getPosition() const override
Returns the position of reference for this cell.
Definition: FlatHexagon.h:49
FlatHexagon::getThetaAxis
CCGFloat getThetaAxis() const
Definition: FlatHexagon.cc:126