#include <DBCandidate.h>
Public Types | |
typedef uint32_t | Identifier |
kPhoton | |
kElectron | |
kMuon | |
kChargedPion | |
kChargedKaon | |
kProton | |
kExitElectron | |
kExitMuon | |
kExitPion | |
kExitKaon | |
kExitProton | |
kMaxHypo | |
enum | Hypo { kPhoton, kElectron, kMuon, kChargedPion, kChargedKaon, kProton, kExitElectron, kExitMuon, kExitPion, kExitKaon, kExitProton, kMaxHypo } |
Static Public Member Functions | |
static double | mass (DBCandidate::Hypo aHypo) |
static Hypo | outwardHypo (DBCandidate::Hypo aHypo) |
static Hypo | inwardHypo (DBCandidate::Hypo aHypo) |
static bool | hypoIsInward (DBCandidate::Hypo aHypo) |
Static Private Attributes | |
static const double | book_mass [kMaxHypo] |
Definition at line 54 of file DBCandidate.h.
typedef uint32_t DBCandidate::Identifier |
Definition at line 58 of file DBCandidate.h.
enum DBCandidate::Hypo |
kPhoton | |
kElectron | |
kMuon | |
kChargedPion | |
kChargedKaon | |
kProton | |
kExitElectron | |
kExitMuon | |
kExitPion | |
kExitKaon | |
kExitProton | |
kMaxHypo |
Definition at line 60 of file DBCandidate.h.
00060 { 00061 kPhoton , 00062 kElectron , 00063 kMuon , 00064 kChargedPion , 00065 kChargedKaon , 00066 kProton , 00067 kExitElectron , 00068 kExitMuon , 00069 kExitPion , 00070 kExitKaon , 00071 kExitProton , 00072 kMaxHypo 00073 } ;
static bool DBCandidate::hypoIsInward | ( | DBCandidate::Hypo | aHypo | ) | [inline, static] |
Definition at line 85 of file DBCandidate.h.
References kExitElectron.
00086 { return aHypo < kExitElectron ; }
DBCandidate::Hypo DBCandidate::inwardHypo | ( | DBCandidate::Hypo | aHypo | ) | [static] |
Definition at line 99 of file DBCandidate.cxx.
References kChargedKaon, kChargedPion, kElectron, kExitElectron, kExitKaon, kExitMuon, kExitPion, kExitProton, kMuon, and kProton.
00100 { 00101 switch( aHypo ) 00102 { 00103 case DBCandidate::kExitElectron: 00104 return DBCandidate::kElectron ; 00105 case DBCandidate::kExitMuon: 00106 return DBCandidate::kMuon ; 00107 case DBCandidate::kExitPion: 00108 return DBCandidate::kChargedPion ; 00109 case DBCandidate::kExitKaon: 00110 return DBCandidate::kChargedKaon ; 00111 case DBCandidate::kExitProton: 00112 return DBCandidate::kProton ; 00113 default: 00114 return aHypo ; 00115 } 00116 }
double DBCandidate::mass | ( | DBCandidate::Hypo | aHypo | ) | [static] |
Definition at line 73 of file DBCandidate.cxx.
References book_mass.
Referenced by CDChargedVisible< H >::defaultKinematicData().
00074 { 00075 return ( book_mass [ aHypo ] ) ; 00076 }
DBCandidate::Hypo DBCandidate::outwardHypo | ( | DBCandidate::Hypo | aHypo | ) | [static] |
Definition at line 79 of file DBCandidate.cxx.
References kChargedKaon, kChargedPion, kElectron, kExitElectron, kExitKaon, kExitMuon, kExitPion, kExitProton, kMuon, and kProton.
00080 { 00081 switch( aHypo ) 00082 { 00083 case DBCandidate::kElectron: 00084 return DBCandidate::kExitElectron ; 00085 case DBCandidate::kMuon: 00086 return DBCandidate::kExitMuon ; 00087 case DBCandidate::kChargedPion: 00088 return DBCandidate::kExitPion ; 00089 case DBCandidate::kChargedKaon: 00090 return DBCandidate::kExitKaon ; 00091 case DBCandidate::kProton: 00092 return DBCandidate::kExitProton ; 00093 default: 00094 return aHypo ; 00095 } 00096 }
const double DBCandidate::book_mass [static, private] |
Initial value:
{ 0.000000, 0.000511, 0.105658, 0.139570, 0.493677, 0.938272, 0.000511, 0.105658, 0.139570, 0.493677, 0.938272 }
Definition at line 89 of file DBCandidate.h.
Referenced by mass().