12 #ifndef PmaElement3D_h 13 #define PmaElement3D_h 39 virtual double GetDistance2To(
const TVector2& p2d,
unsigned int view)
const = 0;
48 virtual double Length2(
void)
const = 0;
55 for (
const auto a :
fAssignedHits) {
if (h == a)
return true; }
88 double SumDist2(
unsigned int view)
const;
90 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)
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
std::vector< TVector3 * > fAssignedPoints
void SetFrozen(bool state)
Fix / relese vertex 3D position.
std::vector< pma::Hit3D * > fAssignedHits
pma::Hit3D & Hit(size_t index)
Implementation of the Projection Matching Algorithm.
static float fOptFactors[3]
double SumDist2(void) const
unsigned int NThisHits(unsigned int view) const
int Cryo(void) const
Cryostat index or -1 if out of any cryostat.
void UpdateProjection(void)
std::string value(boost::any const &)
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)