12 #ifndef PmaElement3D_h 13 #define PmaElement3D_h 43 virtual double GetDistance2To(
const TVector2& p2d,
unsigned int view)
const = 0;
52 virtual double Length2(
void)
const = 0;
60 if (h == a)
return true;
97 double SumDist2(
unsigned int view)
const;
99 unsigned int NHits(
unsigned int view)
const {
return fNHits[view]; }
size_t NPrecalcEnabledHits(void) const
unsigned int NHits(unsigned int view) const
bool HasHit(const pma::Hit3D *h) const
void RemoveHitAt(size_t index)
std::vector< TVector3 * > fAssignedPoints
static void SetOptFactor(unsigned int view, float value)
virtual TVector3 GetUnconstrainedProj3D(const TVector2 &p2d, unsigned int view) const =0
void AddPoint(TVector3 *p)
virtual void SetProjection(pma::Hit3D &h) const =0
double SumHitsQ(unsigned int view) const
recob::tracking::Vector_t Vector3D
double HitsRadius3D(unsigned int view) const
virtual double Length2(void) const =0
virtual void ClearAssigned(pma::Track3D *trk=0)
virtual pma::Vector3D GetDirection3D(void) const =0
Get 3D direction cosines corresponding to this element.
int TPC(void) const
TPC index or -1 if out of any TPC.
size_t NPoints(void) const
const std::vector< pma::Hit3D * > & Hits(void) const
void SetFrozen(bool state)
Fix / relese vertex 3D position.
pma::Hit3D & Hit(size_t index)
static float fOptFactors[3]
Definition of data types for geometry description.
double SumDist2(void) const
std::vector< pma::Hit3D * > fAssignedHits
unsigned int NThisHits(unsigned int view) const
int Cryo(void) const
Cryostat index or -1 if out of any cryostat.
Implementation of the Projection Matching Algorithm.
void UpdateProjection(void)
bool SelectRndHits(size_t nmax_per_view)
bool IsFrozen(void) const
Check if the vertex 3D position is fixed.
size_t fNThisHitsEnabledAll
TVector3 const & ReferencePoint(size_t index) const
virtual double GetDistance2To(const TVector3 &p3d) const =0
Distance [cm] from the 3D point to the object 3D.
void AddHit(pma::Hit3D *h)
void UpdateHitParams(void)
virtual double SumDist2Hits(void) const =0
double Length(void) const
size_t NEnabledHits(unsigned int view=geo::kUnknown) const
static float OptFactor(unsigned int view)