LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pma::TrkCandidate Class Reference

#include "PmaTrkCandidate.h"

Public Member Functions

 TrkCandidate (void)
 
 TrkCandidate (pma::Track3D *trk, int key=-1, int tid=-1)
 
bool IsValid (void) const
 
bool IsGood (void) const
 
void SetGood (bool b)
 
pma::Track3DTrack (void) const
 
void SetTrack (pma::Track3D *trk)
 
void DeleteTrack (void)
 
const std::vector< size_t > & Clusters (void) const
 
std::vector< size_t > & Clusters (void)
 
int Key (void) 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 (void) const
 
void SetTreeId (int id)
 
double Mse (void) const
 
void SetMse (double m)
 
double Validation (void) const
 
void SetValidation (double v)
 
int Parent (void) const
 
void SetParent (int idx)
 
const std::vector< size_t > & Daughters (void) const
 
std::vector< size_t > & Daughters (void)
 

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 28 of file PmaTrkCandidate.h.

Constructor & Destructor Documentation

pma::TrkCandidate::TrkCandidate ( void  )

Definition at line 17 of file PmaTrkCandidate.cxx.

17  :
18  fParent(-1), fTrack(0), fKey(-1), fTreeId(-1),
19  fMse(0), fValidation(0),
20  fGood(false)
21 {
22 }
pma::Track3D * fTrack
pma::TrkCandidate::TrkCandidate ( pma::Track3D trk,
int  key = -1,
int  tid = -1 
)

Definition at line 25 of file PmaTrkCandidate.cxx.

25  :
26  fParent(-1), fTrack(trk), fKey(key), fTreeId(tid),
27  fMse(0), fValidation(0),
28  fGood(false)
29 {
30 }
pma::Track3D * fTrack

Member Function Documentation

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

Definition at line 44 of file PmaTrkCandidate.h.

References fClusters.

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

Definition at line 64 of file PmaTrkCandidate.h.

References fDaughters.

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

Definition at line 65 of file PmaTrkCandidate.h.

References fDaughters.

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

Definition at line 40 of file PmaTrkCandidate.cxx.

References fTrack.

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

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

Definition at line 36 of file PmaTrkCandidate.h.

References fGood.

Referenced by pma::PMAlgTracker::fromMaxCluster_tpc(), and pma::PMAlgTracker::reassignHits_1().

36 { return fGood; }
bool pma::TrkCandidate::IsValid ( void  ) const
inline
int pma::TrkCandidate::Key ( void  ) const
inline

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

Definition at line 47 of file PmaTrkCandidate.h.

References fKey.

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

Definition at line 55 of file PmaTrkCandidate.h.

References fMse.

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

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

Definition at line 61 of file PmaTrkCandidate.h.

References fParent.

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

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

Definition at line 37 of file PmaTrkCandidate.h.

References fGood.

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

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

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

Definition at line 50 of file PmaTrkCandidate.h.

References fKey.

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

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

Definition at line 56 of file PmaTrkCandidate.h.

References fMse.

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

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

Definition at line 62 of file PmaTrkCandidate.h.

References fParent.

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

62 { 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(), pma::PMAlgTracker::matchCluster(), and Track().

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

Definition at line 53 of file PmaTrkCandidate.h.

References fTreeId.

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

Definition at line 59 of file PmaTrkCandidate.h.

References fValidation.

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

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

Definition at line 58 of file PmaTrkCandidate.h.

References fValidation.

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

58 { return fValidation; }

Member Data Documentation

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

Definition at line 72 of file PmaTrkCandidate.h.

Referenced by Clusters().

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

Definition at line 69 of file PmaTrkCandidate.h.

Referenced by Daughters().

bool pma::TrkCandidate::fGood
private

Definition at line 77 of file PmaTrkCandidate.h.

Referenced by IsGood(), and SetGood().

int pma::TrkCandidate::fKey
private

Definition at line 73 of file PmaTrkCandidate.h.

Referenced by Key(), and SetKey().

double pma::TrkCandidate::fMse
private

Definition at line 75 of file PmaTrkCandidate.h.

Referenced by Mse(), and SetMse().

int pma::TrkCandidate::fParent
private

Definition at line 68 of file PmaTrkCandidate.h.

Referenced by Parent(), and SetParent().

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

Definition at line 71 of file PmaTrkCandidate.h.

Referenced by DeleteTrack(), IsValid(), SetTrack(), and Track().

int pma::TrkCandidate::fTreeId
private

Definition at line 73 of file PmaTrkCandidate.h.

Referenced by SetTreeId(), and TreeId().

double pma::TrkCandidate::fValidation
private

Definition at line 75 of file PmaTrkCandidate.h.

Referenced by SetValidation(), and Validation().


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