Belle II Software  release-08-01-10
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 
11 using namespace Belle2;
12 using namespace std;
13 
14 int ARICHAsicInfo::getDeadChannel(unsigned int i) const
15 {
16  if (i < m_deadChannel.size()) return m_deadChannel[i];
17  else return -1;
18 }
19 
20 
21 int ARICHAsicInfo::getBadConnChannel(unsigned int i) const
22 {
23  if (i < m_badConnChannel.size()) return m_badConnChannel[i];
24  else return -1;
25 }
26 
27 
28 int ARICHAsicInfo::getBadOffsetChannel(unsigned int i) const
29 {
30  if (i < m_badOffsetChannel.size()) return m_badOffsetChannel[i];
31  else return -1;
32 }
33 
34 
35 int ARICHAsicInfo::getBadLinChannel(unsigned int i) const
36 {
37  if (i < m_badLinChannel.size()) return m_badLinChannel[i];
38  else return -1;
39 }
40 
41 
42 TH3F* ARICHAsicInfo::getGainMeasurement(unsigned int i) const
43 {
44  if (i < m_gain.size()) return m_gain[i];
45  else return NULL;
46 }
47 
48 
49 void 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 
55 TH3F* ARICHAsicInfo::getOffsetMeasurement(unsigned int i) const
56 {
57  if (i < m_offset.size()) return m_offset[i];
58  else return NULL;
59 }
60 
61 
62 void 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
Return Measurements with different offset settings.
void setGainMeasurement(std::vector< TH3F * > gain)
set Measurements with different gain settings
int getBadLinChannel(unsigned int i) const
Return a channel number from the list of channels with bad linearity.
int getBadOffsetChannel(unsigned int i) const
Return 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
Return a channel number from the list of channels with bad connections.
int getDeadChannel(unsigned int i) const
Return a channel number from the list of dead channels.
TH3F * getGainMeasurement(unsigned int i) const
Return Measurements with different gain settings.
Abstract base class for different kinds of events.