Belle II Software development
TRGGDLDBPrescales.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
12namespace Belle2 {
25 class TRGGDLDBPrescales: public TObject {
26 public:
27
32 {
33 m_noutbit = b.m_noutbit;
34 for (int i = 0; i < 320; i++) {
35 m_prescales[i] = b.m_prescales[i];
36 }
37 }
40 {
41 m_noutbit = b.m_noutbit;
42 for (int i = 0; i < 320; i++) {
43 m_prescales[i] = b.m_prescales[i];
44 }
45 return *this;
46 }
48 void setprescales(int i, int j)
49 {
50 m_prescales[i] = j;
51 }
53 void setnoutbit(int i)
54 {
55 m_noutbit = i;
56 }
58 int getprescales(int i) const
59 {
60 return m_prescales[i];
61 }
63 int getnoutbit() const
64 {
65 return m_noutbit;
66 }
67
68 private:
69
72
74 int m_prescales[320];
75
77 };
78
80} // end of namespace Belle2
The payload class for GDL psnm.
int m_noutbit
Number of bit.
TRGGDLDBPrescales()
Default constructor.
ClassDef(TRGGDLDBPrescales, 1)
ClassDef, must be the last term before the closing {}.
TRGGDLDBPrescales(const TRGGDLDBPrescales &b)
copy constructor
int getnoutbit() const
get the number of output trigger bit
void setprescales(int i, int j)
set prescale of i-th output trigger bit
void setnoutbit(int i)
set the number of output trigger bit
int m_prescales[320]
Number of bins per sensor along u side.
TRGGDLDBPrescales & operator=(const TRGGDLDBPrescales &b)
assignment operator
int getprescales(int i) const
get prescale of i-th output trigger bit
Abstract base class for different kinds of events.