Belle II Software development
ARICHAsicInfo.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
11using namespace Belle2;
12using namespace std;
13
14int ARICHAsicInfo::getDeadChannel(unsigned int i) const
15{
16 if (i < m_deadChannel.size()) return m_deadChannel[i];
17 else return -1;
18}
19
20
21int ARICHAsicInfo::getBadConnChannel(unsigned int i) const
22{
23 if (i < m_badConnChannel.size()) return m_badConnChannel[i];
24 else return -1;
25}
26
27
28int ARICHAsicInfo::getBadOffsetChannel(unsigned int i) const
29{
30 if (i < m_badOffsetChannel.size()) return m_badOffsetChannel[i];
31 else return -1;
32}
33
34
35int ARICHAsicInfo::getBadLinChannel(unsigned int i) const
36{
37 if (i < m_badLinChannel.size()) return m_badLinChannel[i];
38 else return -1;
39}
40
41
42TH3F* ARICHAsicInfo::getGainMeasurement(unsigned int i) const
43{
44 if (i < m_gain.size()) return m_gain[i];
45 else return NULL;
46}
47
48
49void ARICHAsicInfo::setGainMeasurement(std::vector<TH3F*> gain)
50{
51 for (unsigned int i = 0; i < gain.size(); i++) m_gain.push_back(gain[i]);
52}
53
54
55TH3F* ARICHAsicInfo::getOffsetMeasurement(unsigned int i) const
56{
57 if (i < m_offset.size()) return m_offset[i];
58 else return NULL;
59}
60
61
62void ARICHAsicInfo::setOffsetMeasurement(std::vector<TH3F*> offset)
63{
64 for (unsigned int i = 0; i < offset.size(); i++) m_offset.push_back(offset[i]);
65}
66
67
TH3F * getOffsetMeasurement(unsigned int i) const
Get measurements with different offset settings.
std::vector< TH3F * > m_gain
Threshold scans with different gain settings.
std::vector< int > m_deadChannel
List of dead channels on the ASIC chip.
std::vector< int > m_badConnChannel
List of channels with bad connections during the measurement.
void setGainMeasurement(std::vector< TH3F * > gain)
Set measurements with different gain settings.
int getBadLinChannel(unsigned int i) const
Get a channel number from the list of channels with bad linearity.
int getBadOffsetChannel(unsigned int i) const
Get a channel number from the list of channels with bad offset adjustment.
void setOffsetMeasurement(std::vector< TH3F * > offset)
Set measurements with different offset settings.
int getBadConnChannel(unsigned int i) const
Get a channel number from the list of channels with bad connections.
int getDeadChannel(unsigned int i) const
Get a channel number from the list of dead channels.
TH3F * getGainMeasurement(unsigned int i) const
Get measurements with different gain settings.
std::vector< int > m_badLinChannel
List of channels with bad linearity.
std::vector< TH3F * > m_offset
Threshold scans with different offset settings (course & fine offset)
std::vector< int > m_badOffsetChannel
List of channels with bad offset adjustment.
Abstract base class for different kinds of events.
STL namespace.