Go to the documentation of this file. 1 #ifndef FastSimulation_GeometryTool_Crystal_h
2 #define FastSimulation_GeometryTool_Crystal_h
5 #include "Math/GenVector/Plane3D.h"
const int getSubdetNumber() const
get the subdector
crystalEqual(const DetId &cell)
math::XYZVector XYZVector
const XYZPoint & getFrontCenter() const
get front center
CaloDirection
Codes the local directions in the cell lattice.
void getSide(const CaloDirection &side, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
generic access
const Plane3D & getLateralPlane(unsigned i) const
lateral planes
const XYZVector & getAxis() const
get crystal axis
const XYZVector & getLateralEdge(unsigned i) const
lateral directions
const Plane3D & getBackPlane() const
back plane
void getLateralSide(unsigned i, std::vector< XYZPoint > &corners) const
const XYZVector & getLateralEdge(unsigned i) const
lateral directions
void getSide(const CaloDirection &side, std::vector< XYZPoint > &corners) const
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 XYZPoint & getCenter() const
get 1/8*(Sum of corners)
CrystalNeighbour & crystalNeighbour(unsigned iq)
Direct acces to the iq-th neighbour.
const XYZPoint & getBackCenter() const
get front center
const XYZPoint & getBackCenter() const
get front center
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
std::vector< CrystalNeighbour > neighbours_
void getBackSide(std::vector< XYZPoint > &corners) const
const XYZVector & getAxis() const
get crystal axis
const XYZPoint & getFrontCenter() const
get front center
ROOT::Math::Plane3D Plane3D
const DetId & getDetId() const
get the DetId
void getLateralEdges(unsigned i, XYZPoint &a, XYZPoint &b) const
get the lateral edges
const int getSubdetNumber() const
get the subdector
void getDrawingCoordinates(std::vector< float > &x, std::vector< float > &y, std::vector< float > &z) const
for debugging.
const XYZVector & getFirstEdge() const
Direction of the first edge.
const Plane3D & getPlane(const CaloDirection &side) const
generic access
const XYZVector & exitingNormal(const CaloDirection &side) const
normal exiting vector for the surface
void getLateralEdges(unsigned i, XYZPoint &, XYZPoint &) const
get the lateral edges
bool operator()(const Crystal &xtal) const
void getFrontSide(std::vector< XYZPoint > &corners) const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
static unsigned oppositeDirection(unsigned iside)
const Plane3D & getPlane(const CaloDirection &side) const
generic access
void setX0Back(double val)
set X0back (it depends on the choosen origin, it isn't purely geometrical)
const BaseCrystal * myCrystal_
ROOT::Math::Plane3D Plane3D
Crystal()
Empty constructor.
unsigned number() const
get the number of the crystal
const XYZPoint & getCorner(unsigned i) const
get the i-th corner
const XYZVector & getFirstEdge() const
Direction of the first edge.
const Plane3D & getFrontPlane() const
front plane
const XYZPoint & getCenter() const
get 1/8*(Sum of corners)
void getLateralSide(unsigned i, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
Coordinates of the i=th lateral side.
void setNumber(unsigned n)
it might be useful to have a number assigned to the crystal
const Plane3D & getFrontPlane() const
front plane
const XYZVector & getFifthEdge() const
Direction of the fifth edge.
void getBackSide(XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
Coordinates of the back side.
void getFrontSide(XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
coordinates of the front side
const XYZPoint & getCorner(unsigned i) const
get the i-th corner
const Plane3D & getBackPlane() const
back plane
void getDrawingCoordinates(std::vector< float > &x, std::vector< float > &y, std::vector< float > &z) const
for debugging.
const XYZVector & getFifthEdge() const
Direction of the fifth edge.
double getX0Back() const
get the X0back