#include <Crystal.h>
Classes | |
class | crystalEqual |
Public Types | |
typedef ROOT::Math::Plane3D | Plane3D |
typedef math::XYZVector | XYZPoint |
typedef math::XYZVector | XYZVector |
Public Member Functions | |
Crystal () | |
Empty constructor. More... | |
Crystal (const DetId &cell, const BaseCrystal *bc=nullptr) | |
constructor from DetId More... | |
CrystalNeighbour & | crystalNeighbour (unsigned iq) |
Direct acces to the iq-th neighbour. More... | |
const XYZVector & | exitingNormal (const CaloDirection &side) const |
normal exiting vector for the surface More... | |
const XYZVector & | getAxis () const |
get crystal axis More... | |
const XYZPoint & | getBackCenter () const |
get front center More... | |
const Plane3D & | getBackPlane () const |
back plane More... | |
void | getBackSide (std::vector< XYZPoint > &corners) const |
void | getBackSide (XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const |
Coordinates of the back side. More... | |
const XYZPoint & | getCenter () const |
get 1/8*(Sum of corners) More... | |
const XYZPoint & | getCorner (unsigned i) const |
get the i-th corner More... | |
const DetId & | getDetId () const |
get the DetId More... | |
void | getDrawingCoordinates (std::vector< float > &x, std::vector< float > &y, std::vector< float > &z) const |
for debugging. More... | |
const XYZVector & | getFifthEdge () const |
Direction of the fifth edge. More... | |
const XYZVector & | getFirstEdge () const |
Direction of the first edge. More... | |
const XYZPoint & | getFrontCenter () const |
get front center More... | |
const Plane3D & | getFrontPlane () const |
front plane More... | |
void | getFrontSide (std::vector< XYZPoint > &corners) const |
void | getFrontSide (XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const |
coordinates of the front side More... | |
const XYZVector & | getLateralEdge (unsigned i) const |
lateral directions More... | |
void | getLateralEdges (unsigned i, XYZPoint &a, XYZPoint &b) const |
get the lateral edges More... | |
const Plane3D & | getLateralPlane (unsigned i) const |
lateral planes More... | |
void | getLateralSide (unsigned i, std::vector< XYZPoint > &corners) const |
void | getLateralSide (unsigned i, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const |
Coordinates of the i=th lateral side. More... | |
const Plane3D & | getPlane (const CaloDirection &side) const |
generic access More... | |
void | getSide (const CaloDirection &side, std::vector< XYZPoint > &corners) const |
void | getSide (const CaloDirection &side, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const |
generic access More... | |
const int | getSubdetNumber () const |
get the subdector More... | |
double | getX0Back () const |
get the X0back More... | |
unsigned | number () const |
get the number of the crystal More... | |
void | print () const |
void | setNumber (unsigned n) |
it might be useful to have a number assigned to the crystal More... | |
void | setX0Back (double val) |
set X0back (it depends on the choosen origin, it isn't purely geometrical) More... | |
~Crystal () | |
Static Public Member Functions | |
static unsigned | oppositeDirection (unsigned iside) |
Private Attributes | |
DetId | cellid_ |
const BaseCrystal * | myCrystal_ |
std::vector< CrystalNeighbour > | neighbours_ |
unsigned | number_ |
double | X0back_ |
typedef math::XYZVector Crystal::XYZPoint |
typedef math::XYZVector Crystal::XYZVector |
|
inline |
Crystal::Crystal | ( | const DetId & | cell, |
const BaseCrystal * | bc = nullptr |
||
) |
|
inline |
Direct acces to the iq-th neighbour.
Definition at line 98 of file Crystal.h.
References neighbours_.
|
inline |
normal exiting vector for the surface
Definition at line 82 of file Crystal.h.
References BaseCrystal::exitingNormal(), and myCrystal_.
|
inline |
get crystal axis
Definition at line 101 of file Crystal.h.
References BaseCrystal::getAxis(), and myCrystal_.
|
inline |
get front center
Definition at line 40 of file Crystal.h.
References BaseCrystal::getBackCenter(), and myCrystal_.
|
inline |
back plane
Definition at line 72 of file Crystal.h.
References BaseCrystal::getBackPlane(), and myCrystal_.
|
inline |
Coordinates of the back side.
Definition at line 56 of file Crystal.h.
References a, b, HltBtagPostValidation_cff::c, ztail::d, BaseCrystal::getBackSide(), and myCrystal_.
|
inline |
get 1/8*(Sum of corners)
Definition at line 36 of file Crystal.h.
References BaseCrystal::getCenter(), and myCrystal_.
|
inline |
get the i-th corner
Definition at line 34 of file Crystal.h.
References BaseCrystal::getCorner(), mps_fire::i, and myCrystal_.
|
inline |
get the DetId
Definition at line 46 of file Crystal.h.
References cellid_.
Referenced by EcalHitMaker::EcalHitMaker(), and Crystal::crystalEqual::operator()().
|
inline |
for debugging.
Definition at line 87 of file Crystal.h.
References BaseCrystal::getDrawingCoordinates(), myCrystal_, x, y, and z.
|
inline |
Direction of the fifth edge.
Definition at line 44 of file Crystal.h.
References BaseCrystal::getFifthEdge(), and myCrystal_.
|
inline |
Direction of the first edge.
Definition at line 42 of file Crystal.h.
References BaseCrystal::getFirstEdge(), and myCrystal_.
Referenced by EcalHitMaker::getPads().
|
inline |
get front center
Definition at line 38 of file Crystal.h.
References BaseCrystal::getFrontCenter(), and myCrystal_.
|
inline |
front plane
Definition at line 70 of file Crystal.h.
References BaseCrystal::getFrontPlane(), and myCrystal_.
|
inline |
coordinates of the front side
Definition at line 53 of file Crystal.h.
References a, b, HltBtagPostValidation_cff::c, ztail::d, BaseCrystal::getFrontSide(), and myCrystal_.
|
inline |
lateral directions
Definition at line 79 of file Crystal.h.
References BaseCrystal::getLateralEdge(), mps_fire::i, and myCrystal_.
get the lateral edges
Definition at line 51 of file Crystal.h.
References a, b, BaseCrystal::getLateralEdges(), mps_fire::i, and myCrystal_.
|
inline |
lateral planes
Definition at line 74 of file Crystal.h.
References BaseCrystal::getLateralPlane(), mps_fire::i, and myCrystal_.
|
inline |
Definition at line 62 of file Crystal.h.
References BaseCrystal::getLateralSide(), mps_fire::i, and myCrystal_.
|
inline |
Coordinates of the i=th lateral side.
Definition at line 59 of file Crystal.h.
References a, b, HltBtagPostValidation_cff::c, ztail::d, BaseCrystal::getLateralSide(), mps_fire::i, and myCrystal_.
|
inline |
generic access
Definition at line 76 of file Crystal.h.
References BaseCrystal::getPlane(), and myCrystal_.
|
inline |
|
inline |
generic access
Definition at line 64 of file Crystal.h.
References a, b, HltBtagPostValidation_cff::c, ztail::d, BaseCrystal::getSide(), and myCrystal_.
|
inline |
get the subdector
Definition at line 48 of file Crystal.h.
References BaseCrystal::getSubdetNumber(), and myCrystal_.
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 113 of file Crystal.h.
Referenced by getDetId().
|
private |
Definition at line 116 of file Crystal.h.
Referenced by exitingNormal(), getAxis(), getBackCenter(), getBackPlane(), getBackSide(), getCenter(), getCorner(), getDrawingCoordinates(), getFifthEdge(), getFirstEdge(), getFrontCenter(), getFrontPlane(), getFrontSide(), getLateralEdge(), getLateralEdges(), getLateralPlane(), getLateralSide(), getPlane(), getSide(), getSubdetNumber(), and print().
|
private |
Definition at line 114 of file Crystal.h.
Referenced by Crystal(), and crystalNeighbour().
|
private |
Definition at line 109 of file Crystal.h.
Referenced by Crystal(), number(), and setNumber().
|
private |
Definition at line 115 of file Crystal.h.
Referenced by getX0Back(), and setX0Back().