BOSS
8.0.0
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
47
#include "BesDChain/DBCandidate.h"
48
49
// STL classes
50
51
//
52
// constants, enums and typedefs
53
//
54
55
const
double
DBCandidate::book_mass[
DBCandidate::kMaxHypo
] = {
56
0.000000, 0.000511, 0.105658, 0.139570, 0.493677, 0.938272,
57
0.000511, 0.105658, 0.139570, 0.493677, 0.938272 };
58
59
//
60
// const member functions
61
//
62
63
double
DBCandidate::mass
(
DBCandidate::Hypo
aHypo ) {
return
( book_mass[aHypo] ); }
64
65
DBCandidate::Hypo
DBCandidate::outwardHypo
(
DBCandidate::Hypo
aHypo ) {
66
switch
( aHypo )
67
{
68
case
DBCandidate::kElectron
:
return
DBCandidate::kExitElectron
;
69
case
DBCandidate::kMuon
:
return
DBCandidate::kExitMuon
;
70
case
DBCandidate::kChargedPion
:
return
DBCandidate::kExitPion
;
71
case
DBCandidate::kChargedKaon
:
return
DBCandidate::kExitKaon
;
72
case
DBCandidate::kProton
:
return
DBCandidate::kExitProton
;
73
default
:
return
aHypo;
74
}
75
}
76
77
DBCandidate::Hypo
DBCandidate::inwardHypo
(
DBCandidate::Hypo
aHypo ) {
78
switch
( aHypo )
79
{
80
case
DBCandidate::kExitElectron
:
return
DBCandidate::kElectron
;
81
case
DBCandidate::kExitMuon
:
return
DBCandidate::kMuon
;
82
case
DBCandidate::kExitPion
:
return
DBCandidate::kChargedPion
;
83
case
DBCandidate::kExitKaon
:
return
DBCandidate::kChargedKaon
;
84
case
DBCandidate::kExitProton
:
return
DBCandidate::kProton
;
85
default
:
return
aHypo;
86
}
87
}
DBCandidate::inwardHypo
static Hypo inwardHypo(DBCandidate::Hypo aHypo)
Definition
DBCandidate.cxx:77
DBCandidate::Hypo
Hypo
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:58
DBCandidate::kChargedKaon
@ kChargedKaon
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:63
DBCandidate::kElectron
@ kElectron
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:60
DBCandidate::kExitKaon
@ kExitKaon
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:68
DBCandidate::kExitMuon
@ kExitMuon
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:66
DBCandidate::kProton
@ kProton
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:64
DBCandidate::kChargedPion
@ kChargedPion
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:62
DBCandidate::kMuon
@ kMuon
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:61
DBCandidate::kExitPion
@ kExitPion
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:67
DBCandidate::kMaxHypo
@ kMaxHypo
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:70
DBCandidate::kExitProton
@ kExitProton
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:69
DBCandidate::kExitElectron
@ kExitElectron
Definition
Event/BesDChain/include/BesDChain/DBCandidate.h:65
DBCandidate::mass
static double mass(DBCandidate::Hypo aHypo)
Definition
DBCandidate.cxx:63
DBCandidate::outwardHypo
static Hypo outwardHypo(DBCandidate::Hypo aHypo)
Definition
DBCandidate.cxx:65
8.0.0
BOSS_Source
Event
BesDChain
src
DBCandidate.cxx
Generated by
1.16.1