Belle II Software  release-05-01-25
ARICHHapdChipInfo.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Manca Mrvar *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <arich/dbobjects/ARICHHapdChipInfo.h>
12 
13 using namespace Belle2;
14 using namespace std;
15 
16 TGraph* ARICHHapdChipInfo::getBombardmentCurrent(unsigned int i) const
17 {
18  if (i < m_bombardmentCurrent.size()) return m_bombardmentCurrent[i];
19  else return NULL;
20 }
21 
22 
23 void ARICHHapdChipInfo::setBombardmentCurrent(std::vector<TGraph*> bcurrent)
24 {
25  for (unsigned int i = 0; i < bcurrent.size(); i++) m_bombardmentCurrent.push_back(bcurrent[i]);
26 }
27 
28 
29 TGraph* ARICHHapdChipInfo::getAvalancheCurrent(unsigned int i) const
30 {
31  if (i < m_avalancheCurrent.size()) return m_avalancheCurrent[i];
32  else return NULL;
33 }
34 
35 
36 void ARICHHapdChipInfo::setAvalancheCurrent(std::vector<TGraph*> acurrent)
37 {
38  for (unsigned int i = 0; i < acurrent.size(); i++) m_avalancheCurrent.push_back(acurrent[i]);
39 }
40 
41 
42 int ARICHHapdChipInfo::getCutChannel(unsigned int i) const
43 {
44  if (i < m_cutChannel.size()) return m_cutChannel[i];
45  else return -1;
46 }
47 
48 
49 int ARICHHapdChipInfo::getBadChannel(unsigned int i) const
50 {
51  if (i < m_badChannel.size()) return m_badChannel[i];
52  else return -1;
53 }
Belle2::ARICHHapdChipInfo::getBadChannel
int getBadChannel(unsigned int i) const
Return a channel number from the list of cut channels.
Definition: ARICHHapdChipInfo.cc:49
Belle2::ARICHHapdChipInfo::getAvalancheCurrent
TGraph * getAvalancheCurrent(unsigned int i) const
Return Avalanche Current as a function of bias voltage.
Definition: ARICHHapdChipInfo.cc:29
Belle2::ARICHHapdChipInfo::setBombardmentCurrent
void setBombardmentCurrent(std::vector< TGraph * > bcurrent)
set Bombardment Current as a function of high voltage
Definition: ARICHHapdChipInfo.cc:23
Belle2::ARICHHapdChipInfo::setAvalancheCurrent
void setAvalancheCurrent(std::vector< TGraph * > acurrent)
set Avalanche Current as a function of bias voltage
Definition: ARICHHapdChipInfo.cc:36
Belle2::ARICHHapdChipInfo::getBombardmentCurrent
TGraph * getBombardmentCurrent(unsigned int i) const
Return Bombardment Current as a function of high voltage.
Definition: ARICHHapdChipInfo.cc:16
Belle2::ARICHHapdChipInfo::getCutChannel
int getCutChannel(unsigned int i) const
Return a channel number from the list of cut channels.
Definition: ARICHHapdChipInfo.cc:42
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19