#include <CrystalPad.h>
Classes | |
class | padEqual |
equality operator More... | |
Public Types | |
typedef ROOT::Math::Transform3DPJ::Point | Point |
typedef ROOT::Math::Transform3DPJ | Transform3D |
typedef math::XYZVector | XYZPoint |
typedef math::XYZVector | XYZVector |
Public Member Functions | |
const CLHEP::Hep2Vector & | center () const |
get the center More... | |
CrystalPad () | |
CrystalPad (unsigned number, const std::vector< CLHEP::Hep2Vector > &corners) | |
Order matters. 1234 2341 3412 4123 are ok but not 1324 .... More... | |
CrystalPad (unsigned number, int onEcal, const std::vector< XYZPoint > &corners, const XYZPoint &origin, const XYZVector &vec1, const XYZVector &vec2) | |
CrystalPad (unsigned number, const std::vector< XYZPoint > &corners, const Transform3D &, double scaf=1., bool bothdirections=false) | |
CrystalPad (const CrystalPad &right) | |
CLHEP::Hep2Vector & | edge (unsigned iside, int n) |
access to the corners in direction iside; n=0,1 More... | |
CLHEP::Hep2Vector & | edge (CaloDirection) |
access to one corner (NE,NW,SE,SW) More... | |
void | extrems (double &xmin, double &xmax, double &ymin, double &ymax) const |
xmin xmax, ymin ymax of the quad More... | |
const std::vector < CLHEP::Hep2Vector > & | getCorners () const |
Check that the point (in the global frame) is inside the crystal. More... | |
void | getDrawingCoordinates (std::vector< float > &x, std::vector< float > &y) const |
for graphic debugging More... | |
unsigned | getNumber () const |
access to the number More... | |
bool | inside (const CLHEP::Hep2Vector &point, bool debug=false) const |
Check that the point (in the local frame) is inside the crystal. More... | |
bool | operator< (const CrystalPad &quad) const |
CrystalPad & | operator= (const CrystalPad &rhs) |
bool | operator== (const CrystalPad &quad) const |
get the coordinates in the original frame More... | |
void | print () const |
print More... | |
void | resetCorners () |
Rescale the Quad to allow for some inaccuracy ... More... | |
void | setSurvivalProbability (double val) |
double | survivalProbability () const |
access methods to the survivalProbability More... | |
~CrystalPad () | |
Private Attributes | |
CLHEP::Hep2Vector | center_ |
std::vector< CLHEP::Hep2Vector > | corners_ |
std::vector< CLHEP::Hep2Vector > | dir_ |
bool | dummy_ |
double | epsilon_ |
unsigned | number_ |
ROOT::Math::Rotation3D | rotation_ |
double | survivalProbability_ |
Transform3D | trans_ |
XYZVector | translation_ |
double | yscalefactor_ |
Static Private Attributes | |
static std::vector < CLHEP::Hep2Vector > | aVector |
Definition at line 14 of file CrystalPad.h.
Definition at line 21 of file CrystalPad.h.
Definition at line 20 of file CrystalPad.h.
typedef math::XYZVector CrystalPad::XYZPoint |
Definition at line 19 of file CrystalPad.h.
typedef math::XYZVector CrystalPad::XYZVector |
Definition at line 18 of file CrystalPad.h.
|
inline |
CrystalPad::CrystalPad | ( | unsigned | number, |
const std::vector< CLHEP::Hep2Vector > & | corners | ||
) |
Order matters. 1234 2341 3412 4123 are ok but not 1324 ....
Definition at line 33 of file CrystalPad.cc.
References center_, corners_, gather_cfg::cout, dir_, and dummy_.
CrystalPad::CrystalPad | ( | unsigned | number, |
int | onEcal, | ||
const std::vector< XYZPoint > & | corners, | ||
const XYZPoint & | origin, | ||
const XYZVector & | vec1, | ||
const XYZVector & | vec2 | ||
) |
Constructor from space points, with the description of the local frame (origin,vec1,vec2) where vec1 is normal to the plane and vec2 in the plane
Definition at line 66 of file CrystalPad.cc.
References center_, corners_, gather_cfg::cout, dir_, dummy_, ROOT::Math::Transform3DPJ::GetDecomposition(), rotation_, jetcorrextractor::sign(), trans_, and translation_.
CrystalPad::CrystalPad | ( | unsigned | number, |
const std::vector< XYZPoint > & | corners, | ||
const Transform3D & | trans, | ||
double | scaf = 1. , |
||
bool | bothdirections = false |
||
) |
Definition at line 121 of file CrystalPad.cc.
References center_, corners_, gather_cfg::cout, dir_, dummy_, ROOT::Math::Transform3DPJ::GetDecomposition(), rotation_, edmStreamStallGrapher::trans, trans_, translation_, and yscalefactor_.
CrystalPad::CrystalPad | ( | const CrystalPad & | right | ) |
Definition at line 8 of file CrystalPad.cc.
References center_, corners_, dir_, dummy_, epsilon_, number_, and survivalProbability_.
|
inline |
Definition at line 45 of file CrystalPad.h.
|
inline |
get the center
Definition at line 101 of file CrystalPad.h.
References center_.
Referenced by operator<().
CLHEP::Hep2Vector & CrystalPad::edge | ( | unsigned | iside, |
int | n | ||
) |
access to the corners in direction iside; n=0,1
Definition at line 263 of file CrystalPad.cc.
References corners_, and gen::n.
Referenced by EcalHitMaker::cracksPads(), EcalHitMaker::gapsLifting(), and operator<<().
CLHEP::Hep2Vector & CrystalPad::edge | ( | CaloDirection | dir | ) |
access to one corner (NE,NW,SE,SW)
Definition at line 268 of file CrystalPad.cc.
References corners_, gather_cfg::cout, NORTHEAST, NORTHWEST, SOUTHEAST, and SOUTHWEST.
void CrystalPad::extrems | ( | double & | xmin, |
double & | xmax, | ||
double & | ymin, | ||
double & | ymax | ||
) | const |
xmin xmax, ymin ymax of the quad
Definition at line 295 of file CrystalPad.cc.
References corners_, x, and detailsBasic3DVector::y.
|
inline |
Check that the point (in the global frame) is inside the crystal.
coordinates of the point in the local frame get the corners
Definition at line 56 of file CrystalPad.h.
References corners_.
void CrystalPad::getDrawingCoordinates | ( | std::vector< float > & | x, |
std::vector< float > & | y | ||
) | const |
for graphic debugging
Definition at line 335 of file CrystalPad.cc.
References corners_, x, and detailsBasic3DVector::y.
|
inline |
access to the number
Definition at line 75 of file CrystalPad.h.
References number_.
Referenced by CrystalPad::padEqual::operator()(), operator<<(), and operator==().
bool CrystalPad::inside | ( | const CLHEP::Hep2Vector & | point, |
bool | debug = false |
||
) | const |
Check that the point (in the local frame) is inside the crystal.
Definition at line 166 of file CrystalPad.cc.
References corners_, dir_, diffTwoXMLs::r1, and diffTwoXMLs::r2.
|
inline |
Definition at line 92 of file CrystalPad.h.
References center(), and center_.
CrystalPad & CrystalPad::operator= | ( | const CrystalPad & | rhs | ) |
Definition at line 20 of file CrystalPad.cc.
References center_, corners_, dir_, dummy_, epsilon_, number_, and survivalProbability_.
|
inline |
get the coordinates in the original frame
Definition at line 86 of file CrystalPad.h.
References getNumber().
void CrystalPad::print | ( | void | ) | const |
void CrystalPad::resetCorners | ( | ) |
Rescale the Quad to allow for some inaccuracy ...
Definition at line 309 of file CrystalPad.cc.
References center_, and corners_.
|
inline |
Definition at line 66 of file CrystalPad.h.
References survivalProbability_.
Referenced by EcalHitMaker::cracksPads().
|
inline |
access methods to the survivalProbability
Definition at line 65 of file CrystalPad.h.
References survivalProbability_.
|
staticprivate |
Definition at line 109 of file CrystalPad.h.
|
private |
Definition at line 118 of file CrystalPad.h.
Referenced by center(), CrystalPad(), operator<(), operator=(), and resetCorners().
|
private |
Definition at line 111 of file CrystalPad.h.
Referenced by CrystalPad(), edge(), extrems(), getCorners(), getDrawingCoordinates(), inside(), operator=(), print(), and resetCorners().
|
private |
Definition at line 112 of file CrystalPad.h.
Referenced by CrystalPad(), inside(), and operator=().
|
private |
Definition at line 120 of file CrystalPad.h.
Referenced by CrystalPad(), and operator=().
|
private |
Definition at line 119 of file CrystalPad.h.
Referenced by CrystalPad(), and operator=().
|
private |
Definition at line 113 of file CrystalPad.h.
Referenced by CrystalPad(), getNumber(), and operator=().
|
private |
Definition at line 115 of file CrystalPad.h.
Referenced by CrystalPad().
|
private |
Definition at line 117 of file CrystalPad.h.
Referenced by CrystalPad(), operator=(), setSurvivalProbability(), and survivalProbability().
|
private |
Definition at line 114 of file CrystalPad.h.
Referenced by CrystalPad().
|
private |
Definition at line 116 of file CrystalPad.h.
Referenced by CrystalPad().
|
private |
Definition at line 121 of file CrystalPad.h.
Referenced by CrystalPad().