15#include <fairlogger/Logger.h>
30 for (
short i = 0;
i < 60;
i++) {
38 for (
short i = 0;
i < 16;
i++) {
55 LOG(error) <<
"provide histogram to be filled";
58 const short MAXX = 128,
60 if (
h->GetNbinsX() != MAXX ||
h->GetNbinsY() != MAXZ) {
61 LOG(error) <<
"Wrong dimentions of input histogram:" <<
h->GetNbinsX() <<
"," <<
h->GetNbinsY() <<
" instead of " << MAXX <<
"," << MAXZ;
67 short relid[3] = {module, 1, 1};
69 for (
short ix = 1; ix <= MAXX; ix++) {
71 for (
short iz = 1; iz <= MAXZ; iz++) {
75 h->SetBinContent(ix, iz, 1);
85 stream <<
"Number of bad cells: " << mBadCells.count() <<
"\n";
86 for (
unsigned int cellID = 0; cellID < mBadCells.size(); cellID++) {
87 if (mBadCells.test(cellID)) {
Class for time synchronization of RawReader instances.
CCDB container for bad (masked) channels in CPV.
void getHistogramRepresentation(short mod, TH2 *h) const
Convert map into 2D histogram representation.
void PrintStream(std::ostream &stream) const
Print bad channels on a given stream.
bool isChannelGood(unsigned short channelID) const
Get the status of a certain cell.
BadChannelMap()=default
Constructor.
static bool relToAbsNumbering(const short *relId, unsigned short &absId)
std::ostream & operator<<(std::ostream &in, const BadChannelMap &bcm)
Printing bad channel map on the stream.
FIXME: do not use data model tables.
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"