Belle II Software  release-08-01-10
TOPFrontEndMap.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 
9 #pragma once
10 
11 #include <TObject.h>
12 
13 namespace Belle2 {
22  class TOPFrontEndMap: public TObject {
23 
24  public:
25 
30  {}
31 
42  TOPFrontEndMap(int moduleID,
43  int moduleCNumber,
44  int boardstack,
45  unsigned short scrod,
46  unsigned copper,
47  int finesse,
48  int i)
49  {
50  m_moduleID = moduleID;
51  m_moduleCNumber = moduleCNumber;
52  m_boardstack = boardstack;
53  m_scrodID = scrod;
54  m_copperID = copper;
55  m_finesse = finesse;
56  m_index = i;
57  }
58 
63  int getModuleID() const {return m_moduleID;}
64 
69  int getModuleCNumber() const {return m_moduleCNumber;}
70 
75  int getBoardstackNumber() const {return m_boardstack;}
76 
81  unsigned short getScrodID() const {return m_scrodID;}
82 
87  unsigned int getCopperID() const {return m_copperID;}
88 
93  int getFinesseSlot() const {return m_finesse;}
94 
99  int getIndex() const {return m_index;}
100 
101  private:
102 
103  int m_moduleID = 0;
104  int m_moduleCNumber = 0;
105  int m_boardstack = 0;
106  unsigned short m_scrodID = 0;
107  unsigned int m_copperID = 0;
108  int m_finesse = 0;
109  int m_index = 0;
113  };
114 
116 } // end namespace Belle2
Mapping of a boardstack number within a module to SCROD and COPPER/Finesse.
unsigned short m_scrodID
SCROD ID.
int getFinesseSlot() const
Return finesse slot number.
int getIndex() const
Return array index.
TOPFrontEndMap(int moduleID, int moduleCNumber, int boardstack, unsigned short scrod, unsigned copper, int finesse, int i)
Full constructor.
ClassDef(TOPFrontEndMap, 3)
ClassDef.
TOPFrontEndMap()
Default constructor.
int getModuleCNumber() const
Return TOP module construction number.
int m_finesse
Finesse slot number (0-based)
int m_boardstack
boardstack number within TOP module
int getBoardstackNumber() const
Return boardstack number.
int m_moduleID
module ID (slot number)
int m_moduleCNumber
module construction number
int getModuleID() const
Return TOP module ID (slot number)
int m_index
index of this element in std::vector
unsigned int m_copperID
COPPER ID.
unsigned int getCopperID() const
Return Copper ID.
unsigned short getScrodID() const
Return SCROD ID.
Abstract base class for different kinds of events.