97 m_mode(iConfig.getUntrackedParameter<unsigned
int>(
"granularityMode",
Module)),
98 m_run(iConfig.getParameter<
bool>(
"runProcess")),
99 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin", 100)),
100 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction", 4)),
114 sprintf(hrunname,
"badmodrun_%s", name.c_str());
116 sprintf(hruntitle,
"Number of bad modules %s", name.c_str());
147 std::vector<SiPixelQuality::disabledModuleType> bads = spq->getBadComponentList();
149 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
151 for (std::vector<SiPixelQuality::disabledModuleType>::const_iterator bc = bads.begin(); bc != bads.end(); ++bc) {
153 if (spq->IsModuleBad(bc->DetID))
157 for (
int roc = 1;
roc < 2 * 2 * 2 * 2 * 2 * 2 * 2 + 1;
roc *= 2) {
158 if ((bc->BadRocs &
roc) > 0)
199 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
201 for (std::vector<SiPixelQuality::disabledModuleType>::const_iterator bc = bads.begin(); bc != bads.end();
208 for (
int roc = 1;
roc < 2 * 2 * 2 * 2 * 2 * 2 * 2 + 1;
roc *= 2) {
209 if ((bc->BadRocs &
roc) > 0)
216 sprintf(runname,
"%d", iRun.
run());
217 LogDebug(
"AnalyzedRun") << name <<
" " << runname <<
" " << nbad;
void beginRun(const edm::Run &, const edm::EventSetup &) override
std::map< std::string, TH1F * > m_history
const unsigned int m_mode
void analyze(const edm::Event &, const edm::EventSetup &) override
T * make(const Args &...args) const
make new ROOT object
RunHistogramManager m_rhm
#define DEFINE_FWK_MODULE(type)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
~SiPixelQualityHistory() override
const std::vector< edm::ParameterSet > m_monitoredspq
const std::vector< disabledModuleType > getBadComponentList() const
bool IsModuleBad(const uint32_t &detid) const
void beginRun(const edm::Run &iRun)
const unsigned int m_LSfrac
std::map< std::string, TProfile ** > m_badmodrun
SiPixelQualityHistory(const edm::ParameterSet &)
const unsigned int m_maxLS