12 #ifndef TrkCandidate_h
13 #define TrkCandidate_h
18 class DetectorPropertiesData;
26 typedef std::map<unsigned int, std::vector<art::Ptr<recob::Hit>>>
view_hitmap;
65 const std::vector<size_t>&
134 const std::vector<size_t>&
217 std::vector<TrkCandidate>
const&
222 std::vector<TrkCandidate>&
228 std::vector<TrkCandidate>
const&
237 void merge(
size_t idx1,
size_t idx2);
241 void setTreeId(
int id,
size_t trkIdx,
bool isRoot =
true);
pma::Track3D * getTreeCopy(pma::TrkCandidateColl &dst, size_t trkIdx, bool isRoot=true)
std::vector< TrkCandidate > fCandidates
int getCandidateTreeId(pma::Track3D const *candidate) const
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
bool setTreeOriginAtBack(detinfo::DetectorPropertiesData const &detProp, pma::Track3D *trk)
void SetValidation(double v)
void SetTrack(pma::Track3D *trk)
double Validation() const
tuple m
now if test mode generate materials, CRT shell, world, gdml header else just generate CRT shell for u...
void flipTreesToCoordinate(detinfo::DetectorPropertiesData const &detProp, size_t coordinate)
std::map< unsigned int, view_hitmap > tpc_view_hitmap
std::vector< TrkCandidate > fParents
TrkCandidate const & front() const
bool setTreeOriginAtFront(detinfo::DetectorPropertiesData const &detProp, pma::Track3D *trk)
void setParentDaughterConnections()
std::vector< size_t > fDaughters
std::map< unsigned int, std::vector< art::Ptr< recob::Hit > > > view_hitmap
int getCandidateIndex(pma::Track3D const *candidate) const
void merge(size_t idx1, size_t idx2)
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 setTreeId(int id, size_t trkIdx, bool isRoot=true)
void push_back(const TrkCandidate &trk)
std::vector< TrkCandidate > const & tracks() const
std::vector< TrkCandidate > & tracks()