CGEM BOSS
6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
DBCandidate.h
Go to the documentation of this file.
1
#ifndef CLEODB_DBCANDIDATE_H
2
#define CLEODB_DBCANDIDATE_H
3
// -*- C++ -*-
4
//
5
// Package: CleoDB
6
// Module: DBCandidatefit
7
//
8
// Description: Namespace for Identifier
9
//
10
// Usage:
11
// // The DBCandidate class is effectively a namespace that contains
12
// // the enumerator to differentiate between fit hypothesis.
13
//
14
// Author: Simon Patton
15
// Created: Fri May 28 08:38:02 EDT 1997
16
// $Id: DBCandidate.h,v 1.1.1.1 2009/03/03 06:05:56 maqm Exp $
17
//
18
// Revision history
19
//
20
// $Log: DBCandidate.h,v $
21
// Revision 1.1.1.1 2009/03/03 06:05:56 maqm
22
// first import of BesDChain
23
//
24
// Revision 1.6 1999/10/08 23:06:14 wsun
25
// Added static functions outwardHypo(), inwardHypo(), and hypoIsInward().
26
//
27
// Revision 1.5 1999/05/07 18:19:39 marsh
28
// Added remaining outgoing hypotheses.
29
//
30
// Revision 1.4 1998/11/06 19:56:54 marsh
31
// Removed unneeded 'const's.
32
//
33
// Revision 1.3 1997/08/22 18:04:09 sjp
34
// Made mass into a function call
35
//
36
// Revision 1.2 1997/07/09 18:01:37 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:16 sjp
41
// New class used with Track Fit data
42
//
43
44
// system include files
45
#include <stdint.h>
46
47
// user include files
48
49
50
// STL include
51
52
// forward declarations
53
54
class
DBCandidate
55
{
56
public
:
57
// constants, enums and typedefs
58
typedef
uint32_t
Identifier
;
59
60
enum
Hypo
{
61
kPhoton
,
62
kElectron
,
63
kMuon
,
64
kChargedPion
,
65
kChargedKaon
,
66
kProton
,
67
kExitElectron
,
68
kExitMuon
,
69
kExitPion
,
70
kExitKaon
,
71
kExitProton
,
72
kMaxHypo
73
} ;
74
75
static
double
mass
(
DBCandidate::Hypo
aHypo ) ;
76
77
// Return the outward Hypo for a given inward Hypo.
78
static
Hypo
outwardHypo
(
DBCandidate::Hypo
aHypo ) ;
79
80
// Return the inward Hypo for a given outward Hypo.
81
static
Hypo
inwardHypo
(
DBCandidate::Hypo
aHypo ) ;
82
83
// Functions to check if a given hypothesis is inward. If not, it
84
// is outward.
85
static
bool
hypoIsInward
(
DBCandidate::Hypo
aHypo )
86
{
return
aHypo <
kExitElectron
; }
87
88
private
:
89
static
const
double
book_mass[
kMaxHypo
] ;
90
};
91
92
// inline function definitions
93
94
#endif
/* CLEODB_DBCANDIDATE_H */
mass
double mass
Definition:
CosmicGenerator.cxx:138
DBCandidate
Definition:
DBCandidate.h:55
DBCandidate::inwardHypo
static Hypo inwardHypo(DBCandidate::Hypo aHypo)
Definition:
DBCandidate.cxx:99
DBCandidate::Identifier
uint32_t Identifier
Definition:
DBCandidate.h:58
DBCandidate::hypoIsInward
static bool hypoIsInward(DBCandidate::Hypo aHypo)
Definition:
DBCandidate.h:85
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::kPhoton
@ kPhoton
Definition:
DBCandidate.h:61
DBCandidate::kChargedPion
@ kChargedPion
Definition:
DBCandidate.h:64
DBCandidate::kElectron
@ kElectron
Definition:
DBCandidate.h:62
DBCandidate::kMaxHypo
@ kMaxHypo
Definition:
DBCandidate.h:72
DBCandidate::outwardHypo
static Hypo outwardHypo(DBCandidate::Hypo aHypo)
Definition:
DBCandidate.cxx:79
source
Event
BesDChain
BesDChain-00-00-14
BesDChain
DBCandidate.h
Generated by
1.9.6