#include <GeometryUtilities.h>
Public Member Functions | |
GeometryUtilities (geo::GeometryCore const &geom, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &propData) | |
Int_t | Get3DaxisN (Int_t iplane0, Int_t iplane1, Double_t omega0, Double_t omega1, Double_t &phi, Double_t &theta) const |
Double_t | CalculatePitch (UInt_t iplane0, Double_t phi, Double_t theta) const |
Double_t | CalculatePitchPolar (UInt_t iplane0, Double_t phi, Double_t theta) const |
Double_t | Get3DSpecialCaseTheta (Int_t iplane0, Int_t iplane1, Double_t dw0, Double_t dw1) const |
Double_t | Get2Dangle (Double_t deltawire, Double_t deltatime) const |
Double_t | Get2Dangle (Double_t wireend, Double_t wirestart, Double_t timeend, Double_t timestart) const |
double | Get2Dangle (const util::PxPoint *endpoint, const util::PxPoint *startpoint) const |
double | Get2DangleFrom3D (unsigned int plane, double phi, double theta) const |
double | Get2DangleFrom3D (unsigned int plane, TVector3 dir_vector) const |
Double_t | Get2Dslope (Double_t deltawire, Double_t deltatime) const |
Double_t | Get2Dslope (Double_t wireend, Double_t wirestart, Double_t timeend, Double_t timestart) const |
double | Get2Dslope (const util::PxPoint *endpoint, const util::PxPoint *startpoint) const |
Double_t | Get2DDistance (Double_t wire1, Double_t time1, Double_t wire2, Double_t time2) const |
double | Get2DDistance (const util::PxPoint *point1, const util::PxPoint *point2) const |
Double_t | Get2DPitchDistance (Double_t angle, Double_t inwire, Double_t wire) const |
Double_t | Get2DPitchDistanceWSlope (Double_t slope, Double_t inwire, Double_t wire) const |
Int_t | GetPointOnLine (Double_t slope, Double_t intercept, Double_t wire1, Double_t time1, Double_t &wireout, Double_t &timeout) const |
Int_t | GetPointOnLine (Double_t slope, Double_t wirestart, Double_t timestart, Double_t wire1, Double_t time1, Double_t &wireout, Double_t &timeout) const |
int | GetPointOnLine (Double_t slope, const util::PxPoint *startpoint, const util::PxPoint *point1, util::PxPoint &pointout) const |
int | GetPointOnLine (double slope, double intercept, const util::PxPoint *point1, util::PxPoint &pointout) const |
Int_t | GetPointOnLineWSlopes (Double_t slope, Double_t intercept, Double_t ort_intercept, Double_t &wireout, Double_t &timeout) const |
Int_t | GetPointOnLineWSlopes (double slope, double intercept, double ort_intercept, util::PxPoint &pointonline) const |
PxPoint | Get2DPointProjection (Double_t *xyz, Int_t plane) const |
PxPoint | Get2DPointProjectionCM (std::vector< double > xyz, int plane) const |
PxPoint | Get2DPointProjectionCM (double *xyz, int plane) const |
PxPoint | Get2DPointProjectionCM (TLorentzVector *xyz, int plane) const |
Double_t | GetTimeTicks (Double_t x, Int_t plane) const |
Int_t | GetProjectedPoint (const PxPoint *p0, const PxPoint *p1, PxPoint &pN) const |
util::PxHit | FindClosestHit (std::vector< util::PxHit > const &hitlist, unsigned int wirein, double timein) const |
unsigned int | FindClosestHitIndex (std::vector< util::PxHit > const &hitlist, unsigned int wirein, double timein) const |
Int_t | GetYZ (const PxPoint *p0, const PxPoint *p1, Double_t *yz) const |
Int_t | GetXYZ (const PxPoint *p0, const PxPoint *p1, Double_t *xyz) const |
Double_t | PitchInView (UInt_t plane, Double_t phi, Double_t theta) const |
void | GetDirectionCosines (Double_t phi, Double_t theta, Double_t *dirs) const |
void | SelectLocalHitlist (const std::vector< util::PxHit > &hitlist, std::vector< const util::PxHit * > &hitlistlocal, util::PxPoint &startHit, Double_t &linearlimit, Double_t &ortlimit, Double_t &lineslopetest) const |
void | SelectLocalHitlist (const std::vector< util::PxHit > &hitlist, std::vector< const util::PxHit * > &hitlistlocal, util::PxPoint &startHit, Double_t &linearlimit, Double_t &ortlimit, Double_t &lineslopetest, util::PxHit &averageHit) const |
void | SelectLocalHitlistIndex (const std::vector< util::PxHit > &hitlist, std::vector< unsigned int > &hitlistlocal_index, util::PxPoint &startHit, Double_t &linearlimit, Double_t &ortlimit, Double_t &lineslopetest) const |
void | SelectPolygonHitList (const std::vector< util::PxHit > &hitlist, std::vector< const util::PxHit * > &hitlistlocal) const |
std::vector< size_t > | PolyOverlap (std::vector< const util::PxHit * > ordered_hits, std::vector< size_t > candidate_polygon) const |
bool | Clockwise (double Ax, double Ay, double Bx, double By, double Cx, double Cy) const |
Double_t | TimeToCm () const |
Double_t | WireToCm () const |
Double_t | WireTimeToCmCm () const |
UInt_t | Nplanes () const |
Private Attributes | |
geo::GeometryCore const & | fGeom |
detinfo::DetectorClocksData const & | fClocks |
detinfo::DetectorPropertiesData const & | fDetProp |
std::vector< Double_t > | vertangle |
Double_t | fWirePitch |
Double_t | fTimeTick |
Double_t | fDriftVelocity |
UInt_t | fNPlanes |
Double_t | fWiretoCm |
Double_t | fTimetoCm |
Double_t | fWireTimetoCmCm |
Definition at line 35 of file GeometryUtilities.h.
util::GeometryUtilities::GeometryUtilities | ( | geo::GeometryCore const & | geom, |
detinfo::DetectorClocksData const & | clockData, | ||
detinfo::DetectorPropertiesData const & | propData | ||
) |
Definition at line 26 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::CalculatePitch | ( | UInt_t | iplane0, |
Double_t | phi, | ||
Double_t | theta | ||
) | const |
Definition at line 225 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::CalculatePitchPolar | ( | UInt_t | iplane0, |
Double_t | phi, | ||
Double_t | theta | ||
) | const |
Definition at line 262 of file GeometryUtilities.cxx.
bool util::GeometryUtilities::Clockwise | ( | double | Ax, |
double | Ay, | ||
double | Bx, | ||
double | By, | ||
double | Cx, | ||
double | Cy | ||
) | const |
Definition at line 1116 of file GeometryUtilities.cxx.
util::PxHit util::GeometryUtilities::FindClosestHit | ( | std::vector< util::PxHit > const & | hitlist, |
unsigned int | wirein, | ||
double | timein | ||
) | const |
Definition at line 1127 of file GeometryUtilities.cxx.
unsigned int util::GeometryUtilities::FindClosestHitIndex | ( | std::vector< util::PxHit > const & | hitlist, |
unsigned int | wirein, | ||
double | timein | ||
) | const |
Definition at line 1135 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::Get2Dangle | ( | Double_t | deltawire, |
Double_t | deltatime | ||
) | const |
Definition at line 361 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::Get2Dangle | ( | Double_t | wireend, |
Double_t | wirestart, | ||
Double_t | timeend, | ||
Double_t | timestart | ||
) | const |
Definition at line 335 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::Get2Dangle | ( | const util::PxPoint * | endpoint, |
const util::PxPoint * | startpoint | ||
) | const |
Definition at line 350 of file GeometryUtilities.cxx.
double util::GeometryUtilities::Get2DangleFrom3D | ( | unsigned int | plane, |
double | phi, | ||
double | theta | ||
) | const |
Definition at line 388 of file GeometryUtilities.cxx.
double util::GeometryUtilities::Get2DangleFrom3D | ( | unsigned int | plane, |
TVector3 | dir_vector | ||
) | const |
Definition at line 401 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::Get2DDistance | ( | Double_t | wire1, |
Double_t | time1, | ||
Double_t | wire2, | ||
Double_t | time2 | ||
) | const |
Definition at line 432 of file GeometryUtilities.cxx.
double util::GeometryUtilities::Get2DDistance | ( | const util::PxPoint * | point1, |
const util::PxPoint * | point2 | ||
) | const |
Definition at line 442 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::Get2DPitchDistance | ( | Double_t | angle, |
Double_t | inwire, | ||
Double_t | wire | ||
) | const |
Definition at line 452 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::Get2DPitchDistanceWSlope | ( | Double_t | slope, |
Double_t | inwire, | ||
Double_t | wire | ||
) | const |
Definition at line 461 of file GeometryUtilities.cxx.
PxPoint util::GeometryUtilities::Get2DPointProjection | ( | Double_t * | xyz, |
Int_t | plane | ||
) | const |
Definition at line 715 of file GeometryUtilities.cxx.
PxPoint util::GeometryUtilities::Get2DPointProjectionCM | ( | std::vector< double > | xyz, |
int | plane | ||
) | const |
Definition at line 744 of file GeometryUtilities.cxx.
PxPoint util::GeometryUtilities::Get2DPointProjectionCM | ( | double * | xyz, |
int | plane | ||
) | const |
Definition at line 762 of file GeometryUtilities.cxx.
PxPoint util::GeometryUtilities::Get2DPointProjectionCM | ( | TLorentzVector * | xyz, |
int | plane | ||
) | const |
Definition at line 780 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::Get2Dslope | ( | Double_t | deltawire, |
Double_t | deltatime | ||
) | const |
Definition at line 325 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::Get2Dslope | ( | Double_t | wireend, |
Double_t | wirestart, | ||
Double_t | timeend, | ||
Double_t | timestart | ||
) | const |
Definition at line 298 of file GeometryUtilities.cxx.
double util::GeometryUtilities::Get2Dslope | ( | const util::PxPoint * | endpoint, |
const util::PxPoint * | startpoint | ||
) | const |
Definition at line 313 of file GeometryUtilities.cxx.
Int_t util::GeometryUtilities::Get3DaxisN | ( | Int_t | iplane0, |
Int_t | iplane1, | ||
Double_t | omega0, | ||
Double_t | omega1, | ||
Double_t & | phi, | ||
Double_t & | theta | ||
) | const |
Definition at line 53 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::Get3DSpecialCaseTheta | ( | Int_t | iplane0, |
Int_t | iplane1, | ||
Double_t | dw0, | ||
Double_t | dw1 | ||
) | const |
Definition at line 187 of file GeometryUtilities.cxx.
void util::GeometryUtilities::GetDirectionCosines | ( | Double_t | phi, |
Double_t | theta, | ||
Double_t * | dirs | ||
) | const |
Definition at line 834 of file GeometryUtilities.cxx.
Int_t util::GeometryUtilities::GetPointOnLine | ( | Double_t | slope, |
Double_t | intercept, | ||
Double_t | wire1, | ||
Double_t | time1, | ||
Double_t & | wireout, | ||
Double_t & | timeout | ||
) | const |
Definition at line 472 of file GeometryUtilities.cxx.
Int_t util::GeometryUtilities::GetPointOnLine | ( | Double_t | slope, |
Double_t | wirestart, | ||
Double_t | timestart, | ||
Double_t | wire1, | ||
Double_t | time1, | ||
Double_t & | wireout, | ||
Double_t & | timeout | ||
) | const |
Definition at line 541 of file GeometryUtilities.cxx.
int util::GeometryUtilities::GetPointOnLine | ( | Double_t | slope, |
const util::PxPoint * | startpoint, | ||
const util::PxPoint * | point1, | ||
util::PxPoint & | pointout | ||
) | const |
Definition at line 499 of file GeometryUtilities.cxx.
int util::GeometryUtilities::GetPointOnLine | ( | double | slope, |
double | intercept, | ||
const util::PxPoint * | point1, | ||
util::PxPoint & | pointout | ||
) | const |
Definition at line 515 of file GeometryUtilities.cxx.
Int_t util::GeometryUtilities::GetPointOnLineWSlopes | ( | Double_t | slope, |
Double_t | intercept, | ||
Double_t | ort_intercept, | ||
Double_t & | wireout, | ||
Double_t & | timeout | ||
) | const |
Definition at line 559 of file GeometryUtilities.cxx.
Int_t util::GeometryUtilities::GetPointOnLineWSlopes | ( | double | slope, |
double | intercept, | ||
double | ort_intercept, | ||
util::PxPoint & | pointonline | ||
) | const |
Definition at line 585 of file GeometryUtilities.cxx.
Int_t util::GeometryUtilities::GetProjectedPoint | ( | const PxPoint * | p0, |
const PxPoint * | p1, | ||
PxPoint & | pN | ||
) | const |
Definition at line 601 of file GeometryUtilities.cxx.
Double_t util::GeometryUtilities::GetTimeTicks | ( | Double_t | x, |
Int_t | plane | ||
) | const |
Definition at line 788 of file GeometryUtilities.cxx.
Int_t util::GeometryUtilities::GetXYZ | ( | const PxPoint * | p0, |
const PxPoint * | p1, | ||
Double_t * | xyz | ||
) | const |
Definition at line 695 of file GeometryUtilities.cxx.
Int_t util::GeometryUtilities::GetYZ | ( | const PxPoint * | p0, |
const PxPoint * | p1, | ||
Double_t * | yz | ||
) | const |
Definition at line 634 of file GeometryUtilities.cxx.
|
inline |
Definition at line 195 of file GeometryUtilities.h.
Double_t util::GeometryUtilities::PitchInView | ( | UInt_t | plane, |
Double_t | phi, | ||
Double_t | theta | ||
) | const |
Definition at line 803 of file GeometryUtilities.cxx.
std::vector< size_t > util::GeometryUtilities::PolyOverlap | ( | std::vector< const util::PxHit * > | ordered_hits, |
std::vector< size_t > | candidate_polygon | ||
) | const |
Definition at line 1078 of file GeometryUtilities.cxx.
void util::GeometryUtilities::SelectLocalHitlist | ( | const std::vector< util::PxHit > & | hitlist, |
std::vector< const util::PxHit * > & | hitlistlocal, | ||
util::PxPoint & | startHit, | ||
Double_t & | linearlimit, | ||
Double_t & | ortlimit, | ||
Double_t & | lineslopetest | ||
) | const |
Definition at line 844 of file GeometryUtilities.cxx.
void util::GeometryUtilities::SelectLocalHitlist | ( | const std::vector< util::PxHit > & | hitlist, |
std::vector< const util::PxHit * > & | hitlistlocal, | ||
util::PxPoint & | startHit, | ||
Double_t & | linearlimit, | ||
Double_t & | ortlimit, | ||
Double_t & | lineslopetest, | ||
util::PxHit & | averageHit | ||
) | const |
Definition at line 861 of file GeometryUtilities.cxx.
void util::GeometryUtilities::SelectLocalHitlistIndex | ( | const std::vector< util::PxHit > & | hitlist, |
std::vector< unsigned int > & | hitlistlocal_index, | ||
util::PxPoint & | startHit, | ||
Double_t & | linearlimit, | ||
Double_t & | ortlimit, | ||
Double_t & | lineslopetest | ||
) | const |
Definition at line 895 of file GeometryUtilities.cxx.
void util::GeometryUtilities::SelectPolygonHitList | ( | const std::vector< util::PxHit > & | hitlist, |
std::vector< const util::PxHit * > & | hitlistlocal | ||
) | const |
Definition at line 927 of file GeometryUtilities.cxx.
|
inline |
Definition at line 180 of file GeometryUtilities.h.
|
inline |
Definition at line 190 of file GeometryUtilities.h.
|
inline |
Definition at line 185 of file GeometryUtilities.h.
|
private |
Definition at line 202 of file GeometryUtilities.h.
|
private |
Definition at line 203 of file GeometryUtilities.h.
|
private |
Definition at line 208 of file GeometryUtilities.h.
|
private |
Definition at line 201 of file GeometryUtilities.h.
|
private |
Definition at line 209 of file GeometryUtilities.h.
|
private |
Definition at line 207 of file GeometryUtilities.h.
|
private |
Definition at line 211 of file GeometryUtilities.h.
|
private |
Definition at line 206 of file GeometryUtilities.h.
|
private |
Definition at line 212 of file GeometryUtilities.h.
|
private |
Definition at line 210 of file GeometryUtilities.h.
|
private |
Definition at line 205 of file GeometryUtilities.h.