CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
CrystalPad.cc File Reference
#include "FastSimulation/CaloGeometryTools/interface/CrystalPad.h"
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ost, CrystalPad &quad)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  ost,
CrystalPad quad 
)

Definition at line 274 of file CrystalPad.cc.

References CrystalPad::edge(), CrystalPad::getNumber(), NORTHEAST, NORTHWEST, SOUTHEAST, and SOUTHWEST.

274  {
275  ost << " Number " << quad.getNumber() << std::endl;
276  ost << NORTHWEST << quad.edge(NORTHWEST) << std::endl;
277  ost << NORTHEAST << quad.edge(NORTHEAST) << std::endl;
278  ost << SOUTHEAST << quad.edge(SOUTHEAST) << std::endl;
279  ost << SOUTHWEST << quad.edge(SOUTHWEST) << std::endl;
280 
281  return ost;
282 }
CLHEP::Hep2Vector & edge(unsigned iside, int n)
access to the corners in direction iside; n=0,1
Definition: CrystalPad.cc:222
unsigned getNumber() const
access to the number
Definition: CrystalPad.h:73