Belle II Software
release-05-02-19
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
SVDTriggerType.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2019 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Jarek Wiechczynski *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#ifndef SVDTRIGGERTYPE_H
12
#define SVDTRIGGERTYPE_H
13
14
#include <cstdint>
15
16
namespace
Belle2
{
25
class
SVDTriggerType {
26
27
public
:
29
typedef
uint8_t
baseType
;
30
32
explicit
SVDTriggerType
(
baseType
type
= 0)
33
{
34
m_triggerID
.type =
type
;
35
}
36
38
void
setType
(
baseType
type
) {
m_triggerID
.type =
type
; }
39
41
baseType
getType
()
const
{
return
m_triggerID
.type; }
42
43
/*
44
* additional methods will come later...
45
*/
46
47
private
:
48
70
union
{
72
baseType
type
: 4;
73
74
// 2 structs convenient for retrieving info (maybe one more to come....)
75
struct
{
76
baseType
bin1: 1;
77
baseType
bin2
: 1;
78
baseType
bin3: 1;
79
baseType
bin4: 1;
80
} parts1;
81
struct
{
82
baseType
bin12: 2;
83
baseType
bin34
: 2;
84
} parts2;
85
86
}
m_triggerID
;
87
};
89
}
// namespace Belle2
90
91
#endif
92
Belle2::SVDTriggerType::getType
baseType getType() const
Get the unique type.
Definition:
SVDTriggerType.h:49
Belle2::SVDTriggerType::bin2
baseType bin2
LSB.
Definition:
SVDTriggerType.h:85
Belle2::SVDTriggerType::m_triggerID
union Belle2::SVDTriggerType::@236 m_triggerID
how to interpret the 4 bits:
Belle2::SVDTriggerType::type
baseType type
Unique id.
Definition:
SVDTriggerType.h:80
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::SVDTriggerType::SVDTriggerType
SVDTriggerType(baseType type=0)
Constructor using the unique type.
Definition:
SVDTriggerType.h:40
Belle2::SVDTriggerType::bin34
baseType bin34
first 2 bits
Definition:
SVDTriggerType.h:91
Belle2::SVDTriggerType::setType
void setType(baseType type)
Set the unique type.
Definition:
SVDTriggerType.h:46
Belle2::SVDTriggerType::baseType
uint8_t baseType
The base integer type for SVDTriggerType.
Definition:
SVDTriggerType.h:37
svd
dataobjects
include
SVDTriggerType.h
Generated on Tue Jan 4 2022 03:02:46 for Belle II Software by
1.8.17