Belle II Software development
ARICHBadChannels.h
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#pragma once
10#include <TObject.h>
11#include <vector>
12
13namespace Belle2 {
22 class ARICHBadChannels: public TObject {
23
24 public:
25
31
36
41 int getID() const {return m_id; }
42
47 void setID(const int id) {m_id = id; }
48
53 std::string getHapdSerial() const {return m_hapdSerial; }
54
59 void setHapdSerial(const std::string& serial) {m_hapdSerial = serial; }
60
65 int getFebSerial() const {return m_febSerial; }
66
71 void setFebSerial(const int serial) {m_febSerial = serial; }
72
78 int getHapdCutChannel(unsigned int i) const;
79
84 std::vector<int> getHapdCutChannels() const {return m_hapdCutChannels; }
85
90 void appendHapdCutChannel(int channel) {m_hapdCutChannels.push_back(channel); }
91
96 void setHapdCutChannel(std::vector<int> channels);
97
102 int getHapdCutChannelsSize() const {return m_hapdCutChannels.size(); }
103
109 int getHapdBadChannel(unsigned int i) const;
110
115 std::vector<int> getHapdBadChannels() const {return m_hapdBadChannels; }
116
121 void appendHapdBadChannel(int channel) { m_hapdBadChannels.push_back(channel); }
122
127 void setHapdBadChannel(std::vector<int> channels);
128
133 int getHapdBadChannelsSize() const {return m_hapdBadChannels.size();}
134
140 int getHapdListOfBadChannel(unsigned int i) const;
141
146 std::vector<int> getHapdListOfBadChannels() const { return m_hapdListOfBadChannels; }
147
153
159 int getFebDeadChannel(unsigned int i) const;
160
165 std::vector<int> getFebDeadChannels() const {return m_febDeadChannels; }
166
171 void appendFebDeadChannel(int channel) {m_febDeadChannels.push_back(channel); }
172
177 void setFebDeadChannels(std::vector<int> deadChannels);
178
183 int getFebDeadChannelsSize() const {return m_febDeadChannels.size();}
184
190 int getAsicDeadChannel(unsigned int i) const;
191
196 std::vector<int> getAsicDeadChannels() const {return m_asicDeadChannels; }
197
202 void appendAsicDeadChannel(int channel) {m_asicDeadChannels.push_back(channel); }
203
208 void setAsicDeadChannels(std::vector<int> deadChannels);
209
214 int getAsicDeadChannelsSize() const {return m_asicDeadChannels.size();}
215
221 int getAsicBadConnChannel(unsigned int i) const;
222
227 std::vector<int> getAsicBadConnChannels() const {return m_asicBadConnChannels; }
228
233 void appendAsicBadConnChannel(int channel) { m_asicBadConnChannels.push_back(channel); }
234
239 void setAsicBadConnChannels(std::vector<int> badConnChannels);
240
246
253 int getAsicBadOffsetChannel(unsigned int i) const;
254
259 std::vector<int> getAsicBadOffsetChannels() const {return m_asicBadOffsetChannels; }
260
265 void appendAsicBadOffsetChannel(int channel) { m_asicBadOffsetChannels.push_back(channel); }
266
271 void setAsicBadOffsetChannels(std::vector<int> badOffsetChannels);
272
278
284 int getAsicBadLinChannel(unsigned int i) const;
285
290 std::vector<int> getAsicBadLinChannels() const {return m_asicBadLinChannels; }
291
296 void appendAsicBadLinChannel(int channel) { m_asicBadLinChannels.push_back(channel); }
297
302 void setAsicBadLinChannels(std::vector<int> badLinChannels);
303
309
315 int getFebListOfBadChannel(unsigned int i) const;
316
321 std::vector<int> getFebListOfBadChannels() const { return m_febListOfBadChannels; }
322
328
329
330 private:
331 int m_id;
332 std::string m_hapdSerial;
335 std::vector<int> m_hapdCutChannels;
336 std::vector<int> m_hapdBadChannels;
338 std::vector<int> m_febDeadChannels;
340 std::vector<int> m_asicDeadChannels;
341 std::vector<int> m_asicBadConnChannels;
342 std::vector<int> m_asicBadOffsetChannels;
343 std::vector<int> m_asicBadLinChannels;
345 std::vector<int> m_hapdListOfBadChannels;
346 std::vector<int> m_febListOfBadChannels;
350 };
352} // end namespace Belle2
ARICH bad channels.
std::vector< int > m_asicDeadChannels
List of dead channels on the ASIC chip.
int getAsicBadOffsetChannelsSize() const
Get size of the list of channels with bad offset adjustment.
std::vector< int > getFebListOfBadChannels() const
Get a list of all bad channels.
std::vector< int > getAsicBadOffsetChannels() const
Get a list of channels with bad offset adjustment.
std::string m_hapdSerial
serial number of the sensor
std::vector< int > m_hapdCutChannels
List of cut channels on the HAPD chip.
void setHapdBadChannel(std::vector< int > channels)
Set the list of bad channels.
int getAsicBadConnChannel(unsigned int i) const
Get a channel number from the list of channels with bad connections.
int getFebDeadChannelsSize() const
Get size of the list of dead channels.
ARICHBadChannels()
Default constructor.
std::vector< int > getHapdCutChannels() const
Get a list of cut channels.
void setHapdSerial(const std::string &serial)
Set HAPD serial number.
int getAsicDeadChannel(unsigned int i) const
Get a channel number from the list of dead channels.
int getFebListOfBadChannelsSize() const
Get size of the list of all bad channels.
int m_febSerial
serial number of the FEB
void appendAsicBadConnChannel(int channel)
Add a channel number to the list of channels with bad connections.
std::vector< int > getFebDeadChannels() const
Get a list of dead channels.
std::vector< int > m_asicBadOffsetChannels
List of channels with bad offset adjustment.
void setFebDeadChannels(std::vector< int > deadChannels)
Set vector of dead channel numbers.
void setID(const int id)
Set global ID.
int getFebListOfBadChannel(unsigned int i) const
Get a channel number from the list of channels with bad linearity.
std::vector< int > m_febListOfBadChannels
List of all bad channels on the FEB.
std::vector< int > m_febDeadChannels
List of dead channels on the FEB.
int getHapdBadChannelsSize() const
Get size of the list of cut channels.
std::vector< int > getAsicBadConnChannels() const
Get a list of channels with bad connections.
void setHapdCutChannel(std::vector< int > channels)
Set the list of cut channels.
void setAsicBadConnChannels(std::vector< int > badConnChannels)
Set vector of bad connection channel numbers.
void appendHapdBadChannel(int channel)
Add a channel number to the list of bad channels.
std::vector< int > getAsicDeadChannels() const
Get a list of dead channels.
int getAsicDeadChannelsSize() const
Get size of the list of dead channels.
int getID() const
Get global ID.
std::string getHapdSerial() const
Get HAPD 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.
int getHapdListOfBadChannel(unsigned int i) const
Get a channel number from the list of bad channels.
void appendAsicDeadChannel(int channel)
Add a channel number to the list of dead channels.
ClassDef(ARICHBadChannels, 1)
ClassDef.
void appendHapdCutChannel(int channel)
Add a channel number to the list of cut channels.
std::vector< int > m_asicBadConnChannels
List of channels with bad connections during the measurement.
int getAsicBadConnChannelsSize() const
Get size of the list of channels with bad connections.
void appendAsicBadLinChannel(int channel)
Add a channel number to the list of channels with bad linearity.
std::vector< int > getHapdListOfBadChannels() const
Get a list of all bad channels.
std::vector< int > getAsicBadLinChannels() const
Get a list of channels with bad linearity.
int getHapdCutChannelsSize() const
Get size of the list of cut channels.
void setAsicBadLinChannels(std::vector< int > badLinChannels)
Set vector of bad linearity channel numbers.
std::vector< int > getHapdBadChannels() const
Get a list of bad channels.
int getFebSerial() const
Get FEB serial number.
void appendFebDeadChannel(int channel)
Add a channel number to the list of dead channels.
int getAsicBadLinChannelsSize() const
Get size of the list of channels with bad linearity.
std::vector< int > m_asicBadLinChannels
List of channels with bad linearity.
int getHapdBadChannel(unsigned int i) const
Get a channel number from the list of bad channels.
void setAsicBadOffsetChannels(std::vector< int > badOffsetChannels)
Set vector of bad offset channel numbers.
int getAsicBadLinChannel(unsigned int i) const
Get a channel number from the list of channels with bad linearity.
std::vector< int > m_hapdBadChannels
List of bad (cut and dead channels) on the HAPD chip.
int getAsicBadOffsetChannel(unsigned int i) const
Get a channel number from the list of channels with bad offset adjustment.
int getFebDeadChannel(unsigned int i) const
Get a channel number from the list of dead channels.
void appendAsicBadOffsetChannel(int channel)
Add a channel number to the list of channels with bad offset adjustment.
std::vector< int > m_hapdListOfBadChannels
List of all bad channels on the HAPD.
int getHapdListOfBadChannelsSize() const
Get size of the list of all bad channels.
void setAsicDeadChannels(std::vector< int > deadChannels)
Set vector of dead channel numbers.
Abstract base class for different kinds of events.