Belle II Software  release-05-02-19
TOPFrontEndMap.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TObject.h>
14 
15 namespace Belle2 {
24  class TOPFrontEndMap: public TObject {
25 
26  public:
27 
32  {}
33 
44  TOPFrontEndMap(int moduleID,
45  int moduleCNumber,
46  int boardstack,
47  unsigned short scrod,
48  unsigned copper,
49  int finesse,
50  int i)
51  {
52  m_moduleID = moduleID;
53  m_moduleCNumber = moduleCNumber;
54  m_boardstack = boardstack;
55  m_scrodID = scrod;
56  m_copperID = copper;
57  m_finesse = finesse;
58  m_index = i;
59  }
60 
65  int getModuleID() const {return m_moduleID;}
66 
71  int getModuleCNumber() const {return m_moduleCNumber;}
72 
77  int getBoardstackNumber() const {return m_boardstack;}
78 
83  unsigned short getScrodID() const {return m_scrodID;}
84 
89  unsigned int getCopperID() const {return m_copperID;}
90 
95  int getFinesseSlot() const {return m_finesse;}
96 
101  int getIndex() const {return m_index;}
102 
103  private:
104 
105  int m_moduleID = 0;
106  int m_moduleCNumber = 0;
107  int m_boardstack = 0;
108  unsigned short m_scrodID = 0;
109  unsigned int m_copperID = 0;
110  int m_finesse = 0;
111  int m_index = 0;
115  };
116 
118 } // end namespace Belle2
Belle2::TOPFrontEndMap
Mapping of a boardstack number within a module to SCROD and COPPER/Finesse.
Definition: TOPFrontEndMap.h:32
Belle2::TOPFrontEndMap::m_index
int m_index
index of this element in std::vector
Definition: TOPFrontEndMap.h:119
Belle2::TOPFrontEndMap::getFinesseSlot
int getFinesseSlot() const
Return finesse slot number.
Definition: TOPFrontEndMap.h:103
Belle2::TOPFrontEndMap::m_copperID
unsigned int m_copperID
COPPER ID.
Definition: TOPFrontEndMap.h:117
Belle2::TOPFrontEndMap::m_finesse
int m_finesse
Finesse slot number (0-based)
Definition: TOPFrontEndMap.h:118
Belle2::TOPFrontEndMap::m_moduleID
int m_moduleID
module ID (slot number)
Definition: TOPFrontEndMap.h:113
Belle2::TOPFrontEndMap::m_moduleCNumber
int m_moduleCNumber
module construction number
Definition: TOPFrontEndMap.h:114
Belle2::TOPFrontEndMap::getBoardstackNumber
int getBoardstackNumber() const
Return boardstack number.
Definition: TOPFrontEndMap.h:85
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPFrontEndMap::getIndex
int getIndex() const
Return array index.
Definition: TOPFrontEndMap.h:109
Belle2::TOPFrontEndMap::getScrodID
unsigned short getScrodID() const
Return SCROD ID.
Definition: TOPFrontEndMap.h:91
Belle2::TOPFrontEndMap::getModuleID
int getModuleID() const
Return TOP module ID (slot number)
Definition: TOPFrontEndMap.h:73
Belle2::TOPFrontEndMap::getModuleCNumber
int getModuleCNumber() const
Return TOP module construction number.
Definition: TOPFrontEndMap.h:79
Belle2::TOPFrontEndMap::getCopperID
unsigned int getCopperID() const
Return Copper ID.
Definition: TOPFrontEndMap.h:97
Belle2::TOPFrontEndMap::TOPFrontEndMap
TOPFrontEndMap()
Default constructor.
Definition: TOPFrontEndMap.h:39
Belle2::TOPFrontEndMap::m_scrodID
unsigned short m_scrodID
SCROD ID.
Definition: TOPFrontEndMap.h:116
Belle2::TOPFrontEndMap::m_boardstack
int m_boardstack
boardstack number within TOP module
Definition: TOPFrontEndMap.h:115
Belle2::TOPFrontEndMap::ClassDef
ClassDef(TOPFrontEndMap, 3)
ClassDef.