1 #ifndef FastSimulation_GeometryTool_BaseCrystal_h 2 #define FastSimulation_GeometryTool_BaseCrystal_h 6 #include "Math/GenVector/Plane3D.h" 69 void getBackSide(std::vector<XYZPoint>& corners)
const;
void getBackSide(XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
Coordinates of the back side.
XYZVector firstedgedirection_
void setCorners(const CaloCellGeometry::CornersVec &vec, const GlobalPoint &pos)
const XYZPoint & getCenter() const
get 1/8*(Sum of corners)
const Plane3D & getLateralPlane(unsigned i) const
lateral planes
void getLateralSide(unsigned i, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
Coordinates of the i=th lateral side.
const XYZVector & getLateralEdge(unsigned i) const
lateral directions
math::XYZVector XYZVector
void getSide(const CaloDirection &side, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
generic access
const XYZPoint & getFrontCenter() const
get front center
const Plane3D & getBackPlane() const
back plane
static unsigned oppositeDirection(unsigned iside)
XYZVector lateraldirection_[4]
void getFrontSide(XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
coordinates of the front side
BaseCrystal()
Empty constructor.
const XYZVector & exitingNormal(const CaloDirection &side) const
normal exiting vector for the surface
const DetId & getDetId() const
get the DetId
const XYZVector & getAxis() const
get crystal axis
const XYZPoint & getBackCenter() const
get front center
ROOT::Math::Plane3D Plane3D
void getLateralEdges(unsigned i, XYZPoint &, XYZPoint &) const
get the lateral edges
const XYZVector & getFirstEdge() const
Direction of the first edge.
XYZVector exitingNormal_[6]
static CaloDirection Side(unsigned i)
unsigned int -> Side conversion
const Plane3D & getPlane(const CaloDirection &side) const
generic access
XYZVectorD XYZVector
spatial vector with cartesian internal representation
const XYZPoint & getCorner(unsigned i) const
get the i-th corner
void getDrawingCoordinates(std::vector< float > &x, std::vector< float > &y, std::vector< float > &z) const
for debugging.
~BaseCrystal()
Copy constructor.
CaloDirection
Codes the local directions in the cell lattice.
const XYZVector & getFifthEdge() const
Direction of the fifth edge.
const Plane3D & getFrontPlane() const
front plane
XYZVector fifthedgedirection_
const int getSubdetNumber() const
get the subdector
ROOT::Math::Plane3D Plane3D
void computeBasicProperties()