Belle II Software
development
TRGGDLDBInputBits.h
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
#pragma once
9
10
#include <TObject.h>
11
12
namespace
Belle2
{
25
class
TRGGDLDBInputBits
:
public
TObject {
26
public
:
27
29
TRGGDLDBInputBits
():
m_ninbit
{0},
m_inbitname
{} {}
31
TRGGDLDBInputBits
(
const
TRGGDLDBInputBits
& b): TObject(b)
32
{
33
m_ninbit
= b.m_ninbit;
34
for
(
int
i = 0; i < 320; i++) {
35
strcpy(
m_inbitname
[i], b.m_inbitname[i]);
36
}
37
}
39
TRGGDLDBInputBits
&
operator=
(
const
TRGGDLDBInputBits
& b)
40
{
41
m_ninbit
= b.m_ninbit;
42
for
(
int
i = 0; i < 320; i++) {
43
strcpy(
m_inbitname
[i], b.m_inbitname[i]);
44
}
45
return
*
this
;
46
}
48
void
setinbitname
(
int
i,
const
char
* c)
49
{
50
strcpy(
m_inbitname
[i], c);
51
}
53
void
setninbit
(
int
i)
54
{
55
m_ninbit
= i;
56
}
58
const
char
*
getinbitname
(
int
i)
const
59
{
60
return
m_inbitname
[i];
61
}
63
int
getninbit
()
const
64
{
65
return
m_ninbit
;
66
}
68
int
getinbitnum
(
const
char
* c)
const
69
{
70
for
(
int
i = 0; i < 320; i++) {
71
if
(strcmp(c,
m_inbitname
[i]) == 0)
return
i;
72
}
73
return
-1;
74
}
75
76
private
:
77
79
int
m_ninbit
;
80
82
char
m_inbitname
[320][100];
83
84
ClassDef
(
TRGGDLDBInputBits
, 1);
85
};
86
88
}
// end of namespace Belle2
Belle2::TRGGDLDBInputBits
The payload class for GDL input bit.
Definition:
TRGGDLDBInputBits.h:25
Belle2::TRGGDLDBInputBits::TRGGDLDBInputBits
TRGGDLDBInputBits(const TRGGDLDBInputBits &b)
copy constructor
Definition:
TRGGDLDBInputBits.h:31
Belle2::TRGGDLDBInputBits::getinbitname
const char * getinbitname(int i) const
get name of i-th input trigger bit
Definition:
TRGGDLDBInputBits.h:58
Belle2::TRGGDLDBInputBits::operator=
TRGGDLDBInputBits & operator=(const TRGGDLDBInputBits &b)
assignment operator
Definition:
TRGGDLDBInputBits.h:39
Belle2::TRGGDLDBInputBits::m_inbitname
char m_inbitname[320][100]
Number of bins per sensor along u side.
Definition:
TRGGDLDBInputBits.h:82
Belle2::TRGGDLDBInputBits::setninbit
void setninbit(int i)
set the number of input trigger bits
Definition:
TRGGDLDBInputBits.h:53
Belle2::TRGGDLDBInputBits::m_ninbit
int m_ninbit
Number of bit.
Definition:
TRGGDLDBInputBits.h:79
Belle2::TRGGDLDBInputBits::getninbit
int getninbit() const
get the number of input trigger bits
Definition:
TRGGDLDBInputBits.h:63
Belle2::TRGGDLDBInputBits::ClassDef
ClassDef(TRGGDLDBInputBits, 1)
ClassDef, must be the last term before the closing {}.
Belle2::TRGGDLDBInputBits::TRGGDLDBInputBits
TRGGDLDBInputBits()
Default constructor.
Definition:
TRGGDLDBInputBits.h:29
Belle2::TRGGDLDBInputBits::setinbitname
void setinbitname(int i, const char *c)
set name of i-th input trigger bit
Definition:
TRGGDLDBInputBits.h:48
Belle2::TRGGDLDBInputBits::getinbitnum
int getinbitnum(const char *c) const
get name of i-th input trigger bit
Definition:
TRGGDLDBInputBits.h:68
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
mdst
dbobjects
include
TRGGDLDBInputBits.h
Generated on Fri Nov 8 2024 02:40:01 for Belle II Software by
1.9.6