Belle II Software  release-05-01-25
TRGGDLDBPrescales.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Benjamin Schwenker *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <TObject.h>
13 
14 namespace Belle2 {
27  class TRGGDLDBPrescales: public TObject {
28  public:
29 
33  TRGGDLDBPrescales(const TRGGDLDBPrescales& b): TObject(b)
34  {
35  m_noutbit = b.m_noutbit;
36  for (int i = 0; i < 320; i++) {
37  m_prescales[i] = b.m_prescales[i];
38  }
39  }
42  {
43  m_noutbit = b.m_noutbit;
44  for (int i = 0; i < 320; i++) {
45  m_prescales[i] = b.m_prescales[i];
46  }
47  return *this;
48  }
50  void setprescales(int i, int j)
51  {
52  m_prescales[i] = j;
53  }
55  void setnoutbit(int i)
56  {
57  m_noutbit = i;
58  }
60  int getprescales(int i) const
61  {
62  return m_prescales[i];
63  }
65  int getnoutbit() const
66  {
67  return m_noutbit;
68  }
69 
70  private:
71 
73  int m_noutbit;
74 
76  int m_prescales[320];
77 
79  };
80 
82 } // end of namespace Belle2
Belle2::TRGGDLDBPrescales::ClassDef
ClassDef(TRGGDLDBPrescales, 1)
ClassDef, must be the last term before the closing {}.
Belle2::TRGGDLDBPrescales::TRGGDLDBPrescales
TRGGDLDBPrescales()
Default constructor.
Definition: TRGGDLDBPrescales.h:39
Belle2::TRGGDLDBPrescales::setnoutbit
void setnoutbit(int i)
set the number of output trigger bit
Definition: TRGGDLDBPrescales.h:63
Belle2::TRGGDLDBPrescales::operator=
TRGGDLDBPrescales & operator=(const TRGGDLDBPrescales &b)
assignment operator
Definition: TRGGDLDBPrescales.h:49
Belle2::TRGGDLDBPrescales::m_noutbit
int m_noutbit
Number of bit.
Definition: TRGGDLDBPrescales.h:81
Belle2::TRGGDLDBPrescales::m_prescales
int m_prescales[320]
Number of bins per sensor along u side.
Definition: TRGGDLDBPrescales.h:84
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGGDLDBPrescales::getnoutbit
int getnoutbit() const
get the number of output trigger bit
Definition: TRGGDLDBPrescales.h:73
Belle2::TRGGDLDBPrescales::setprescales
void setprescales(int i, int j)
set prescale of i-th output trigger bit
Definition: TRGGDLDBPrescales.h:58
Belle2::TRGGDLDBPrescales
The payload class for GDL psnm.
Definition: TRGGDLDBPrescales.h:35
Belle2::TRGGDLDBPrescales::getprescales
int getprescales(int i) const
get prescale of i-th output trigger bit
Definition: TRGGDLDBPrescales.h:68