BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/BesDChain/BesDChain-00-00-14/BesDChain/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
55{
56 public:
57 // constants, enums and typedefs
58 typedef uint32_t Identifier ;
59
60 enum Hypo {
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 */
double mass
static Hypo inwardHypo(DBCandidate::Hypo aHypo)
Definition: DBCandidate.cxx:99
static bool hypoIsInward(DBCandidate::Hypo aHypo)
static Hypo outwardHypo(DBCandidate::Hypo aHypo)
Definition: DBCandidate.cxx:79