Belle II Software  release-08-01-10
ARICHHapdChipInfo.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/ARICHHapdChipInfo.h>
10 
11 using namespace Belle2;
12 using namespace std;
13 
14 TGraph* ARICHHapdChipInfo::getBombardmentCurrent(unsigned int i) const
15 {
16  if (i < m_bombardmentCurrent.size()) return m_bombardmentCurrent[i];
17  else return NULL;
18 }
19 
20 
21 void ARICHHapdChipInfo::setBombardmentCurrent(std::vector<TGraph*> bcurrent)
22 {
23  for (unsigned int i = 0; i < bcurrent.size(); i++) m_bombardmentCurrent.push_back(bcurrent[i]);
24 }
25 
26 
27 TGraph* ARICHHapdChipInfo::getAvalancheCurrent(unsigned int i) const
28 {
29  if (i < m_avalancheCurrent.size()) return m_avalancheCurrent[i];
30  else return NULL;
31 }
32 
33 
34 void ARICHHapdChipInfo::setAvalancheCurrent(std::vector<TGraph*> acurrent)
35 {
36  for (unsigned int i = 0; i < acurrent.size(); i++) m_avalancheCurrent.push_back(acurrent[i]);
37 }
38 
39 
40 int ARICHHapdChipInfo::getCutChannel(unsigned int i) const
41 {
42  if (i < m_cutChannel.size()) return m_cutChannel[i];
43  else return -1;
44 }
45 
46 
47 int ARICHHapdChipInfo::getBadChannel(unsigned int i) const
48 {
49  if (i < m_badChannel.size()) return m_badChannel[i];
50  else return -1;
51 }
int getBadChannel(unsigned int i) const
Return a channel number from the list of cut channels.
void setBombardmentCurrent(std::vector< TGraph * > bcurrent)
set Bombardment Current as a function of high voltage
TGraph * getAvalancheCurrent(unsigned int i) const
Return Avalanche Current as a function of bias voltage.
int getCutChannel(unsigned int i) const
Return a channel number from the list of cut channels.
TGraph * getBombardmentCurrent(unsigned int i) const
Return Bombardment Current as a function of high voltage.
void setAvalancheCurrent(std::vector< TGraph * > acurrent)
set Avalanche Current as a function of bias voltage
Abstract base class for different kinds of events.