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)),
116 sprintf(hrunname,
"badmodrun_%s",name.c_str());
118 sprintf(hruntitle,
"Number of bad modules %s",name.c_str());
163 std::vector<SiPixelQuality::disabledModuleType> bads = spq->getBadComponentList();
165 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
167 for(std::vector<SiPixelQuality::disabledModuleType>::const_iterator bc=bads.begin();bc!=bads.end();++bc) {
170 if(spq->IsModuleBad(bc->DetID)) ++nbad;
174 for(
int roc=1;roc<2*2*2*2*2*2*2+1;roc*=2) {
175 if((bc->BadRocs & roc)>0) ++nbad;
223 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
225 for(std::vector<SiPixelQuality::disabledModuleType>::const_iterator bc=bads.begin();bc!=bads.end();++bc) {
232 for(
int roc=1;roc<2*2*2*2*2*2*2+1;roc*=2) {
233 if((bc->BadRocs & roc)>0) ++nbad;
239 sprintf(runname,
"%d",iRun.
run());
240 LogDebug(
"AnalyzedRun") << name <<
" " << runname <<
" " << nbad;
void beginRun(const edm::Run &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
const unsigned int m_mode
void analyze(const edm::Event &, const edm::EventSetup &) override
T * make(const Args &...args) const
make new ROOT object
std::map< std::string, TH1F * > m_history
RunHistogramManager m_rhm
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
std::map< std::string, TProfile ** > m_badmodrun
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
SiPixelQualityHistory(const edm::ParameterSet &)
const unsigned int m_maxLS