Belle II Software development
ARICHFEBoardInfo.cc
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#include <arich/dbobjects/ARICHAsicInfo.h>
10#include <arich/dbobjects/ARICHFEBoardInfo.h>
11
12using namespace Belle2;
13using namespace std;
14
16{
17 if (i < 4) return m_asicInfo[i];
18 else return NULL;
19}
20
21
22void ARICHFEBoardInfo::setAsicInfo(unsigned int i, ARICHAsicInfo* asicInfo)
23{
24 if (i < 4) m_asicInfo[i] = asicInfo;
25}
26
27std::string ARICHFEBoardInfo::getAsicPosition(unsigned int i) const
28{
29 if (i < 4) return m_asicsFEB[i];
30 else return "";
31}
32
33
34void ARICHFEBoardInfo::setAsicPosition(unsigned int i, const std::string& asicsFEB)
35{
36 if (i < 4) m_asicsFEB[i] = asicsFEB;
37}
38
Tested ASIC chips.
Definition: ARICHAsicInfo.h:25
void setAsicPosition(unsigned int i, const std::string &asicsFEB)
Set ASIC position.
ARICHAsicInfo * getAsicInfo(unsigned int i) const
Get ASIC info.
std::string m_asicsFEB[4]
serial numbers of ASICs on FEB board
ARICHAsicInfo * m_asicInfo[4]
id of the i-th chip in the FEB
void setAsicInfo(unsigned int i, ARICHAsicInfo *asic)
Set ASIC info.
std::string getAsicPosition(unsigned int i) const
Get ASIC position.
Abstract base class for different kinds of events.
STL namespace.