00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #include "BesDChain/DBCandidate.h"
00048
00049
00050
00051
00052
00053
00054
00055
00056 const double DBCandidate::book_mass[ DBCandidate::kMaxHypo ] = { 0.000000,
00057 0.000511,
00058 0.105658,
00059 0.139570,
00060 0.493677,
00061 0.938272,
00062 0.000511,
00063 0.105658,
00064 0.139570,
00065 0.493677,
00066 0.938272 } ;
00067
00068
00069
00070
00071
00072 double
00073 DBCandidate::mass( DBCandidate::Hypo aHypo )
00074 {
00075 return ( book_mass [ aHypo ] ) ;
00076 }
00077
00078 DBCandidate::Hypo
00079 DBCandidate::outwardHypo( DBCandidate::Hypo aHypo )
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 }
00097
00098 DBCandidate::Hypo
00099 DBCandidate::inwardHypo( DBCandidate::Hypo aHypo )
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 }
00117