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