Public Member Functions | Private Attributes | List of all members
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 32 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.

29  : fParent(-1), fTrack(trk), fKey(key), fTreeId(tid), fMse(0), fValidation(0), fGood(false)
30 {}
def key(type, name=None)
Definition: graph.py:13
pma::Track3D * fTrack

Member Function Documentation

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

Definition at line 63 of file PmaTrkCandidate.h.

64  {
65  return fClusters;
66  }
std::vector< size_t > fClusters
std::vector<size_t>& pma::TrkCandidate::Clusters ( )
inline

Definition at line 68 of file PmaTrkCandidate.h.

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

Definition at line 132 of file PmaTrkCandidate.h.

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

Definition at line 137 of file PmaTrkCandidate.h.

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

Definition at line 42 of file PmaTrkCandidate.cxx.

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

Definition at line 44 of file PmaTrkCandidate.h.

45  {
46  return fGood;
47  }
bool pma::TrkCandidate::IsValid ( ) const
inline

Definition at line 38 of file PmaTrkCandidate.h.

39  {
40  return fTrack;
41  }
pma::Track3D * fTrack
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 75 of file PmaTrkCandidate.h.

76  {
77  return fKey;
78  }
double pma::TrkCandidate::Mse ( ) const
inline

Definition at line 99 of file PmaTrkCandidate.h.

100  {
101  return fMse;
102  }
int pma::TrkCandidate::Parent ( void  ) const
inline

Definition at line 121 of file PmaTrkCandidate.h.

122  {
123  return fParent;
124  }
void pma::TrkCandidate::SetGood ( bool  b)
inline

Definition at line 49 of file PmaTrkCandidate.h.

50  {
51  fGood = b;
52  }
static bool * b
Definition: config.cpp:1043
void pma::TrkCandidate::SetKey ( int  key)
inline

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

Definition at line 82 of file PmaTrkCandidate.h.

83  {
84  fKey = key;
85  }
def key(type, name=None)
Definition: graph.py:13
void pma::TrkCandidate::SetMse ( double  m)
inline

Definition at line 104 of file PmaTrkCandidate.h.

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

Definition at line 126 of file PmaTrkCandidate.h.

127  {
128  fParent = idx;
129  }
void pma::TrkCandidate::SetTrack ( pma::Track3D trk)

Definition at line 34 of file PmaTrkCandidate.cxx.

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

Definition at line 93 of file PmaTrkCandidate.h.

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

Definition at line 115 of file PmaTrkCandidate.h.

116  {
117  fValidation = v;
118  }
pma::Track3D* pma::TrkCandidate::Track ( ) const
inline

Definition at line 55 of file PmaTrkCandidate.h.

56  {
57  return fTrack;
58  }
pma::Track3D * fTrack
int pma::TrkCandidate::TreeId ( ) const
inline

Definition at line 88 of file PmaTrkCandidate.h.

89  {
90  return fTreeId;
91  }
double pma::TrkCandidate::Validation ( ) const
inline

Definition at line 110 of file PmaTrkCandidate.h.

111  {
112  return fValidation;
113  }

Member Data Documentation

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

Definition at line 147 of file PmaTrkCandidate.h.

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

Definition at line 144 of file PmaTrkCandidate.h.

bool pma::TrkCandidate::fGood
private

Definition at line 152 of file PmaTrkCandidate.h.

int pma::TrkCandidate::fKey
private

Definition at line 148 of file PmaTrkCandidate.h.

double pma::TrkCandidate::fMse
private

Definition at line 150 of file PmaTrkCandidate.h.

int pma::TrkCandidate::fParent
private

Definition at line 143 of file PmaTrkCandidate.h.

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

Definition at line 146 of file PmaTrkCandidate.h.

int pma::TrkCandidate::fTreeId
private

Definition at line 148 of file PmaTrkCandidate.h.

double pma::TrkCandidate::fValidation
private

Definition at line 150 of file PmaTrkCandidate.h.


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