All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 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

Definition at line 66 of file PmaTrkCandidate.h.

67  {
68  return fClusters;
69  }
std::vector< size_t > fClusters
std::vector<size_t>& pma::TrkCandidate::Clusters ( )
inline

Definition at line 71 of file PmaTrkCandidate.h.

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

Definition at line 135 of file PmaTrkCandidate.h.

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

Definition at line 140 of file PmaTrkCandidate.h.

141  {
142  return fDaughters;
143  }
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 47 of file PmaTrkCandidate.h.

48  {
49  return fGood;
50  }
bool pma::TrkCandidate::IsValid ( ) const
inline

Definition at line 41 of file PmaTrkCandidate.h.

42  {
43  return fTrack;
44  }
pma::Track3D * fTrack
int pma::TrkCandidate::Key ( ) const
inline

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

Definition at line 78 of file PmaTrkCandidate.h.

79  {
80  return fKey;
81  }
double pma::TrkCandidate::Mse ( ) const
inline

Definition at line 102 of file PmaTrkCandidate.h.

103  {
104  return fMse;
105  }
int pma::TrkCandidate::Parent ( void  ) const
inline

Definition at line 124 of file PmaTrkCandidate.h.

125  {
126  return fParent;
127  }
void pma::TrkCandidate::SetGood ( bool  b)
inline

Definition at line 52 of file PmaTrkCandidate.h.

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

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

Definition at line 85 of file PmaTrkCandidate.h.

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

Definition at line 107 of file PmaTrkCandidate.h.

108  {
109  fMse = m;
110  }
tuple m
now if test mode generate materials, CRT shell, world, gdml header else just generate CRT shell for u...
void pma::TrkCandidate::SetParent ( int  idx)
inline

Definition at line 129 of file PmaTrkCandidate.h.

130  {
131  fParent = idx;
132  }
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 96 of file PmaTrkCandidate.h.

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

Definition at line 118 of file PmaTrkCandidate.h.

119  {
120  fValidation = v;
121  }
pma::Track3D* pma::TrkCandidate::Track ( ) const
inline

Definition at line 58 of file PmaTrkCandidate.h.

59  {
60  return fTrack;
61  }
pma::Track3D * fTrack
int pma::TrkCandidate::TreeId ( ) const
inline

Definition at line 91 of file PmaTrkCandidate.h.

92  {
93  return fTreeId;
94  }
double pma::TrkCandidate::Validation ( ) const
inline

Definition at line 113 of file PmaTrkCandidate.h.

114  {
115  return fValidation;
116  }

Member Data Documentation

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

Definition at line 150 of file PmaTrkCandidate.h.

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

Definition at line 147 of file PmaTrkCandidate.h.

bool pma::TrkCandidate::fGood
private

Definition at line 155 of file PmaTrkCandidate.h.

int pma::TrkCandidate::fKey
private

Definition at line 151 of file PmaTrkCandidate.h.

double pma::TrkCandidate::fMse
private

Definition at line 153 of file PmaTrkCandidate.h.

int pma::TrkCandidate::fParent
private

Definition at line 146 of file PmaTrkCandidate.h.

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

Definition at line 149 of file PmaTrkCandidate.h.

int pma::TrkCandidate::fTreeId
private

Definition at line 151 of file PmaTrkCandidate.h.

double pma::TrkCandidate::fValidation
private

Definition at line 153 of file PmaTrkCandidate.h.


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