14 const float x ( ctr.
x() ) ;
15 const float y ( ctr.
y() ) ;
16 const float z ( ctr.
z() ) ;
32 s <<
"Center: " << cell.
getPosition() << std::endl ;
33 s <<
"dx = " << cell.
dx() <<
", dy = " << cell.
dy() <<
", dz = " << cell.
dz() << std::endl ;
42 std::vector<HepGeom::Point3D<double> >
44 HepGeom::Point3D<double> & ref )
48 const double dx ( pv[0] ) ;
49 const double dy ( pv[1] ) ;
50 const double dz ( pv[2] ) ;
52 std::vector<HepGeom::Point3D<double> > lc ( 8, HepGeom::Point3D<double> (0,0,0) ) ;
54 lc[0] = HepGeom::Point3D<double> ( -
dx, -
dy, -
dz ) ;
55 lc[1] = HepGeom::Point3D<double> ( -
dx,
dy, -
dz ) ;
56 lc[2] = HepGeom::Point3D<double> (
dx,
dy, -
dz ) ;
57 lc[3] = HepGeom::Point3D<double> (
dx, -
dy, -
dz ) ;
58 lc[4] = HepGeom::Point3D<double> ( -
dx, -
dy,
dz ) ;
59 lc[5] = HepGeom::Point3D<double> ( -
dx,
dy,
dz ) ;
60 lc[6] = HepGeom::Point3D<double> (
dx,
dy,
dz ) ;
61 lc[7] = HepGeom::Point3D<double> (
dx, -
dy,
dz ) ;
63 ref = HepGeom::Point3D<double> (0,0,0) ;
virtual const CornersVec & getCorners() const
Global3DPoint GlobalPoint
std::ostream & operator<<(std::ostream &out, const ALILine &li)
A base class to handle the shape of preshower strips.
CornersVec & setCorners() const
static std::vector< HepGeom::Point3D< double > > localCorners(const double *pv, HepGeom::Point3D< double > &ref)
bool uninitialized() const
const GlobalPoint & getPosition() const
virtual const CornersVec & getCorners() const =0