75 std::vector<edm::ESGetToken<SiPixelQuality, SiPixelQualityRcd>>
m_spqTokens;
97 : m_rhm(consumesCollector()),
99 m_mode(iConfig.getUntrackedParameter<unsigned
int>(
"granularityMode",
Module)),
100 m_run(iConfig.getParameter<
bool>(
"runProcess")),
101 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin", 100)),
102 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction", 4)),
120 sprintf(hrunname,
"badmodrun_%s",
name.c_str());
122 sprintf(hruntitle,
"Number of bad modules %s",
name.c_str());
140 for (std::size_t iMon = 0; iMon !=
m_monitoredspq.size(); ++iMon) {
150 std::vector<SiPixelQuality::disabledModuleType> bads = spq.getBadComponentList();
152 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
154 for (
const auto& bc : bads) {
156 if (spq.IsModuleBad(bc.DetID))
160 for (
int roc = 1;
roc < 2 * 2 * 2 * 2 * 2 * 2 * 2 + 1;
roc *= 2) {
161 if ((bc.BadRocs &
roc) > 0)
177 for (std::size_t iMon = 0; iMon !=
m_monitoredspq.size(); ++iMon) {
198 std::vector<SiPixelQuality::disabledModuleType> bads = spq.getBadComponentList();
200 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
202 for (
const auto& bc : bads) {
204 if (spq.IsModuleBad(bc.DetID))
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;
static const std::string kSharedResource
void beginRun(const edm::Run &, const edm::EventSetup &) override
std::map< std::string, TH1F * > m_history
#define DEFINE_FWK_MODULE(type)
const unsigned int m_mode
void analyze(const edm::Event &, const edm::EventSetup &) override
void endRun(const edm::Run &, const edm::EventSetup &) override
RunHistogramManager m_rhm
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
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
bool getData(T &iHolder) const
std::vector< edm::ESGetToken< SiPixelQuality, SiPixelQualityRcd > > m_spqTokens
void beginRun(const edm::Run &iRun)
const unsigned int m_LSfrac
T * make(const Args &...args) const
make new ROOT object
std::map< std::string, TProfile ** > m_badmodrun
SiPixelQualityHistory(const edm::ParameterSet &)
const unsigned int m_maxLS