#include <PmaElement3D.h>
Public Member Functions | |
int | TPC (void) const |
TPC index or -1 if out of any TPC. More... | |
int | Cryo (void) const |
Cryostat index or -1 if out of any cryostat. More... | |
virtual double | GetDistance2To (const TVector3 &p3d) const =0 |
Distance [cm] from the 3D point to the object 3D. More... | |
virtual double | GetDistance2To (const TVector2 &p2d, unsigned int view) const =0 |
Distance [cm] from the 2D point to the object's 2D projection in one of wire views. More... | |
virtual pma::Vector3D | GetDirection3D (void) const =0 |
Get 3D direction cosines corresponding to this element. More... | |
virtual TVector3 | GetUnconstrainedProj3D (const TVector2 &p2d, unsigned int view) const =0 |
virtual void | SetProjection (pma::Hit3D &h) const =0 |
virtual double | Length2 (void) const =0 |
double | Length (void) const |
const std::vector< pma::Hit3D * > & | Hits (void) const |
bool | HasHit (const pma::Hit3D *h) const |
pma::Hit3D & | Hit (size_t index) |
void | RemoveHitAt (size_t index) |
void | AddHit (pma::Hit3D *h) |
size_t | NHits (void) const |
size_t | NEnabledHits (unsigned int view=geo::kUnknown) const |
size_t | NPrecalcEnabledHits (void) const |
TVector3 const & | ReferencePoint (size_t index) const |
size_t | NPoints (void) const |
void | AddPoint (TVector3 *p) |
virtual void | ClearAssigned (pma::Track3D *trk=0) |
void | UpdateHitParams (void) |
void | UpdateProjection (void) |
void | SortHits (void) |
double | SumDist2 (void) const |
double | SumDist2 (unsigned int view) const |
double | SumHitsQ (unsigned int view) const |
unsigned int | NHits (unsigned int view) const |
unsigned int | NThisHits (unsigned int view) const |
double | HitsRadius3D (unsigned int view) const |
bool | IsFrozen (void) const |
Check if the vertex 3D position is fixed. More... | |
void | SetFrozen (bool state) |
Fix / relese vertex 3D position. More... | |
bool | SelectRndHits (size_t nmax_per_view) |
bool | SelectAllHits (void) |
Static Public Member Functions | |
static float | OptFactor (unsigned int view) |
static void | SetOptFactor (unsigned int view, float value) |
Protected Member Functions | |
Element3D (void) | |
virtual double | SumDist2Hits (void) const =0 |
Protected Attributes | |
int | fTPC |
int | fCryo |
bool | fFrozen |
std::vector< pma::Hit3D * > | fAssignedHits |
std::vector< TVector3 * > | fAssignedPoints |
size_t | fNThisHits [3] |
size_t | fNThisHitsEnabledAll |
size_t | fNHits [3] |
double | fSumHitsQ [3] |
double | fHitsRadius |
Static Protected Attributes | |
static float | fOptFactors [3] = { 0.2F, 0.8F, 1.0F } |
Definition at line 31 of file PmaElement3D.h.
|
protected |
Definition at line 22 of file PmaElement3D.cxx.
|
inline |
Definition at line 69 of file PmaElement3D.h.
|
inline |
Definition at line 81 of file PmaElement3D.h.
|
virtual |
Clear hits/points vectors of this element, optionally only those which are owned by given track.
Reimplemented in pma::Node3D.
Definition at line 50 of file PmaElement3D.cxx.
|
inline |
|
pure virtual |
Get 3D direction cosines corresponding to this element.
Implemented in pma::Node3D, and pma::Segment3D.
|
pure virtual |
Distance [cm] from the 3D point to the object 3D.
Implemented in pma::Node3D, and pma::Segment3D.
|
pure virtual |
Distance [cm] from the 2D point to the object's 2D projection in one of wire views.
Implemented in pma::Node3D, and pma::Segment3D.
|
pure virtual |
Implemented in pma::Node3D, and pma::Segment3D.
|
inline |
Definition at line 57 of file PmaElement3D.h.
|
inline |
Definition at line 63 of file PmaElement3D.h.
|
inline |
Definition at line 55 of file PmaElement3D.h.
double pma::Element3D::HitsRadius3D | ( | unsigned int | view | ) | const |
Definition at line 225 of file PmaElement3D.cxx.
|
inline |
|
inline |
Definition at line 53 of file PmaElement3D.h.
|
pure virtual |
Implemented in pma::Node3D, and pma::Segment3D.
size_t pma::Element3D::NEnabledHits | ( | unsigned int | view = geo::kUnknown | ) | const |
Definition at line 36 of file PmaElement3D.cxx.
|
inline |
Definition at line 75 of file PmaElement3D.h.
|
inline |
Definition at line 94 of file PmaElement3D.h.
|
inline |
Definition at line 80 of file PmaElement3D.h.
|
inline |
Definition at line 77 of file PmaElement3D.h.
|
inline |
Definition at line 95 of file PmaElement3D.h.
|
inlinestatic |
Definition at line 107 of file PmaElement3D.h.
|
inline |
Definition at line 79 of file PmaElement3D.h.
|
inline |
Definition at line 64 of file PmaElement3D.h.
bool pma::Element3D::SelectAllHits | ( | void | ) |
Definition at line 297 of file PmaElement3D.cxx.
bool pma::Element3D::SelectRndHits | ( | size_t | nmax_per_view | ) |
Definition at line 251 of file PmaElement3D.cxx.
|
inline |
|
inlinestatic |
Definition at line 108 of file PmaElement3D.h.
|
pure virtual |
Implemented in pma::Node3D, and pma::Segment3D.
void pma::Element3D::SortHits | ( | void | ) |
Definition at line 45 of file PmaElement3D.cxx.
double pma::Element3D::SumDist2 | ( | void | ) | const |
Definition at line 172 of file PmaElement3D.cxx.
double pma::Element3D::SumDist2 | ( | unsigned int | view | ) | const |
Definition at line 200 of file PmaElement3D.cxx.
|
protectedpure virtual |
Implemented in pma::Node3D, and pma::Segment3D.
|
inline |
Definition at line 93 of file PmaElement3D.h.
|
inline |
void pma::Element3D::UpdateHitParams | ( | void | ) |
Definition at line 57 of file PmaElement3D.cxx.
|
inline |
Definition at line 88 of file PmaElement3D.h.
|
protected |
Definition at line 117 of file PmaElement3D.h.
|
protected |
Definition at line 118 of file PmaElement3D.h.
|
protected |
Definition at line 112 of file PmaElement3D.h.
|
protected |
Definition at line 116 of file PmaElement3D.h.
|
protected |
Definition at line 123 of file PmaElement3D.h.
|
protected |
Definition at line 121 of file PmaElement3D.h.
|
protected |
Definition at line 119 of file PmaElement3D.h.
|
protected |
Definition at line 120 of file PmaElement3D.h.
|
staticprotected |
Definition at line 125 of file PmaElement3D.h.
|
protected |
Definition at line 122 of file PmaElement3D.h.
|
protected |
Definition at line 112 of file PmaElement3D.h.