LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pma::TrkCandidate Class Reference

#include "PmaTrkCandidate.h"

Public Member Functions

 TrkCandidate ()
 
 TrkCandidate (pma::Track3D *trk, int key=-1, int tid=-1)
 
bool IsValid () const
 
bool IsGood () const
 
void SetGood (bool b)
 
pma::Track3DTrack () const
 
void SetTrack (pma::Track3D *trk)
 
void DeleteTrack ()
 
const std::vector< size_t > & Clusters () const
 
std::vector< size_t > & Clusters ()
 
int Key () const
 Get key of an external object (like a source PFParticle) associated to this track candidate. More...
 
void SetKey (int key)
 Set key of an external object associated to this track candidate. More...
 
int TreeId () const
 
void SetTreeId (int id)
 
double Mse () const
 
void SetMse (double m)
 
double Validation () const
 
void SetValidation (double v)
 
int Parent () const
 
void SetParent (int idx)
 
const std::vector< size_t > & Daughters () const
 
std::vector< size_t > & Daughters ()
 

Private Attributes

int fParent
 
std::vector< size_t > fDaughters
 
pma::Track3DfTrack
 
std::vector< size_t > fClusters
 
int fKey
 
int fTreeId
 
double fMse
 
double fValidation
 
bool fGood
 

Detailed Description

Definition at line 35 of file PmaTrkCandidate.h.

Constructor & Destructor Documentation

pma::TrkCandidate::TrkCandidate ( )

Definition at line 23 of file PmaTrkCandidate.cxx.

pma::TrkCandidate::TrkCandidate ( pma::Track3D trk,
int  key = -1,
int  tid = -1 
)

Definition at line 28 of file PmaTrkCandidate.cxx.

Member Function Documentation

const std::vector<size_t>& pma::TrkCandidate::Clusters ( ) const
inline
std::vector<size_t>& pma::TrkCandidate::Clusters ( )
inline

Definition at line 50 of file PmaTrkCandidate.h.

50 { return fClusters; }
std::vector< size_t > fClusters
const std::vector<size_t>& pma::TrkCandidate::Daughters ( ) const
inline

Definition at line 70 of file PmaTrkCandidate.h.

70 { return fDaughters; }
std::vector< size_t > fDaughters
std::vector<size_t>& pma::TrkCandidate::Daughters ( )
inline

Definition at line 71 of file PmaTrkCandidate.h.

71 { return fDaughters; }
std::vector< size_t > fDaughters
void pma::TrkCandidate::DeleteTrack ( )

Definition at line 40 of file PmaTrkCandidate.cxx.

References fTrack.

Referenced by pma::PMAlgFitter::buildShowers(), and pma::PMAlgFitter::buildTracks().

41 {
42  if (fTrack) delete fTrack;
43  fTrack = 0;
44 }
pma::Track3D * fTrack
bool pma::TrkCandidate::IsGood ( ) const
inline
bool pma::TrkCandidate::IsValid ( ) const
inline
int pma::TrkCandidate::Key ( ) const
inline

Get key of an external object (like a source PFParticle) associated to this track candidate.

Definition at line 53 of file PmaTrkCandidate.h.

53 { return fKey; }
double pma::TrkCandidate::Mse ( ) const
inline

Definition at line 61 of file PmaTrkCandidate.h.

Referenced by pma::PMAlgTracker::extendTrack().

61 { return fMse; }
int pma::TrkCandidate::Parent ( void  ) const
inline

Definition at line 67 of file PmaTrkCandidate.h.

Referenced by pma::TrkCandidateColl::setParentDaughterConnections().

67 { return fParent; }
void pma::TrkCandidate::SetGood ( bool  b)
inline

Definition at line 43 of file PmaTrkCandidate.h.

Referenced by pma::PMAlgTracker::matchCluster().

43 { fGood = b; }
void pma::TrkCandidate::SetKey ( int  key)
inline

Set key of an external object associated to this track candidate.

Definition at line 56 of file PmaTrkCandidate.h.

Referenced by pma::PMAlgFitter::buildShowers(), and pma::PMAlgFitter::buildTracks().

56 { fKey = key; }
void pma::TrkCandidate::SetMse ( double  m)
inline

Definition at line 62 of file PmaTrkCandidate.h.

Referenced by pma::PMAlgTracker::extendTrack(), and pma::PMAlgTracker::matchCluster().

62 { fMse = m; }
void pma::TrkCandidate::SetParent ( int  idx)
inline

Definition at line 68 of file PmaTrkCandidate.h.

Referenced by pma::TrkCandidateColl::setParentDaughterConnections().

68 { fParent = idx; }
void pma::TrkCandidate::SetTrack ( pma::Track3D trk)

Definition at line 33 of file PmaTrkCandidate.cxx.

References fTrack.

Referenced by pma::PMAlgFitter::buildShowers(), pma::PMAlgFitter::buildTracks(), pma::PMAlgTracker::extendTrack(), and pma::PMAlgTracker::matchCluster().

34 {
35  if (fTrack) delete fTrack;
36  fTrack = trk;
37 }
pma::Track3D * fTrack
void pma::TrkCandidate::SetTreeId ( int  id)
inline

Definition at line 59 of file PmaTrkCandidate.h.

59 { fTreeId = id; }
void pma::TrkCandidate::SetValidation ( double  v)
inline

Definition at line 65 of file PmaTrkCandidate.h.

Referenced by pma::PMAlgTracker::extendTrack(), and pma::PMAlgTracker::matchCluster().

65 { fValidation = v; }
int pma::TrkCandidate::TreeId ( ) const
inline
double pma::TrkCandidate::Validation ( ) const
inline

Definition at line 64 of file PmaTrkCandidate.h.

Referenced by pma::PMAlgTracker::extendTrack().

64 { return fValidation; }

Member Data Documentation

std::vector<size_t> pma::TrkCandidate::fClusters
private

Definition at line 78 of file PmaTrkCandidate.h.

std::vector<size_t> pma::TrkCandidate::fDaughters
private

Definition at line 75 of file PmaTrkCandidate.h.

bool pma::TrkCandidate::fGood
private

Definition at line 83 of file PmaTrkCandidate.h.

int pma::TrkCandidate::fKey
private

Definition at line 79 of file PmaTrkCandidate.h.

double pma::TrkCandidate::fMse
private

Definition at line 81 of file PmaTrkCandidate.h.

int pma::TrkCandidate::fParent
private

Definition at line 74 of file PmaTrkCandidate.h.

pma::Track3D* pma::TrkCandidate::fTrack
private

Definition at line 77 of file PmaTrkCandidate.h.

Referenced by DeleteTrack(), and SetTrack().

int pma::TrkCandidate::fTreeId
private

Definition at line 79 of file PmaTrkCandidate.h.

double pma::TrkCandidate::fValidation
private

Definition at line 81 of file PmaTrkCandidate.h.


The documentation for this class was generated from the following files: