Belle II Software
release-05-01-25
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::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::m_triggerID
union Belle2::SVDTriggerType::@212 m_triggerID
how to interpret the 4 bits:
Belle2::SVDTriggerType::baseType
uint8_t baseType
The base integer type for SVDTriggerType.
Definition:
SVDTriggerType.h:37
svd
dataobjects
include
SVDTriggerType.h
Generated on Fri Nov 5 2021 03:58:03 for Belle II Software by
1.8.17