#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 (const CrystalPad &right) | |
CrystalPad (unsigned number, const std::vector< CLHEP::Hep2Vector > &corners) | |
Order matters. 1234 2341 3412 4123 are ok but not 1324 .... More... | |
CrystalPad (unsigned number, const std::vector< XYZPoint > &corners, const Transform3D &, double scaf=1., bool bothdirections=false) | |
CrystalPad (unsigned number, int onEcal, const std::vector< XYZPoint > &corners, const XYZPoint &origin, const XYZVector &vec1, const XYZVector &vec2) | |
CLHEP::Hep2Vector & | edge (CaloDirection) |
access to one corner (NE,NW,SE,SW) More... | |
CLHEP::Hep2Vector & | edge (unsigned iside, int n) |
access to the corners in direction iside; n=0,1 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 13 of file CrystalPad.h.
Definition at line 18 of file CrystalPad.h.
Definition at line 17 of file CrystalPad.h.
typedef math::XYZVector CrystalPad::XYZPoint |
Definition at line 16 of file CrystalPad.h.
typedef math::XYZVector CrystalPad::XYZVector |
Definition at line 15 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 30 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 50 of file CrystalPad.cc.
References center_, TCMET_cfi::corner, corners_, gather_cfg::cout, dir_, dummy_, ROOT::Math::Transform3DPJ::GetDecomposition(), rotation_, Validation_hcalonly_cfi::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 93 of file CrystalPad.cc.
References center_, TCMET_cfi::corner, corners_, gather_cfg::cout, dir_, dummy_, ROOT::Math::Transform3DPJ::GetDecomposition(), rotation_, trans_, translation_, and yscalefactor_.
CrystalPad::CrystalPad | ( | const CrystalPad & | right | ) |
Definition at line 7 of file CrystalPad.cc.
References center_, corners_, dir_, dummy_, epsilon_, number_, and survivalProbability_.
|
inline |
Definition at line 43 of file CrystalPad.h.
|
inline |
get the center
Definition at line 95 of file CrystalPad.h.
References center_.
Referenced by operator<().
CLHEP::Hep2Vector & CrystalPad::edge | ( | CaloDirection | dir | ) |
access to one corner (NE,NW,SE,SW)
Definition at line 224 of file CrystalPad.cc.
References corners_, gather_cfg::cout, DeadROC_duringRun::dir, NORTHEAST, NORTHWEST, SOUTHEAST, and SOUTHWEST.
CLHEP::Hep2Vector & CrystalPad::edge | ( | unsigned | iside, |
int | n | ||
) |
access to the corners in direction iside; n=0,1
Definition at line 222 of file CrystalPad.cc.
References corners_, and dqmiodumpmetadata::n.
Referenced by EcalHitMaker::cracksPads(), EcalHitMaker::gapsLifting(), and operator<<().
void CrystalPad::extrems | ( | double & | xmin, |
double & | xmax, | ||
double & | ymin, | ||
double & | ymax | ||
) | const |
xmin xmax, ymin ymax of the quad
Definition at line 246 of file CrystalPad.cc.
References corners_, x, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, y, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.
|
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 54 of file CrystalPad.h.
References corners_.
void CrystalPad::getDrawingCoordinates | ( | std::vector< float > & | x, |
std::vector< float > & | y | ||
) | const |
|
inline |
access to the number
Definition at line 73 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 127 of file CrystalPad.cc.
References corners_, dir_, diffTwoXMLs::r1, and diffTwoXMLs::r2.
|
inline |
CrystalPad & CrystalPad::operator= | ( | const CrystalPad & | rhs | ) |
Definition at line 17 of file CrystalPad.cc.
References center_, corners_, dir_, dummy_, epsilon_, number_, and survivalProbability_.
|
inline |
get the coordinates in the original frame
Definition at line 84 of file CrystalPad.h.
References getNumber().
void CrystalPad::print | ( | void | ) | const |
void CrystalPad::resetCorners | ( | ) |
|
inline |
Definition at line 64 of file CrystalPad.h.
References survivalProbability_, and heppy_batch::val.
Referenced by EcalHitMaker::cracksPads().
|
inline |
access methods to the survivalProbability
Definition at line 63 of file CrystalPad.h.
References survivalProbability_.
|
staticprivate |
Definition at line 101 of file CrystalPad.h.
|
private |
Definition at line 110 of file CrystalPad.h.
Referenced by center(), CrystalPad(), operator<(), operator=(), and resetCorners().
|
private |
Definition at line 103 of file CrystalPad.h.
Referenced by CrystalPad(), edge(), extrems(), getCorners(), getDrawingCoordinates(), inside(), operator=(), print(), and resetCorners().
|
private |
Definition at line 104 of file CrystalPad.h.
Referenced by CrystalPad(), inside(), and operator=().
|
private |
Definition at line 112 of file CrystalPad.h.
Referenced by CrystalPad(), and operator=().
|
private |
Definition at line 111 of file CrystalPad.h.
Referenced by CrystalPad(), and operator=().
|
private |
Definition at line 105 of file CrystalPad.h.
Referenced by CrystalPad(), getNumber(), and operator=().
|
private |
Definition at line 107 of file CrystalPad.h.
Referenced by CrystalPad().
|
private |
Definition at line 109 of file CrystalPad.h.
Referenced by CrystalPad(), operator=(), setSurvivalProbability(), and survivalProbability().
|
private |
Definition at line 106 of file CrystalPad.h.
Referenced by CrystalPad().
|
private |
Definition at line 108 of file CrystalPad.h.
Referenced by CrystalPad().
|
private |
Definition at line 113 of file CrystalPad.h.
Referenced by CrystalPad().