#include <BaseCrystal.h>
Public Types | |
typedef ROOT::Math::Plane3D | Plane3D |
typedef math::XYZVector | XYZPoint |
typedef math::XYZVector | XYZVector |
Public Member Functions | |
BaseCrystal () | |
Empty constructor. More... | |
BaseCrystal (const DetId &cell) | |
constructor from DetId 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 &, XYZPoint &) 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... | |
void | print () const |
void | setCorners (const CaloCellGeometry::CornersVec &vec, const GlobalPoint &pos) |
~BaseCrystal () | |
Copy constructor. More... | |
Static Public Member Functions | |
static unsigned | oppositeDirection (unsigned iside) |
Private Member Functions | |
void | computeBasicProperties () |
Private Attributes | |
XYZPoint | backcenter_ |
DetId | cellid_ |
XYZPoint | center_ |
XYZPoint | corners_ [8] |
XYZVector | crystalaxis_ |
XYZVector | exitingNormal_ [6] |
XYZVector | fifthedgedirection_ |
XYZVector | firstedgedirection_ |
XYZPoint | frontcenter_ |
XYZVector | lateraldirection_ [4] |
Plane3D | lateralPlane_ [6] |
int | subdetn_ |
Definition at line 19 of file BaseCrystal.h.
typedef ROOT::Math::Plane3D BaseCrystal::Plane3D |
Definition at line 23 of file BaseCrystal.h.
typedef math::XYZVector BaseCrystal::XYZPoint |
Definition at line 22 of file BaseCrystal.h.
Definition at line 21 of file BaseCrystal.h.
|
inline |
BaseCrystal::BaseCrystal | ( | const DetId & | cell | ) |
constructor from DetId
Definition at line 9 of file BaseCrystal.cc.
References cellid_, DetId::subdetId(), and subdetn_.
|
inline |
|
private |
Definition at line 72 of file BaseCrystal.cc.
References backcenter_, center_, corners_, crystalaxis_, exitingNormal_, fifthedgedirection_, firstedgedirection_, frontcenter_, mps_fire::i, lateraldirection_, and lateralPlane_.
Referenced by setCorners().
|
inline |
normal exiting vector for the surface
Definition at line 92 of file BaseCrystal.h.
References exitingNormal_, and CaloDirectionOperations::Side().
Referenced by Crystal::exitingNormal().
|
inline |
get crystal axis
Definition at line 102 of file BaseCrystal.h.
References crystalaxis_.
Referenced by Crystal::getAxis().
|
inline |
get front center
Definition at line 52 of file BaseCrystal.h.
References backcenter_.
Referenced by Crystal::getBackCenter().
|
inline |
back plane
Definition at line 80 of file BaseCrystal.h.
References lateralPlane_.
Referenced by Crystal::getBackPlane().
Coordinates of the back side.
Definition at line 133 of file BaseCrystal.cc.
References corners_.
Referenced by Crystal::getBackSide(), and getSide().
void BaseCrystal::getBackSide | ( | std::vector< XYZPoint > & | corners | ) | const |
|
inline |
get 1/8*(Sum of corners)
Definition at line 48 of file BaseCrystal.h.
References center_.
Referenced by Crystal::getCenter().
|
inline |
get the i-th corner
Definition at line 46 of file BaseCrystal.h.
References corners_, and mps_fire::i.
Referenced by Crystal::getCorner().
|
inline |
void BaseCrystal::getDrawingCoordinates | ( | std::vector< float > & | x, |
std::vector< float > & | y, | ||
std::vector< float > & | z | ||
) | const |
for debugging.
Definition at line 167 of file BaseCrystal.cc.
References corners_, X, BeamSpotPI::Y, and BeamSpotPI::Z.
Referenced by Crystal::getDrawingCoordinates().
|
inline |
Direction of the fifth edge.
Definition at line 56 of file BaseCrystal.h.
References fifthedgedirection_.
Referenced by Crystal::getFifthEdge().
|
inline |
Direction of the first edge.
Definition at line 54 of file BaseCrystal.h.
References firstedgedirection_.
Referenced by Crystal::getFirstEdge().
|
inline |
get front center
Definition at line 50 of file BaseCrystal.h.
References frontcenter_.
Referenced by Crystal::getFrontCenter().
|
inline |
front plane
Definition at line 78 of file BaseCrystal.h.
References lateralPlane_.
Referenced by Crystal::getFrontPlane().
coordinates of the front side
Definition at line 117 of file BaseCrystal.cc.
References corners_.
Referenced by Crystal::getFrontSide(), and getSide().
void BaseCrystal::getFrontSide | ( | std::vector< XYZPoint > & | corners | ) | const |
|
inline |
lateral directions
Definition at line 89 of file BaseCrystal.h.
References mps_fire::i, and lateraldirection_.
Referenced by Crystal::getLateralEdge().
get the lateral edges
Definition at line 109 of file BaseCrystal.cc.
References corners_, and mps_fire::i.
Referenced by Crystal::getLateralEdges(), and getLateralSide().
|
inline |
lateral planes
Definition at line 82 of file BaseCrystal.h.
References mps_fire::i, and lateralPlane_.
Referenced by Crystal::getLateralPlane().
void BaseCrystal::getLateralSide | ( | unsigned | i, |
XYZPoint & | a, | ||
XYZPoint & | b, | ||
XYZPoint & | c, | ||
XYZPoint & | d | ||
) | const |
Coordinates of the i=th lateral side.
Definition at line 149 of file BaseCrystal.cc.
References getLateralEdges().
Referenced by Crystal::getLateralSide(), and getSide().
void BaseCrystal::getLateralSide | ( | unsigned | i, |
std::vector< XYZPoint > & | corners | ||
) | const |
|
inline |
generic access
Definition at line 84 of file BaseCrystal.h.
References lateralPlane_, and CaloDirectionOperations::Side().
Referenced by Crystal::getPlane().
void BaseCrystal::getSide | ( | const CaloDirection & | side, |
XYZPoint & | a, | ||
XYZPoint & | b, | ||
XYZPoint & | c, | ||
XYZPoint & | d | ||
) | const |
generic access
Definition at line 224 of file BaseCrystal.cc.
References DOWN, getBackSide(), getFrontSide(), getLateralSide(), CaloDirectionOperations::Side(), and UP.
Referenced by Crystal::getSide().
void BaseCrystal::getSide | ( | const CaloDirection & | side, |
std::vector< XYZPoint > & | corners | ||
) | const |
Definition at line 250 of file BaseCrystal.cc.
References DOWN, getBackSide(), getFrontSide(), getLateralSide(), CaloDirectionOperations::Side(), and UP.
|
inline |
get the subdector
Definition at line 60 of file BaseCrystal.h.
References subdetn_.
Referenced by Crystal::getSubdetNumber().
|
static |
void BaseCrystal::print | ( | void | ) | const |
Definition at line 237 of file BaseCrystal.cc.
References backcenter_, cellid_, center_, corners_, gather_cfg::cout, exitingNormal_, frontcenter_, gpuClustering::id, and DetId::rawId().
Referenced by Crystal::print().
void BaseCrystal::setCorners | ( | const CaloCellGeometry::CornersVec & | vec, |
const GlobalPoint & | pos | ||
) |
Definition at line 11 of file BaseCrystal.cc.
References computeBasicProperties(), corners_, EcalBarrel, EcalEndcap, hltrates_dqm_sourceclient-live_cfg::offset, EZArrayFL< T >::size(), subdetn_, x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by CaloGeometryHelper::buildCrystalArray().
|
private |
Definition at line 115 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getBackCenter(), and print().
|
private |
Definition at line 111 of file BaseCrystal.h.
Referenced by BaseCrystal(), getDetId(), and print().
|
private |
Definition at line 113 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getCenter(), and print().
|
private |
Definition at line 110 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getBackSide(), getCorner(), getDrawingCoordinates(), getFrontSide(), getLateralEdges(), getLateralSide(), print(), and setCorners().
|
private |
Definition at line 118 of file BaseCrystal.h.
Referenced by computeBasicProperties(), and getAxis().
|
private |
Definition at line 121 of file BaseCrystal.h.
Referenced by computeBasicProperties(), exitingNormal(), and print().
|
private |
Definition at line 117 of file BaseCrystal.h.
Referenced by computeBasicProperties(), and getFifthEdge().
|
private |
Definition at line 116 of file BaseCrystal.h.
Referenced by computeBasicProperties(), and getFirstEdge().
|
private |
Definition at line 114 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getFrontCenter(), and print().
|
private |
Definition at line 119 of file BaseCrystal.h.
Referenced by computeBasicProperties(), and getLateralEdge().
|
private |
Definition at line 120 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getBackPlane(), getFrontPlane(), getLateralPlane(), and getPlane().
|
private |
Definition at line 112 of file BaseCrystal.h.
Referenced by BaseCrystal(), getSubdetNumber(), and setCorners().