12 #ifndef TrkCandidate_h 13 #define TrkCandidate_h 18 class DetectorPropertiesData;
23 typedef std::map<unsigned int, std::vector<art::Ptr<recob::Hit>>>
view_hitmap;
62 const std::vector<size_t>&
131 const std::vector<size_t>&
160 return fCandidates.size();
165 return fCandidates.resize(n);
170 return fCandidates.empty();
176 fCandidates.push_back(trk);
181 fCandidates.erase(fCandidates.begin() +
pos);
195 return fCandidates.front();
200 return fCandidates.front();
206 return fCandidates.back();
211 return fCandidates.back();
214 std::vector<TrkCandidate>
const&
219 std::vector<TrkCandidate>&
225 std::vector<TrkCandidate>
const&
231 int getCandidateIndex(
pma::Track3D const* candidate)
const;
232 int getCandidateTreeId(
pma::Track3D const* candidate)
const;
234 void merge(
size_t idx1,
size_t idx2);
236 void setParentDaughterConnections();
238 void setTreeId(
int id,
size_t trkIdx,
bool isRoot =
true);
242 void flipTreesByDQdx();
std::vector< TrkCandidate > fCandidates
Implementation of the Projection Matching Algorithm.
void SetKey(int key)
Set key of an external object associated to this track candidate.
int Key() const
Get key of an external object (like a source PFParticle) associated to this track candidate...
TrkCandidate const & back() const
void erase_at(size_t pos)
std::vector< TrkCandidate > const & parents() const
std::map< unsigned int, tpc_view_hitmap > cryo_tpc_view_hitmap
void SetValidation(double v)
double Validation() const
std::map< unsigned int, view_hitmap > tpc_view_hitmap
std::vector< TrkCandidate > fParents
TrkCandidate const & front() const
std::vector< size_t > fDaughters
std::map< unsigned int, std::vector< art::Ptr< recob::Hit > > > view_hitmap
General LArSoft Utilities.
TrkCandidate const & operator[](size_t i) const
std::vector< size_t > fClusters
const std::vector< size_t > & Clusters() const
std::vector< size_t > & Daughters()
const std::vector< size_t > & Daughters() const
std::vector< size_t > & Clusters()
TrkCandidate & operator[](size_t i)
pma::Track3D * Track() const
void push_back(const TrkCandidate &trk)
std::vector< TrkCandidate > const & tracks() const
std::vector< TrkCandidate > & tracks()