#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=0) | |
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 (XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const |
Coordinates of the back side. More... | |
void | getBackSide (std::vector< XYZPoint > &corners) const |
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 (XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const |
coordinates of the front side More... | |
void | getFrontSide (std::vector< XYZPoint > &corners) const |
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, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const |
Coordinates of the i=th lateral side. More... | |
void | getLateralSide (unsigned i, std::vector< XYZPoint > &corners) const |
const Plane3D & | getPlane (const CaloDirection &side) const |
generic access More... | |
void | getSide (const CaloDirection &side, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const |
generic access More... | |
void | getSide (const CaloDirection &side, std::vector< XYZPoint > &corners) const |
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 ROOT::Math::Plane3D Crystal::Plane3D |
typedef math::XYZVector Crystal::XYZPoint |
typedef math::XYZVector Crystal::XYZVector |
Crystal::Crystal | ( | const DetId & | cell, |
const BaseCrystal * | bc = 0 |
||
) |
|
inline |
Direct acces to the iq-th neighbour.
Definition at line 102 of file Crystal.h.
References neighbours_.
|
inline |
normal exiting vector for the surface
Definition at line 84 of file Crystal.h.
References BaseCrystal::exitingNormal(), and myCrystal_.
|
inline |
get crystal axis
Definition at line 105 of file Crystal.h.
References BaseCrystal::getAxis(), and myCrystal_.
|
inline |
get front center
Definition at line 43 of file Crystal.h.
References BaseCrystal::getBackCenter(), and myCrystal_.
|
inline |
back plane
Definition at line 74 of file Crystal.h.
References BaseCrystal::getBackPlane(), and myCrystal_.
Coordinates of the back side.
Definition at line 59 of file Crystal.h.
References BaseCrystal::getBackSide(), and myCrystal_.
|
inline |
Definition at line 60 of file Crystal.h.
References BaseCrystal::getBackSide(), and myCrystal_.
|
inline |
get 1/8*(Sum of corners)
Definition at line 39 of file Crystal.h.
References BaseCrystal::getCenter(), and myCrystal_.
|
inline |
get the i-th corner
Definition at line 37 of file Crystal.h.
References BaseCrystal::getCorner(), and myCrystal_.
|
inline |
get the DetId
Definition at line 49 of file Crystal.h.
References cellid_.
Referenced by EcalHitMaker::EcalHitMaker(), and Crystal::crystalEqual::operator()().
|
inline |
for debugging.
Definition at line 89 of file Crystal.h.
References BaseCrystal::getDrawingCoordinates(), and myCrystal_.
|
inline |
Direction of the fifth edge.
Definition at line 47 of file Crystal.h.
References BaseCrystal::getFifthEdge(), and myCrystal_.
|
inline |
Direction of the first edge.
Definition at line 45 of file Crystal.h.
References BaseCrystal::getFirstEdge(), and myCrystal_.
Referenced by EcalHitMaker::getPads().
|
inline |
get front center
Definition at line 41 of file Crystal.h.
References BaseCrystal::getFrontCenter(), and myCrystal_.
|
inline |
front plane
Definition at line 72 of file Crystal.h.
References BaseCrystal::getFrontPlane(), and myCrystal_.
coordinates of the front side
Definition at line 56 of file Crystal.h.
References BaseCrystal::getFrontSide(), and myCrystal_.
|
inline |
Definition at line 57 of file Crystal.h.
References BaseCrystal::getFrontSide(), and myCrystal_.
|
inline |
lateral directions
Definition at line 81 of file Crystal.h.
References BaseCrystal::getLateralEdge(), and myCrystal_.
get the lateral edges
Definition at line 54 of file Crystal.h.
References BaseCrystal::getLateralEdges(), and myCrystal_.
|
inline |
lateral planes
Definition at line 76 of file Crystal.h.
References BaseCrystal::getLateralPlane(), and myCrystal_.
|
inline |
Coordinates of the i=th lateral side.
Definition at line 62 of file Crystal.h.
References BaseCrystal::getLateralSide(), and myCrystal_.
|
inline |
Definition at line 63 of file Crystal.h.
References BaseCrystal::getLateralSide(), and myCrystal_.
|
inline |
generic access
Definition at line 78 of file Crystal.h.
References BaseCrystal::getPlane(), and myCrystal_.
|
inline |
generic access
Definition at line 65 of file Crystal.h.
References BaseCrystal::getSide(), and myCrystal_.
|
inline |
Definition at line 67 of file Crystal.h.
References BaseCrystal::getSide(), and myCrystal_.
|
inline |
get the subdector
Definition at line 51 of file Crystal.h.
References BaseCrystal::getSubdetNumber(), and myCrystal_.
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 117 of file Crystal.h.
Referenced by getDetId().
|
private |
Definition at line 120 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 118 of file Crystal.h.
Referenced by Crystal(), and crystalNeighbour().
|
private |
Definition at line 113 of file Crystal.h.
Referenced by number(), and setNumber().
|
private |
Definition at line 119 of file Crystal.h.
Referenced by getX0Back(), and setX0Back().