/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Event/BesDChain/BesDChain-00-00-14/src/DBCandidate.cxx

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     CleoDB
00004 // Module:      DBCandidate
00005 // 
00006 // Description: 
00007 //
00008 // Implimentation:
00009 //     <Notes on implimentation>
00010 //
00011 // Author:      Simon Patton
00012 // Created:     Mon Apr  7 16:52:09 EDT 1997
00013 // $Id: DBCandidate.cxx,v 1.1.1.1 2009/03/03 06:05:56 maqm Exp $
00014 //
00015 // Revision history
00016 //
00017 // $Log: DBCandidate.cxx,v $
00018 // Revision 1.1.1.1  2009/03/03 06:05:56  maqm
00019 // first import of BesDChain
00020 //
00021 // Revision 1.7  1999/10/08 23:06:12  wsun
00022 // Added static functions outwardHypo(), inwardHypo(), and hypoIsInward().
00023 //
00024 // Revision 1.6  1999/06/04 07:39:15  wsun
00025 // Added two more significant figures to particle masses.
00026 //
00027 // Revision 1.5  1999/05/07 18:19:36  marsh
00028 // Added remaining outgoing hypotheses.
00029 //
00030 // Revision 1.4  1998/11/06 19:56:50  marsh
00031 // Removed unneeded 'const's.
00032 //
00033 // Revision 1.3  1997/08/22 18:04:07  sjp
00034 // Made mass into a function call
00035 //
00036 // Revision 1.2  1997/07/09 18:01:22  sjp
00037 // New <Package>/<File>.h structure
00038 // Modified so can also compile under cxx v5.5
00039 //
00040 // Revision 1.1  1997/05/28 16:09:49  sjp
00041 // New class used with Track Fit data
00042 //
00043 
00044 // system include files
00045 
00046 // user include files
00047 #include "BesDChain/DBCandidate.h"
00048 
00049 
00050 // STL classes
00051 
00052 //
00053 // constants, enums and typedefs
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 // const member functions
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 

Generated on Tue Nov 29 22:58:20 2016 for BOSS_7.0.2 by  doxygen 1.4.7