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