Belle II Software development
ARICHBadChannels Class Reference

ARICH bad channels. More...

#include <ARICHBadChannels.h>

Inheritance diagram for ARICHBadChannels:

Public Member Functions

 ARICHBadChannels ()
 Default constructor.
 
 ~ARICHBadChannels ()
 Destructor.
 
int getID () const
 Get global ID.
 
void setID (const int id)
 Set global ID.
 
std::string getHapdSerial () const
 Get HAPD serial number.
 
void setHapdSerial (const std::string &serial)
 Set HAPD serial number.
 
int getFebSerial () const
 Get FEB serial number.
 
void setFebSerial (const int serial)
 Set FEB serial number.
 
int getHapdCutChannel (unsigned int i) const
 Get a channel number from the list of cut channels.
 
std::vector< int > getHapdCutChannels () const
 Get a list of cut channels.
 
void appendHapdCutChannel (int channel)
 Add a channel number to the list of cut channels.
 
void setHapdCutChannel (std::vector< int > channels)
 Set the list of cut channels.
 
int getHapdCutChannelsSize () const
 Get size of the list of cut channels.
 
int getHapdBadChannel (unsigned int i) const
 Get a channel number from the list of bad channels.
 
std::vector< int > getHapdBadChannels () const
 Get a list of bad channels.
 
void appendHapdBadChannel (int channel)
 Add a channel number to the list of bad channels.
 
void setHapdBadChannel (std::vector< int > channels)
 Set the list of bad channels.
 
int getHapdBadChannelsSize () const
 Get size of the list of cut channels.
 
int getHapdListOfBadChannel (unsigned int i) const
 Get a channel number from the list of bad channels.
 
std::vector< int > getHapdListOfBadChannels () const
 Get a list of all bad channels.
 
int getHapdListOfBadChannelsSize () const
 Get size of the list of all bad channels.
 
int getFebDeadChannel (unsigned int i) const
 Get a channel number from the list of dead channels.
 
std::vector< int > getFebDeadChannels () const
 Get a list of dead channels.
 
void appendFebDeadChannel (int channel)
 Add a channel number to the list of dead channels.
 
void setFebDeadChannels (std::vector< int > deadChannels)
 Set vector of dead channel numbers.
 
int getFebDeadChannelsSize () const
 Get size of the list of dead channels.
 
int getAsicDeadChannel (unsigned int i) const
 Get a channel number from the list of dead channels.
 
std::vector< int > getAsicDeadChannels () const
 Get a list of dead channels.
 
void appendAsicDeadChannel (int channel)
 Add a channel number to the list of dead channels.
 
void setAsicDeadChannels (std::vector< int > deadChannels)
 Set vector of dead channel numbers.
 
int getAsicDeadChannelsSize () const
 Get size of the list of dead channels.
 
int getAsicBadConnChannel (unsigned int i) const
 Get a channel number from the list of channels with bad connections.
 
std::vector< int > getAsicBadConnChannels () const
 Get a list of channels with bad connections.
 
void appendAsicBadConnChannel (int channel)
 Add a channel number to the list of channels with bad connections.
 
void setAsicBadConnChannels (std::vector< int > badConnChannels)
 Set vector of bad connection channel numbers.
 
int getAsicBadConnChannelsSize () const
 Get size of the list of channels with bad connections.
 
int getAsicBadOffsetChannel (unsigned int i) const
 Get a channel number from the list of channels with bad offset adjustment.
 
std::vector< int > getAsicBadOffsetChannels () const
 Get a list of channels with bad offset adjustment.
 
void appendAsicBadOffsetChannel (int channel)
 Add a channel number to the list of channels with bad offset adjustment.
 
void setAsicBadOffsetChannels (std::vector< int > badOffsetChannels)
 Set vector of bad offset channel numbers.
 
int getAsicBadOffsetChannelsSize () const
 Get size of the list of channels with bad offset adjustment.
 
int getAsicBadLinChannel (unsigned int i) const
 Get a channel number from the list of channels with bad linearity.
 
std::vector< int > getAsicBadLinChannels () const
 Get a list of channels with bad linearity.
 
void appendAsicBadLinChannel (int channel)
 Add a channel number to the list of channels with bad linearity.
 
void setAsicBadLinChannels (std::vector< int > badLinChannels)
 Set vector of bad linearity channel numbers.
 
int getAsicBadLinChannelsSize () const
 Get size of the list of channels with bad linearity.
 
int getFebListOfBadChannel (unsigned int i) const
 Get a channel number from the list of channels with bad linearity.
 
std::vector< int > getFebListOfBadChannels () const
 Get a list of all bad channels.
 
int getFebListOfBadChannelsSize () const
 Get size of the list of all bad channels.
 

Private Member Functions

 ClassDef (ARICHBadChannels, 1)
 ClassDef.
 

Private Attributes

int m_id
 global ID
 
std::string m_hapdSerial
 serial number of the sensor
 
int m_febSerial
 serial number of the FEB
 
std::vector< int > m_hapdCutChannels
 List of cut channels on the HAPD chip.
 
std::vector< int > m_hapdBadChannels
 List of bad (cut and dead channels) on the HAPD chip.
 
std::vector< int > m_febDeadChannels
 List of dead channels on the FEB.
 
std::vector< int > m_asicDeadChannels
 List of dead channels on the ASIC chip.
 
std::vector< int > m_asicBadConnChannels
 List of channels with bad connections during the measurement.
 
std::vector< int > m_asicBadOffsetChannels
 List of channels with bad offset adjustment.
 
std::vector< int > m_asicBadLinChannels
 List of channels with bad linearity.
 
std::vector< int > m_hapdListOfBadChannels
 List of all bad channels on the HAPD.
 
std::vector< int > m_febListOfBadChannels
 List of all bad channels on the FEB.
 

Detailed Description

ARICH bad channels.

Definition at line 22 of file ARICHBadChannels.h.

Constructor & Destructor Documentation

◆ ARICHBadChannels()

ARICHBadChannels ( )
inline

Default constructor.

Definition at line 29 of file ARICHBadChannels.h.

std::vector< int > m_asicDeadChannels
List of dead channels on the ASIC chip.
std::string m_hapdSerial
serial number of the sensor
std::vector< int > m_hapdCutChannels
List of cut channels on the HAPD chip.
int m_febSerial
serial number of the FEB
std::vector< int > m_asicBadOffsetChannels
List of channels with bad offset adjustment.
std::vector< int > m_febDeadChannels
List of dead channels on the FEB.
std::vector< int > m_asicBadConnChannels
List of channels with bad connections during the measurement.
std::vector< int > m_asicBadLinChannels
List of channels with bad linearity.
std::vector< int > m_hapdBadChannels
List of bad (cut and dead channels) on the HAPD chip.

◆ ~ARICHBadChannels()

~ARICHBadChannels ( )
inline

Destructor.

Definition at line 35 of file ARICHBadChannels.h.

35{};

Member Function Documentation

◆ appendAsicBadConnChannel()

void appendAsicBadConnChannel ( int  channel)
inline

Add a channel number to the list of channels with bad connections.

Parameters
[in]channelASIC channel id.

Definition at line 233 of file ARICHBadChannels.h.

233{ m_asicBadConnChannels.push_back(channel); }

◆ appendAsicBadLinChannel()

void appendAsicBadLinChannel ( int  channel)
inline

Add a channel number to the list of channels with bad linearity.

Parameters
[in]channelASIC channel id.

Definition at line 296 of file ARICHBadChannels.h.

296{ m_asicBadLinChannels.push_back(channel); }

◆ appendAsicBadOffsetChannel()

void appendAsicBadOffsetChannel ( int  channel)
inline

Add a channel number to the list of channels with bad offset adjustment.

Parameters
[in]channelASIC channel id.

Definition at line 265 of file ARICHBadChannels.h.

265{ m_asicBadOffsetChannels.push_back(channel); }

◆ appendAsicDeadChannel()

void appendAsicDeadChannel ( int  channel)
inline

Add a channel number to the list of dead channels.

Parameters
[in]channelASIC channel id.

Definition at line 202 of file ARICHBadChannels.h.

202{m_asicDeadChannels.push_back(channel); }

◆ appendFebDeadChannel()

void appendFebDeadChannel ( int  channel)
inline

Add a channel number to the list of dead channels.

Parameters
[in]channelFEB channel id.

Definition at line 171 of file ARICHBadChannels.h.

171{m_febDeadChannels.push_back(channel); }

◆ appendHapdBadChannel()

void appendHapdBadChannel ( int  channel)
inline

Add a channel number to the list of bad channels.

Parameters
[in]channelHAPD channel number.

Definition at line 121 of file ARICHBadChannels.h.

121{ m_hapdBadChannels.push_back(channel); }

◆ appendHapdCutChannel()

void appendHapdCutChannel ( int  channel)
inline

Add a channel number to the list of cut channels.

Parameters
[in]channelHAPD channel number.

Definition at line 90 of file ARICHBadChannels.h.

90{m_hapdCutChannels.push_back(channel); }

◆ getAsicBadConnChannel()

int getAsicBadConnChannel ( unsigned int  i) const

Get a channel number from the list of channels with bad connections.

Parameters
[in]iIndex of the element in the list.
Returns
Channel id.

Definition at line 68 of file ARICHBadChannels.cc.

69{
70 if (i < m_asicBadConnChannels.size()) return m_asicBadConnChannels[i];
71 else return -1;
72}

◆ getAsicBadConnChannels()

std::vector< int > getAsicBadConnChannels ( ) const
inline

Get a list of channels with bad connections.

Returns
vector of channels.

Definition at line 227 of file ARICHBadChannels.h.

227{return m_asicBadConnChannels; }

◆ getAsicBadConnChannelsSize()

int getAsicBadConnChannelsSize ( ) const
inline

Get size of the list of channels with bad connections.

Returns
Size.

Definition at line 245 of file ARICHBadChannels.h.

245{return m_asicBadConnChannels.size();}

◆ getAsicBadLinChannel()

int getAsicBadLinChannel ( unsigned int  i) const

Get a channel number from the list of channels with bad linearity.

Parameters
[in]iIndex of the element in the list.
Returns
channel id

Definition at line 82 of file ARICHBadChannels.cc.

83{
84 if (i < m_asicBadLinChannels.size()) return m_asicBadLinChannels[i];
85 else return -1;
86}

◆ getAsicBadLinChannels()

std::vector< int > getAsicBadLinChannels ( ) const
inline

Get a list of channels with bad linearity.

Returns
Vector of channels.

Definition at line 290 of file ARICHBadChannels.h.

290{return m_asicBadLinChannels; }

◆ getAsicBadLinChannelsSize()

int getAsicBadLinChannelsSize ( ) const
inline

Get size of the list of channels with bad linearity.

Returns
Size.

Definition at line 308 of file ARICHBadChannels.h.

308{return m_asicBadLinChannels.size();}

◆ getAsicBadOffsetChannel()

int getAsicBadOffsetChannel ( unsigned int  i) const

Get a channel number from the list of channels with bad offset adjustment.

Parameters
[in]iIndex of the element in the list.
Returns
Channel id.

Definition at line 75 of file ARICHBadChannels.cc.

76{
77 if (i < m_asicBadOffsetChannels.size()) return m_asicBadOffsetChannels[i];
78 else return -1;
79}

◆ getAsicBadOffsetChannels()

std::vector< int > getAsicBadOffsetChannels ( ) const
inline

Get a list of channels with bad offset adjustment.

Returns
Vector of channels.

Definition at line 259 of file ARICHBadChannels.h.

◆ getAsicBadOffsetChannelsSize()

int getAsicBadOffsetChannelsSize ( ) const
inline

Get size of the list of channels with bad offset adjustment.

Returns
Size.

Definition at line 277 of file ARICHBadChannels.h.

277{return m_asicBadOffsetChannels.size();}

◆ getAsicDeadChannel()

int getAsicDeadChannel ( unsigned int  i) const

Get a channel number from the list of dead channels.

Parameters
[in]iIndex of the element in the list.
Returns
Channel id.

Definition at line 61 of file ARICHBadChannels.cc.

62{
63 if (i < m_asicDeadChannels.size()) return m_asicDeadChannels[i];
64 else return -1;
65}

◆ getAsicDeadChannels()

std::vector< int > getAsicDeadChannels ( ) const
inline

Get a list of dead channels.

Returns
Vector of channels.

Definition at line 196 of file ARICHBadChannels.h.

196{return m_asicDeadChannels; }

◆ getAsicDeadChannelsSize()

int getAsicDeadChannelsSize ( ) const
inline

Get size of the list of dead channels.

Returns
Size.

Definition at line 214 of file ARICHBadChannels.h.

214{return m_asicDeadChannels.size();}

◆ getFebDeadChannel()

int getFebDeadChannel ( unsigned int  i) const

Get a channel number from the list of dead channels.

Parameters
[in]iIndex of the element in the list.
Returns
Channel id.

Definition at line 54 of file ARICHBadChannels.cc.

55{
56 if (i < m_febDeadChannels.size()) return m_febDeadChannels[i];
57 else return -1;
58}

◆ getFebDeadChannels()

std::vector< int > getFebDeadChannels ( ) const
inline

Get a list of dead channels.

Returns
Vector of channels.

Definition at line 165 of file ARICHBadChannels.h.

165{return m_febDeadChannels; }

◆ getFebDeadChannelsSize()

int getFebDeadChannelsSize ( ) const
inline

Get size of the list of dead channels.

Returns
Size.

Definition at line 183 of file ARICHBadChannels.h.

183{return m_febDeadChannels.size();}

◆ getFebListOfBadChannel()

int getFebListOfBadChannel ( unsigned int  i) const

Get a channel number from the list of channels with bad linearity.

Parameters
[in]iIndex of the element in the list.
Returns
Channel id.

Definition at line 135 of file ARICHBadChannels.cc.

136{
137 std::vector<int> m_febAllBadCHs = ARICHBadChannels::getFebListOfBadChannels();
138 if (i < m_febAllBadCHs.size()) return m_febAllBadCHs[i];
139 else return -1;
140}
std::vector< int > getFebListOfBadChannels() const
Get a list of all bad channels.

◆ getFebListOfBadChannels()

std::vector< int > getFebListOfBadChannels ( ) const
inline

Get a list of all bad channels.

Returns
Vector of channels

Definition at line 321 of file ARICHBadChannels.h.

321{ return m_febListOfBadChannels; }
std::vector< int > m_febListOfBadChannels
List of all bad channels on the FEB.

◆ getFebListOfBadChannelsSize()

int getFebListOfBadChannelsSize ( ) const
inline

Get size of the list of all bad channels.

Returns
Size.

Definition at line 327 of file ARICHBadChannels.h.

327{ return m_febListOfBadChannels.size(); }

◆ getFebSerial()

int getFebSerial ( ) const
inline

Get FEB serial number.

Returns
FEB serial number.

Definition at line 65 of file ARICHBadChannels.h.

65{return m_febSerial; }

◆ getHapdBadChannel()

int getHapdBadChannel ( unsigned int  i) const

Get a channel number from the list of bad channels.

Parameters
[in]iIndex of the element in the list.
Returns
Channel number.

Definition at line 23 of file ARICHBadChannels.cc.

24{
25 if (i < m_hapdBadChannels.size()) return m_hapdBadChannels[i];
26 else return -1;
27}

◆ getHapdBadChannels()

std::vector< int > getHapdBadChannels ( ) const
inline

Get a list of bad channels.

Returns
vector of channels.

Definition at line 115 of file ARICHBadChannels.h.

115{return m_hapdBadChannels; }

◆ getHapdBadChannelsSize()

int getHapdBadChannelsSize ( ) const
inline

Get size of the list of cut channels.

Returns
Size.

Definition at line 133 of file ARICHBadChannels.h.

133{return m_hapdBadChannels.size();}

◆ getHapdCutChannel()

int getHapdCutChannel ( unsigned int  i) const

Get a channel number from the list of cut channels.

Parameters
[in]iIndex of the element in the list.
Returns
Channel number.

Definition at line 16 of file ARICHBadChannels.cc.

17{
18 if (i < m_hapdCutChannels.size()) return m_hapdCutChannels[i];
19 else return -1;
20}

◆ getHapdCutChannels()

std::vector< int > getHapdCutChannels ( ) const
inline

Get a list of cut channels.

Returns
Vector of channels.

Definition at line 84 of file ARICHBadChannels.h.

84{return m_hapdCutChannels; }

◆ getHapdCutChannelsSize()

int getHapdCutChannelsSize ( ) const
inline

Get size of the list of cut channels.

Returns
Size.

Definition at line 102 of file ARICHBadChannels.h.

102{return m_hapdCutChannels.size(); }

◆ getHapdListOfBadChannel()

int getHapdListOfBadChannel ( unsigned int  i) const

Get a channel number from the list of bad channels.

Parameters
[in]iIndex of the element in the list.
Returns
Channel id.

Definition at line 47 of file ARICHBadChannels.cc.

48{
49 std::vector<int> m_hapdAllBadCHs = ARICHBadChannels::getHapdListOfBadChannels();
50 if (i < m_hapdAllBadCHs.size()) return m_hapdAllBadCHs[i];
51 else return -1;
52}
std::vector< int > getHapdListOfBadChannels() const
Get a list of all bad channels.

◆ getHapdListOfBadChannels()

std::vector< int > getHapdListOfBadChannels ( ) const
inline

Get a list of all bad channels.

Returns
Vector of channels.

Definition at line 146 of file ARICHBadChannels.h.

146{ return m_hapdListOfBadChannels; }
std::vector< int > m_hapdListOfBadChannels
List of all bad channels on the HAPD.

◆ getHapdListOfBadChannelsSize()

int getHapdListOfBadChannelsSize ( ) const
inline

Get size of the list of all bad channels.

Returns
Size.

Definition at line 152 of file ARICHBadChannels.h.

152{ return m_hapdListOfBadChannels.size(); }

◆ getHapdSerial()

std::string getHapdSerial ( ) const
inline

Get HAPD serial number.

Returns
HAPD serial number.

Definition at line 53 of file ARICHBadChannels.h.

53{return m_hapdSerial; }

◆ getID()

int getID ( ) const
inline

Get global ID.

Returns
Global ID.

Definition at line 41 of file ARICHBadChannels.h.

41{return m_id; }

◆ setAsicBadConnChannels()

void setAsicBadConnChannels ( std::vector< int >  badConnChannels)

Set vector of bad connection channel numbers.

Parameters
[in]badConnChannelsASIC channel id

Definition at line 107 of file ARICHBadChannels.cc.

108{
109 m_asicBadConnChannels = badConnChannels;
110 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), badConnChannels.begin(), badConnChannels.end());
111 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
114}

◆ setAsicBadLinChannels()

void setAsicBadLinChannels ( std::vector< int >  badLinChannels)

Set vector of bad linearity channel numbers.

Parameters
[in]badLinChannelsASIC channel id

Definition at line 126 of file ARICHBadChannels.cc.

127{
128 m_asicBadLinChannels = badLinChannels;
129 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), badLinChannels.begin(), badLinChannels.end());
130 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
133}

◆ setAsicBadOffsetChannels()

void setAsicBadOffsetChannels ( std::vector< int >  badOffsetChannels)

Set vector of bad offset channel numbers.

Parameters
[in]badOffsetChannelsASIC channel id.

Definition at line 116 of file ARICHBadChannels.cc.

117{
118 m_asicBadOffsetChannels = badOffsetChannels;
119 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), badOffsetChannels.begin(), badOffsetChannels.end());
120 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
123}

◆ setAsicDeadChannels()

void setAsicDeadChannels ( std::vector< int >  deadChannels)

Set vector of dead channel numbers.

Parameters
[in]deadChannelsASIC channel id.

Definition at line 98 of file ARICHBadChannels.cc.

99{
100 m_asicDeadChannels = deadChannels;
101 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), deadChannels.begin(), deadChannels.end());
102 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
105}

◆ setFebDeadChannels()

void setFebDeadChannels ( std::vector< int >  deadChannels)

Set vector of dead channel numbers.

Parameters
[in]deadChannelsFEB channel id.

Definition at line 88 of file ARICHBadChannels.cc.

89{
90 m_febDeadChannels = deadChannels;
91 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), deadChannels.begin(), deadChannels.end());
92 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
95}

◆ setFebSerial()

void setFebSerial ( const int  serial)
inline

Set FEB serial number.

Parameters
[in]serialFEB serial number.

Definition at line 71 of file ARICHBadChannels.h.

71{m_febSerial = serial; }

◆ setHapdBadChannel()

void setHapdBadChannel ( std::vector< int >  channels)

Set the list of bad channels.

Parameters
[in]channelsHAPD channel numbers.

Definition at line 38 of file ARICHBadChannels.cc.

39{
40 m_hapdBadChannels = channels;
41 m_hapdListOfBadChannels.insert(m_hapdListOfBadChannels.end(), channels.begin(), channels.end());
42 std::sort(m_hapdListOfBadChannels.begin(), m_hapdListOfBadChannels.end());
45}

◆ setHapdCutChannel()

void setHapdCutChannel ( std::vector< int >  channels)

Set the list of cut channels.

Parameters
[in]channelsHAPD channel numbers.

Definition at line 29 of file ARICHBadChannels.cc.

30{
31 m_hapdCutChannels = channels;
32 m_hapdListOfBadChannels.insert(m_hapdListOfBadChannels.end(), channels.begin(), channels.end());
33 std::sort(m_hapdListOfBadChannels.begin(), m_hapdListOfBadChannels.end());
36}

◆ setHapdSerial()

void setHapdSerial ( const std::string &  serial)
inline

Set HAPD serial number.

Parameters
[in]serialHAPD serial number.

Definition at line 59 of file ARICHBadChannels.h.

59{m_hapdSerial = serial; }

◆ setID()

void setID ( const int  id)
inline

Set global ID.

Parameters
[in]idGlobal ID.

Definition at line 47 of file ARICHBadChannels.h.

47{m_id = id; }

Member Data Documentation

◆ m_asicBadConnChannels

std::vector<int> m_asicBadConnChannels
private

List of channels with bad connections during the measurement.

Definition at line 341 of file ARICHBadChannels.h.

◆ m_asicBadLinChannels

std::vector<int> m_asicBadLinChannels
private

List of channels with bad linearity.

Definition at line 343 of file ARICHBadChannels.h.

◆ m_asicBadOffsetChannels

std::vector<int> m_asicBadOffsetChannels
private

List of channels with bad offset adjustment.

Definition at line 342 of file ARICHBadChannels.h.

◆ m_asicDeadChannels

std::vector<int> m_asicDeadChannels
private

List of dead channels on the ASIC chip.

Definition at line 340 of file ARICHBadChannels.h.

◆ m_febDeadChannels

std::vector<int> m_febDeadChannels
private

List of dead channels on the FEB.

Definition at line 338 of file ARICHBadChannels.h.

◆ m_febListOfBadChannels

std::vector<int> m_febListOfBadChannels
private

List of all bad channels on the FEB.

Definition at line 346 of file ARICHBadChannels.h.

◆ m_febSerial

int m_febSerial
private

serial number of the FEB

Definition at line 333 of file ARICHBadChannels.h.

◆ m_hapdBadChannels

std::vector<int> m_hapdBadChannels
private

List of bad (cut and dead channels) on the HAPD chip.

Definition at line 336 of file ARICHBadChannels.h.

◆ m_hapdCutChannels

std::vector<int> m_hapdCutChannels
private

List of cut channels on the HAPD chip.

Definition at line 335 of file ARICHBadChannels.h.

◆ m_hapdListOfBadChannels

std::vector<int> m_hapdListOfBadChannels
private

List of all bad channels on the HAPD.

Definition at line 345 of file ARICHBadChannels.h.

◆ m_hapdSerial

std::string m_hapdSerial
private

serial number of the sensor

Definition at line 332 of file ARICHBadChannels.h.

◆ m_id

int m_id
private

global ID

Definition at line 331 of file ARICHBadChannels.h.


The documentation for this class was generated from the following files: