12 #ifndef TrkCandidate_h 13 #define TrkCandidate_h 20 typedef std::map< unsigned int, std::vector< art::Ptr<recob::Hit> > >
view_hitmap;
83 size_t size(
void)
const {
return fCandidates.size(); }
84 void resize(
size_t n) {
return fCandidates.resize(n); }
85 bool empty(
void)
const {
return fCandidates.empty(); }
88 void erase_at(
size_t pos) { fCandidates.erase(fCandidates.begin() + pos); }
89 void clear(
void) { fCandidates.clear(); }
92 TrkCandidate const & operator[] (
size_t i)
const {
return fCandidates[i]; }
100 std::vector< TrkCandidate >
const &
tracks(
void)
const {
return fCandidates; }
101 std::vector< TrkCandidate > &
tracks(
void) {
return fCandidates; }
103 std::vector< TrkCandidate >
const &
parents(
void)
const {
return fParents; }
105 int getCandidateIndex(
pma::Track3D const * candidate)
const;
106 int getCandidateTreeId(
pma::Track3D const * candidate)
const;
108 void merge(
size_t idx1,
size_t idx2);
110 void setParentDaughterConnections(
void);
112 void setTreeId(
int id,
size_t trkIdx,
bool isRoot =
true);
113 int setTreeIds(
void);
115 void flipTreesToCoordinate(
size_t coordinate);
116 void flipTreesByDQdx();
std::vector< TrkCandidate > & tracks(void)
const std::vector< size_t > & Clusters(void) const
std::vector< size_t > & Clusters(void)
std::vector< size_t > fDaughters
TrkCandidate & back(void)
Implementation of the Projection Matching Algorithm.
void SetKey(int key)
Set key of an external object associated to this track candidate.
TrkCandidate & front(void)
int Key(void) const
Get key of an external object (like a source PFParticle) associated to this track candidate...
std::vector< size_t > fClusters
TrkCandidate const & back(void) const
void erase_at(size_t pos)
TrkCandidate const & front(void) const
std::vector< TrkCandidate > const & tracks(void) const
void SetValidation(double v)
void SetTrack(pma::Track3D *trk)
std::vector< TrkCandidate > fParents
std::vector< TrkCandidate > const & parents(void) const
std::vector< size_t > & Daughters(void)
double Validation(void) const
std::vector< TrkCandidate > fCandidates
const std::vector< size_t > & Daughters(void) const
std::map< unsigned int, view_hitmap > tpc_view_hitmap
std::map< unsigned int, std::vector< art::Ptr< recob::Hit > > > view_hitmap
std::map< unsigned int, tpc_view_hitmap > cryo_tpc_view_hitmap
void push_back(const TrkCandidate &trk)
pma::Track3D * Track(void) const