CGEM BOSS
6.6.5.h
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
50
// STL classes
51
52
//
53
// constants, enums and typedefs
54
//
55
56
const
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
72
double
73
DBCandidate::mass
(
DBCandidate::Hypo
aHypo )
74
{
75
return
( book_mass [ aHypo ] ) ;
76
}
77
78
DBCandidate::Hypo
79
DBCandidate::outwardHypo
(
DBCandidate::Hypo
aHypo )
80
{
81
switch
( aHypo )
82
{
83
case
DBCandidate::kElectron
:
84
return
DBCandidate::kExitElectron
;
85
case
DBCandidate::kMuon
:
86
return
DBCandidate::kExitMuon
;
87
case
DBCandidate::kChargedPion
:
88
return
DBCandidate::kExitPion
;
89
case
DBCandidate::kChargedKaon
:
90
return
DBCandidate::kExitKaon
;
91
case
DBCandidate::kProton
:
92
return
DBCandidate::kExitProton
;
93
default
:
94
return
aHypo ;
95
}
96
}
97
98
DBCandidate::Hypo
99
DBCandidate::inwardHypo
(
DBCandidate::Hypo
aHypo )
100
{
101
switch
( aHypo )
102
{
103
case
DBCandidate::kExitElectron
:
104
return
DBCandidate::kElectron
;
105
case
DBCandidate::kExitMuon
:
106
return
DBCandidate::kMuon
;
107
case
DBCandidate::kExitPion
:
108
return
DBCandidate::kChargedPion
;
109
case
DBCandidate::kExitKaon
:
110
return
DBCandidate::kChargedKaon
;
111
case
DBCandidate::kExitProton
:
112
return
DBCandidate::kProton
;
113
default
:
114
return
aHypo ;
115
}
116
}
117
DBCandidate.h
DBCandidate::inwardHypo
static Hypo inwardHypo(DBCandidate::Hypo aHypo)
Definition
DBCandidate.cxx:99
DBCandidate::Hypo
Hypo
Definition
DBCandidate.h:60
DBCandidate::kExitPion
@ kExitPion
Definition
DBCandidate.h:69
DBCandidate::kProton
@ kProton
Definition
DBCandidate.h:66
DBCandidate::kExitKaon
@ kExitKaon
Definition
DBCandidate.h:70
DBCandidate::kExitProton
@ kExitProton
Definition
DBCandidate.h:71
DBCandidate::kMuon
@ kMuon
Definition
DBCandidate.h:63
DBCandidate::kExitElectron
@ kExitElectron
Definition
DBCandidate.h:67
DBCandidate::kChargedKaon
@ kChargedKaon
Definition
DBCandidate.h:65
DBCandidate::kExitMuon
@ kExitMuon
Definition
DBCandidate.h:68
DBCandidate::kChargedPion
@ kChargedPion
Definition
DBCandidate.h:64
DBCandidate::kElectron
@ kElectron
Definition
DBCandidate.h:62
DBCandidate::kMaxHypo
@ kMaxHypo
Definition
DBCandidate.h:72
DBCandidate::mass
static double mass(DBCandidate::Hypo aHypo)
Definition
DBCandidate.cxx:73
DBCandidate::outwardHypo
static Hypo outwardHypo(DBCandidate::Hypo aHypo)
Definition
DBCandidate.cxx:79
6.6.5.h
Event
BesDChain
BesDChain-00-00-14
src
DBCandidate.cxx
Generated by
1.12.0