Belle II Software  release-08-01-10
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 
13 namespace Belle2 {
23  class ARICHBadChannels: public TObject {
24  public:
25 
31 
36 
40  int getID() const {return m_id; }
41 
45  void setID(const int id) {m_id = id; }
46 
50  std::string getHapdSerial() const {return m_hapdSerial; }
51 
55  void setHapdSerial(const std::string& serial) {m_hapdSerial = serial; }
56 
60  int getFebSerial() const {return m_febSerial; }
61 
65  void setFebSerial(const int serial) {m_febSerial = serial; }
66 
72  int getHapdCutChannel(unsigned int i) const;
73 
78  std::vector<int> getHapdCutChannels() const {return m_hapdCutChannels; }
79 
84  void appendHapdCutChannel(int channel) {m_hapdCutChannels.push_back(channel); }
85 
90  void setHapdCutChannel(std::vector<int> channels);
91 
96  int getHapdCutChannelsSize() const {return m_hapdCutChannels.size(); }
97 
103  int getHapdBadChannel(unsigned int i) const;
104 
109  std::vector<int> getHapdBadChannels() const {return m_hapdBadChannels; }
110 
115  void appendHapdBadChannel(int ichannel) { m_hapdBadChannels.push_back(ichannel); }
116 
121  void setHapdBadChannel(std::vector<int> channels);
122 
127  int getHapdBadChannelsSize() const {return m_hapdBadChannels.size();}
128 
134  int getHapdListOfBadChannel(unsigned int i) const;
135 
140  std::vector<int> getHapdListOfBadChannels() const { return m_hapdListOfBadChannels; }
141 
147 
153  int getFebDeadChannel(unsigned int i) const;
154 
159  std::vector<int> getFebDeadChannels() const {return m_febDeadChannels; }
160 
165  void appendFebDeadChannel(int channel) {m_febDeadChannels.push_back(channel); }
166 
171  void setFebDeadChannels(std::vector<int> deadChannels);
172 
177  int getFebDeadChannelsSize() const {return m_febDeadChannels.size();}
178 
184  int getAsicDeadChannel(unsigned int i) const;
185 
190  std::vector<int> getAsicDeadChannels() const {return m_asicDeadChannels; }
191 
196  void appendAsicDeadChannel(int channel) {m_asicDeadChannels.push_back(channel); }
197 
202  void setAsicDeadChannels(std::vector<int> deadChannels);
203 
208  int getAsicDeadChannelsSize() const {return m_asicDeadChannels.size();}
209 
215  int getAsicBadConnChannel(unsigned int i) const;
216 
221  std::vector<int> getAsicBadConnChannels() const {return m_asicBadConnChannels; }
222 
227  void appendAsicBadConnChannel(int ichannel) { m_asicBadConnChannels.push_back(ichannel); }
228 
234 
239  void setAsicBadConnChannels(std::vector<int> badConnChannels);
240 
246  int getAsicBadOffsetChannel(unsigned int i) const;
247 
252  std::vector<int> getAsicBadOffsetChannels() const {return m_asicBadOffsetChannels; }
253 
258  void appendAsicBadOffsetChannel(int ichannel) { m_asicBadOffsetChannels.push_back(ichannel); }
259 
265 
270  void setAsicBadOffsetChannels(std::vector<int> badOffsetChannels);
271 
277  int getAsicBadLinChannel(unsigned int i) const;
278 
283  std::vector<int> getAsicBadLinChannels() const {return m_asicBadLinChannels; }
284 
289  void appendAsicBadLinChannel(int ichannel) { m_asicBadLinChannels.push_back(ichannel); }
290 
295  int getAsicBadLinChannelsSize() const {return m_asicBadLinChannels.size();}
296 
301  void setAsicBadLinChannels(std::vector<int> badLinChannels);
302 
308  int getFebListOfBadChannel(unsigned int i) const;
309 
314  std::vector<int> getFebListOfBadChannels() const { return m_febListOfBadChannels; }
315 
321 
322 
323  private:
324  int m_id;
325  std::string m_hapdSerial;
328  std::vector<int> m_hapdCutChannels;
329  std::vector<int> m_hapdBadChannels;
331  std::vector<int> m_febDeadChannels;
333  std::vector<int> m_asicDeadChannels;
334  std::vector<int> m_asicBadConnChannels;
335  std::vector<int> m_asicBadOffsetChannels;
336  std::vector<int> m_asicBadLinChannels;
338  std::vector<int> m_hapdListOfBadChannels;
339  std::vector<int> m_febListOfBadChannels;
343  };
345 } // end namespace Belle2
Contains manufacturer data of one of the 4 photo sensors chips.
std::vector< int > m_asicDeadChannels
List of dead channels on the ASIC chip.
std::vector< int > getFebListOfBadChannels() const
Return a list of all bad channels.
int getAsicBadOffsetChannelsSize() const
Return size of the list of channels with bad offset adjustment.
void appendAsicBadConnChannel(int ichannel)
Add a channel number to the list of channels with bad connections.
std::string m_hapdSerial
serial number of the sensor
std::vector< int > m_hapdCutChannels
List of cut channels on the HAPD chip.
void appendAsicBadOffsetChannel(int ichannel)
Add a channel number to the list of channels with bad offset adjustment.
std::vector< int > getHapdCutChannels() const
Return a list of cut channels.
void setHapdBadChannel(std::vector< int > channels)
Set the list of bad channels.
int getAsicBadConnChannel(unsigned int i) const
Return a channel number from the list of channels with bad connections.
int getFebDeadChannelsSize() const
Return size of the list of dead channels.
ARICHBadChannels()
Default constructor.
std::vector< int > getAsicBadConnChannels() const
Return a list of channels with bad connections.
void setHapdSerial(const std::string &serial)
Set Hapd Serial number.
int getAsicDeadChannel(unsigned int i) const
Return a channel number from the list of dead channels.
int getFebListOfBadChannelsSize() const
Return size of the list of all bad channels.
void appendHapdBadChannel(int ichannel)
Add a channel number to the list of cut channels.
int m_febSerial
serial number of the FEB
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
Return a channel number from the list of channels with bad linearity.
std::vector< int > getAsicBadOffsetChannels() const
Return a list of channels with bad offset adjustment.
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
Return size of the list of cut channels.
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.
std::vector< int > getAsicDeadChannels() const
Return a list of dead channels.
int getAsicDeadChannelsSize() const
Return size of the list of dead channels.
int getID() const
Return global ID.
std::string getHapdSerial() const
Return Hapd Serial number.
void setFebSerial(const int serial)
Set Hapd Serial number.
int getHapdCutChannel(unsigned int i) const
Return a channel number from the list of cut channels.
int getHapdListOfBadChannel(unsigned int i) const
Return a channel number from the list of channels with bad linearity.
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
Return size of the list of channels with bad connections.
std::vector< int > getHapdListOfBadChannels() const
Return a list of all bad channels.
std::vector< int > getAsicBadLinChannels() const
Return a list of channels with bad linearity.
void appendAsicBadLinChannel(int ichannel)
Add a channel number to the list of channels with bad linearity.
int getHapdCutChannelsSize() const
Return size of the list of cut channels.
void setAsicBadLinChannels(std::vector< int > badLinChannels)
Set vector of bad linearity channel numbers.
int getFebSerial() const
Return FEB Serial number.
void appendFebDeadChannel(int channel)
Add a channel number to the list of dead channels.
int getAsicBadLinChannelsSize() const
Return size of the list of channels with bad linearity.
std::vector< int > getHapdBadChannels() const
Return a list of bad channels.
std::vector< int > m_asicBadLinChannels
List of channels with bad linearity.
int getHapdBadChannel(unsigned int i) const
Return a channel number from the list of cut channels.
void setAsicBadOffsetChannels(std::vector< int > badOffsetChannels)
Set vector of bad offset channel numbers.
int getAsicBadLinChannel(unsigned int i) const
Return 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.
std::vector< int > getFebDeadChannels() const
Return a list of dead channels.
int getAsicBadOffsetChannel(unsigned int i) const
Return a channel number from the list of channels with bad offset adjustment.
int getFebDeadChannel(unsigned int i) const
Return a channel number from the list of dead channels.
std::vector< int > m_hapdListOfBadChannels
List of all bad channels on the HAPD.
int getHapdListOfBadChannelsSize() const
Return 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.