9 #ifndef TRAJCLUSTERALGVERTEX_H 10 #define TRAJCLUSTERALGVERTEX_H 19 class DetectorPropertiesData;
27 extern std::vector<TCSlice>
slices;
35 bool MergeWithVertex(TCSlice& slc, VtxStore& vx2,
unsigned short existingVxID);
40 bool Reconcile2VTs(TCSlice& slc, std::vector<int>& vx2cls,
bool prt);
45 bool RefineVtxPosition(
const Trajectory& tj,
unsigned short& nearPt,
short nPtsToChk,
bool prt);
46 unsigned short TPNearVertex(
const TCSlice& slc,
const TrajPoint& tp);
54 bool FitVertex(TCSlice& slc, VtxStore& vx,
bool prt);
55 bool FitVertex(TCSlice& slc, VtxStore& vx, std::vector<TrajPoint>& vxTp,
bool prt);
64 bool MakeVertexObsolete(std::string fcnLabel, TCSlice& slc, VtxStore& vx2,
bool forceKill);
66 std::vector<int>
GetVtxTjIDs(
const TCSlice& slc,
const VtxStore& vx2);
67 std::vector<int>
GetVtxTjIDs(
const TCSlice& slc,
const Vtx3Store& vx3,
float& score);
73 unsigned short IsCloseToVertex(
const TCSlice& slc,
const Vtx3Store& vx3);
76 #endif // ifndef TRAJCLUSTERALGVERTEX_H bool MergeWithVertex(TCSlice &slc, VtxStore &vx, unsigned short oVxID)
bool MakeVertexObsolete(std::string fcnLabel, TCSlice &slc, VtxStore &vx2, bool forceKill)
bool AttachAnyVertexToTraj(TCSlice &slc, int tjID, bool prt)
void CompleteIncomplete3DVerticesInGaps(detinfo::DetectorPropertiesData const &detProp, TCSlice &slc)
bool FitVertex(TCSlice &slc, VtxStore &vx, bool prt)
void Find3DVertices(detinfo::DetectorPropertiesData const &detProp, TCSlice &slc)
void SplitTrajCrossingVertices(TCSlice &slc, CTP_t inCTP)
void Reconcile2Vs(TCSlice &slc)
float VertexVertexPull(const Vtx3Store &vx1, const Vtx3Store &vx2)
bool AttachAnyTrajToVertex(TCSlice &slc, unsigned short ivx, bool prt)
unsigned short TPNearVertex(const TCSlice &slc, const TrajPoint &tp)
void SetVx3Score(TCSlice &slc, Vtx3Store &vx3)
void CompleteIncomplete3DVertices(detinfo::DetectorPropertiesData const &detProp, TCSlice &slc)
bool StoreVertex(TCSlice &slc, VtxStore &vx)
std::array< float, 2 > Point2_t
bool ChkVtxAssociations(TCSlice &slc, const CTP_t &inCTP)
bool Reconcile2VTs(TCSlice &slc, std::vector< int > &vx2cls, bool prt)
void ScoreVertices(TCSlice &slc)
General LArSoft Utilities.
std::vector< TCSlice > slices
unsigned short IsCloseToVertex(const TCSlice &slc, const VtxStore &inVx2)
void SetHighScoreBits(TCSlice &slc, Vtx3Store &vx3)
bool AttachTrajToVertex(TCSlice &slc, Trajectory &tj, VtxStore &vx, bool prt)
void MakeJunkTjVertices(TCSlice &slc, const CTP_t &inCTP)
std::vector< int > GetVtxTjIDs(const TCSlice &slc, const VtxStore &vx2)
void KillPoorVertices(TCSlice &slc)
void SetVx2Score(TCSlice &slc)
void FindHammerVertices(TCSlice &slc, const CTP_t &inCTP)
float TrajPointVertexPull(const TrajPoint &tp, const VtxStore &vx)
void MakeJunkVertices(TCSlice &slc, const CTP_t &inCTP)
void Find2DVertices(detinfo::DetectorPropertiesData const &detProp, TCSlice &slc, const CTP_t &inCTP, unsigned short pass)
void FindHammerVertices2(TCSlice &slc, const CTP_t &inCTP)
bool AttachToAnyVertex(TCSlice &slc, PFPStruct &pfp, float maxSep, bool prt)
void PosInPlane(detinfo::DetectorPropertiesData const &detProp, const Vtx3Store &vx3, unsigned short plane, Point2_t &pos)
bool RefineVtxPosition(const Trajectory &tj, unsigned short &nearPt, short nPtsToChk, bool prt)