15#include <fairlogger/Logger.h>
27 for (
short i = 0;
i < 56;
i++) {
35 for (
short i = 0;
i < 16;
i++) {
52 if (module < 1 || module > 4) {
53 LOG(error) <<
"module " <<
module << "does not exist";
57 LOG(error) <<
"provide histogram to be filled";
59 if (
h->GetNbinsX() != MAXX ||
h->GetNbinsY() != MAXZ) {
60 LOG(error) <<
"Wrong dimentions of input histogram:" <<
h->GetNbinsX() <<
"," <<
h->GetNbinsY() <<
" instead of " << MAXX <<
"," << MAXZ;
65 char relid[3] = {module, 1, 1};
71 for (
char ix = xmin; ix <= MAXX; ix++) {
73 for (
char iz = 1; iz <= MAXZ; iz++) {
77 h->SetBinContent(ix, iz, 1);
87 stream <<
"Number of bad cells: " << mBadCells.count() <<
"\n";
88 for (std::size_t cellID = 0; cellID < mBadCells.size(); cellID++) {
89 if (mBadCells.test(cellID)) {
90 stream << cellID + OFFSET <<
"\n";
Class for time synchronization of RawReader instances.
CCDB container for bad (masked) channels in PHOS.
void getHistogramRepresentation(char mod, TH2 *h) const
Convert map into 2D histogram representation.
bool isChannelGood(short channelID) const
Get the status of a certain cell.
void PrintStream(std::ostream &stream) const
Print bad channels on a given stream.
BadChannelsMap()=default
Constructor.
static bool relToAbsNumbering(const char *RelId, short &AbsId)
std::ostream & operator<<(std::ostream &in, const BadChannelsMap &bcm)
Printing bad channel map on the stream.
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"