Belle II Software development
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
11using namespace Belle2;
12using namespace std;
13
14TGraph* ARICHHapdChipInfo::getBombardmentCurrent(unsigned int i) const
15{
16 if (i < m_bombardmentCurrent.size()) return m_bombardmentCurrent[i];
17 else return NULL;
18}
19
20
21void 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
27TGraph* ARICHHapdChipInfo::getAvalancheCurrent(unsigned int i) const
28{
29 if (i < m_avalancheCurrent.size()) return m_avalancheCurrent[i];
30 else return NULL;
31}
32
33
34void 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
40int ARICHHapdChipInfo::getCutChannel(unsigned int i) const
41{
42 if (i < m_cutChannel.size()) return m_cutChannel[i];
43 else return -1;
44}
45
46
47int ARICHHapdChipInfo::getBadChannel(unsigned int i) const
48{
49 if (i < m_badChannel.size()) return m_badChannel[i];
50 else return -1;
51}
std::vector< int > m_badChannel
List of bad (cut and dead channels) on the HAPD chip.
int getBadChannel(unsigned int i) const
Get a channel number from the list of bad channels.
void setBombardmentCurrent(std::vector< TGraph * > bcurrent)
Set bombardment current as a function of high voltage.
TGraph * getAvalancheCurrent(unsigned int i) const
Get avalanche current as a function of bias voltage.
std::vector< int > m_cutChannel
List of cut channels on the HAPD chip.
int getCutChannel(unsigned int i) const
Get a channel number from the list of cut channels.
std::vector< TGraph * > m_avalancheCurrent
Avalanche Current as a function of bias voltage.
std::vector< TGraph * > m_bombardmentCurrent
Bombardment Current as a function of high voltage.
TGraph * getBombardmentCurrent(unsigned int i) const
Get 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.
STL namespace.