#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 26 of file BaseCrystal.h.
typedef math::XYZVector BaseCrystal::XYZPoint |
Definition at line 25 of file BaseCrystal.h.
Definition at line 24 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 86 of file BaseCrystal.cc.
References backcenter_, center_, corners_, crystalaxis_, exitingNormal_, fifthedgedirection_, firstedgedirection_, frontcenter_, mps_fire::i, lateraldirection_, and lateralPlane_.
Referenced by getAxis(), and setCorners().
|
inline |
normal exiting vector for the surface
Definition at line 95 of file BaseCrystal.h.
References exitingNormal_, getDrawingCoordinates(), oppositeDirection(), CaloDirectionOperations::Side(), x, y, and z.
Referenced by Crystal::exitingNormal().
|
inline |
get crystal axis
Definition at line 103 of file BaseCrystal.h.
References computeBasicProperties(), crystalaxis_, and print().
Referenced by Crystal::getAxis().
|
inline |
get front center
Definition at line 55 of file BaseCrystal.h.
References backcenter_.
Referenced by Crystal::getBackCenter().
|
inline |
back plane
Definition at line 85 of file BaseCrystal.h.
References lateralPlane_.
Referenced by Crystal::getBackPlane().
Coordinates of the back side.
Definition at line 157 of file BaseCrystal.cc.
References corners_.
Referenced by Crystal::getBackSide(), getSide(), and getSubdetNumber().
void BaseCrystal::getBackSide | ( | std::vector< XYZPoint > & | corners | ) | const |
|
inline |
get 1/8*(Sum of corners)
Definition at line 51 of file BaseCrystal.h.
References center_.
Referenced by Crystal::getCenter().
|
inline |
get the i-th corner
Definition at line 49 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 196 of file BaseCrystal.cc.
References corners_, X, DOFs::Y, and DOFs::Z.
Referenced by exitingNormal(), and Crystal::getDrawingCoordinates().
|
inline |
Direction of the fifth edge.
Definition at line 59 of file BaseCrystal.h.
References fifthedgedirection_.
Referenced by Crystal::getFifthEdge().
|
inline |
Direction of the first edge.
Definition at line 57 of file BaseCrystal.h.
References firstedgedirection_.
Referenced by Crystal::getFirstEdge().
|
inline |
get front center
Definition at line 53 of file BaseCrystal.h.
References frontcenter_.
Referenced by Crystal::getFrontCenter().
|
inline |
front plane
Definition at line 83 of file BaseCrystal.h.
References lateralPlane_.
Referenced by Crystal::getFrontPlane().
coordinates of the front side
Definition at line 138 of file BaseCrystal.cc.
References corners_.
Referenced by Crystal::getFrontSide(), getSide(), and getSubdetNumber().
void BaseCrystal::getFrontSide | ( | std::vector< XYZPoint > & | corners | ) | const |
|
inline |
lateral directions
Definition at line 92 of file BaseCrystal.h.
References mps_fire::i, and lateraldirection_.
Referenced by Crystal::getLateralEdge().
get the lateral edges
Definition at line 129 of file BaseCrystal.cc.
References corners_, mps_fire::i, and mitigatedMETSequence_cff::U.
Referenced by Crystal::getLateralEdges(), getLateralSide(), and getSubdetNumber().
|
inline |
lateral planes
Definition at line 87 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 176 of file BaseCrystal.cc.
References getLateralEdges(), and mitigatedMETSequence_cff::U.
Referenced by Crystal::getLateralSide(), getSide(), and getSubdetNumber().
void BaseCrystal::getLateralSide | ( | unsigned | i, |
std::vector< XYZPoint > & | corners | ||
) | const |
Definition at line 185 of file BaseCrystal.cc.
References corners_, mps_fire::i, and mitigatedMETSequence_cff::U.
|
inline |
generic access
Definition at line 89 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 257 of file BaseCrystal.cc.
References DOWN, getBackSide(), getFrontSide(), getLateralSide(), CaloDirectionOperations::Side(), and UP.
Referenced by Crystal::getSide(), and getSubdetNumber().
void BaseCrystal::getSide | ( | const CaloDirection & | side, |
std::vector< XYZPoint > & | corners | ||
) | const |
Definition at line 285 of file BaseCrystal.cc.
References DOWN, getBackSide(), getFrontSide(), getLateralSide(), CaloDirectionOperations::Side(), and UP.
|
inline |
get the subdector
Definition at line 63 of file BaseCrystal.h.
References a, b, EnergyCorrector::c, edmIntegrityCheck::d, getBackSide(), getFrontSide(), getLateralEdges(), getLateralSide(), getSide(), mps_fire::i, and subdetn_.
Referenced by Crystal::getSubdetNumber().
|
static |
Referenced by exitingNormal().
void BaseCrystal::print | ( | void | ) | const |
Definition at line 272 of file BaseCrystal.cc.
References backcenter_, cellid_, center_, corners_, gather_cfg::cout, exitingNormal_, frontcenter_, triggerObjects_cff::id, and DetId::rawId().
Referenced by getAxis(), and Crystal::print().
void BaseCrystal::setCorners | ( | const CaloCellGeometry::CornersVec & | vec, |
const GlobalPoint & | pos | ||
) |
Definition at line 14 of file BaseCrystal.cc.
References computeBasicProperties(), corners_, EcalBarrel, EcalEndcap, PFRecoTauDiscriminationByIsolation_cfi::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(), and ~BaseCrystal().
|
private |
Definition at line 116 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getBackCenter(), and print().
|
private |
Definition at line 112 of file BaseCrystal.h.
Referenced by BaseCrystal(), getDetId(), and print().
|
private |
Definition at line 114 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getCenter(), and print().
|
private |
Definition at line 111 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getBackSide(), getCorner(), getDrawingCoordinates(), getFrontSide(), getLateralEdges(), getLateralSide(), print(), and setCorners().
|
private |
Definition at line 119 of file BaseCrystal.h.
Referenced by computeBasicProperties(), and getAxis().
|
private |
Definition at line 122 of file BaseCrystal.h.
Referenced by computeBasicProperties(), exitingNormal(), and print().
|
private |
Definition at line 118 of file BaseCrystal.h.
Referenced by computeBasicProperties(), and getFifthEdge().
|
private |
Definition at line 117 of file BaseCrystal.h.
Referenced by computeBasicProperties(), and getFirstEdge().
|
private |
Definition at line 115 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getFrontCenter(), and print().
|
private |
Definition at line 120 of file BaseCrystal.h.
Referenced by computeBasicProperties(), and getLateralEdge().
|
private |
Definition at line 121 of file BaseCrystal.h.
Referenced by computeBasicProperties(), getBackPlane(), getFrontPlane(), getLateralPlane(), and getPlane().
|
private |
Definition at line 113 of file BaseCrystal.h.
Referenced by BaseCrystal(), getSubdetNumber(), and setCorners().