98 m_monitoredspq(iConfig.getParameter<std::vector<edm::
ParameterSet> >(
"monitoredSiPixelQuality")),
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)),
103 m_history(),m_badmodrun()
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;
221 std::vector<SiPixelQuality::disabledModuleType> bads = spq->getBadComponentList();
223 LogDebug(
"BadComponents") << bads.size() <<
" bad components found";
225 for(std::vector<SiPixelQuality::disabledModuleType>::const_iterator bc=bads.begin();bc!=bads.end();++bc) {
228 if(spq->IsModuleBad(bc->DetID)) ++nbad;
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;
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
const unsigned int m_mode
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
std::map< std::string, TH1F * > m_history
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)
std::map< std::string, TProfile ** > m_badmodrun
const std::vector< edm::ParameterSet > m_monitoredspq
void beginRun(const edm::Run &iRun)
const unsigned int m_LSfrac
T * make() const
make new ROOT object
SiPixelQualityHistory(const edm::ParameterSet &)
const unsigned int m_maxLS