BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
DBCandidate.cxx
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// Package: CleoDB
4// Module: DBCandidate
5//
6// Description:
7//
8// Implimentation:
9// <Notes on implimentation>
10//
11// Author: Simon Patton
12// Created: Mon Apr 7 16:52:09 EDT 1997
13// $Id: DBCandidate.cxx,v 1.1.1.1 2009/03/03 06:05:56 maqm Exp $
14//
15// Revision history
16//
17// $Log: DBCandidate.cxx,v $
18// Revision 1.1.1.1 2009/03/03 06:05:56 maqm
19// first import of BesDChain
20//
21// Revision 1.7 1999/10/08 23:06:12 wsun
22// Added static functions outwardHypo(), inwardHypo(), and hypoIsInward().
23//
24// Revision 1.6 1999/06/04 07:39:15 wsun
25// Added two more significant figures to particle masses.
26//
27// Revision 1.5 1999/05/07 18:19:36 marsh
28// Added remaining outgoing hypotheses.
29//
30// Revision 1.4 1998/11/06 19:56:50 marsh
31// Removed unneeded 'const's.
32//
33// Revision 1.3 1997/08/22 18:04:07 sjp
34// Made mass into a function call
35//
36// Revision 1.2 1997/07/09 18:01:22 sjp
37// New <Package>/<File>.h structure
38// Modified so can also compile under cxx v5.5
39//
40// Revision 1.1 1997/05/28 16:09:49 sjp
41// New class used with Track Fit data
42//
43
44// system include files
45
46// user include files
48
49
50// STL classes
51
52//
53// constants, enums and typedefs
54//
55
56const double DBCandidate::book_mass[ DBCandidate::kMaxHypo ] = { 0.000000,
57 0.000511,
58 0.105658,
59 0.139570,
60 0.493677,
61 0.938272,
62 0.000511,
63 0.105658,
64 0.139570,
65 0.493677,
66 0.938272 } ;
67
68//
69// const member functions
70//
71
72double
74{
75 return ( book_mass [ aHypo ] ) ;
76}
77
80{
81 switch( aHypo )
82 {
93 default:
94 return aHypo ;
95 }
96}
97
100{
101 switch( aHypo )
102 {
106 return DBCandidate::kMuon ;
112 return DBCandidate::kProton ;
113 default:
114 return aHypo ;
115 }
116}
117
static Hypo inwardHypo(DBCandidate::Hypo aHypo)
Definition: DBCandidate.cxx:99
static double mass(DBCandidate::Hypo aHypo)
Definition: DBCandidate.cxx:73
static Hypo outwardHypo(DBCandidate::Hypo aHypo)
Definition: DBCandidate.cxx:79