9 #include <arich/dbobjects/ARICHBadChannels.h>
18 if (i < m_hapdCutChannels.size())
return m_hapdCutChannels[i];
25 if (i < m_hapdBadChannels.size())
return m_hapdBadChannels[i];
31 m_hapdCutChannels = channels;
32 m_hapdListOfBadChannels.insert(m_hapdListOfBadChannels.end(), channels.begin(), channels.end());
33 std::sort(m_hapdListOfBadChannels.begin(), m_hapdListOfBadChannels.end());
34 m_hapdListOfBadChannels.erase(std::unique(m_hapdListOfBadChannels.begin(), m_hapdListOfBadChannels.end()),
35 m_hapdListOfBadChannels.end());
40 m_hapdBadChannels = channels;
41 m_hapdListOfBadChannels.insert(m_hapdListOfBadChannels.end(), channels.begin(), channels.end());
42 std::sort(m_hapdListOfBadChannels.begin(), m_hapdListOfBadChannels.end());
43 m_hapdListOfBadChannels.erase(std::unique(m_hapdListOfBadChannels.begin(), m_hapdListOfBadChannels.end()),
44 m_hapdListOfBadChannels.end());
50 if (i < m_hapdAllBadCHs.size())
return m_hapdAllBadCHs[i];
56 if (i < m_febDeadChannels.size())
return m_febDeadChannels[i];
63 if (i < m_asicDeadChannels.size())
return m_asicDeadChannels[i];
70 if (i < m_asicBadConnChannels.size())
return m_asicBadConnChannels[i];
77 if (i < m_asicBadOffsetChannels.size())
return m_asicBadOffsetChannels[i];
84 if (i < m_asicBadLinChannels.size())
return m_asicBadLinChannels[i];
90 m_febDeadChannels = deadChannels;
91 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), deadChannels.begin(), deadChannels.end());
92 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
93 m_febListOfBadChannels.erase(std::unique(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end()),
94 m_febListOfBadChannels.end());
100 m_asicDeadChannels = deadChannels;
101 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), deadChannels.begin(), deadChannels.end());
102 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
103 m_febListOfBadChannels.erase(std::unique(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end()),
104 m_febListOfBadChannels.end());
109 m_asicBadConnChannels = badConnChannels;
110 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), badConnChannels.begin(), badConnChannels.end());
111 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
112 m_febListOfBadChannels.erase(std::unique(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end()),
113 m_febListOfBadChannels.end());
118 m_asicBadOffsetChannels = badOffsetChannels;
119 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), badOffsetChannels.begin(), badOffsetChannels.end());
120 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
121 m_febListOfBadChannels.erase(std::unique(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end()),
122 m_febListOfBadChannels.end());
128 m_asicBadLinChannels = badLinChannels;
129 m_febListOfBadChannels.insert(m_febListOfBadChannels.end(), badLinChannels.begin(), badLinChannels.end());
130 std::sort(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end());
131 m_febListOfBadChannels.erase(std::unique(m_febListOfBadChannels.begin(), m_febListOfBadChannels.end()),
132 m_febListOfBadChannels.end());
138 if (i < m_febAllBadCHs.size())
return m_febAllBadCHs[i];
std::vector< int > getFebListOfBadChannels() const
Return a list of all bad 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 getAsicDeadChannel(unsigned int i) const
Return a channel number from the list of dead channels.
void setFebDeadChannels(std::vector< int > deadChannels)
Set vector of dead channel numbers.
int getFebListOfBadChannel(unsigned int i) const
Return a channel number from the list of channels with bad linearity.
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.
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.
std::vector< int > getHapdListOfBadChannels() const
Return a list of all bad channels.
void setAsicBadLinChannels(std::vector< int > badLinChannels)
Set vector of bad linearity channel numbers.
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.
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.
void setAsicDeadChannels(std::vector< int > deadChannels)
Set vector of dead channel numbers.
Abstract base class for different kinds of events.