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;
92 double SumDist2(
unsigned int view)
const;
94 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
virtual void SetProjection(pma::Hit3D &h) const =0
void RemoveHitAt(size_t index)
static void SetOptFactor(unsigned int view, float value)
void AddPoint(TVector3 *p)
virtual double SumDist2Hits(void) const =0
virtual double Length2(void) const =0
double SumHitsQ(unsigned int view) const
recob::tracking::Vector_t Vector3D
double HitsRadius3D(unsigned int view) const
virtual void ClearAssigned(pma::Track3D *trk=0)
int TPC(void) const
TPC index or -1 if out of any TPC.
size_t NPoints(void) const
virtual double GetDistance2To(const TVector3 &p3d) const =0
Distance [cm] from the 3D point to the object 3D.
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)
virtual pma::Vector3D GetDirection3D(void) const =0
Get 3D direction cosines corresponding to this element.
static float fOptFactors[3]
Definition of data types for geometry description.
double SumDist2(void) const
virtual TVector3 GetUnconstrainedProj3D(const TVector2 &p2d, unsigned int view) const =0
unsigned int NThisHits(unsigned int view) const
int Cryo(void) const
Cryostat index or -1 if out of any cryostat.
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
void AddHit(pma::Hit3D *h)
void UpdateHitParams(void)
double Length(void) const
size_t NEnabledHits(unsigned int view=geo::kUnknown) const
static float OptFactor(unsigned int view)