92 _monitoredssq(iConfig.getParameter<std::vector<edm::
ParameterSet> >(
"monitoredSiStripQuality")),
93 _mode(iConfig.getUntrackedParameter<unsigned int>(
"granularityMode",
Module)),
102 std::string
name = ps->getParameter<std::string>(
"name");
130 edm::LogInfo(
"EventProcessing") <<
"event being processed";
141 std::string
name = ps->getParameter<std::string>(
"name");
142 std::string
label = ps->getParameter<std::string>(
"ssqLabel");
148 std::vector<SiStripQuality::BadComponent> bads = ssq->getBadComponentList();
150 edm::LogInfo(
"Debug") << bads.size() <<
" bad components found";
154 for(std::vector<SiStripQuality::BadComponent>::const_iterator bc=bads.begin();bc!=bads.end();++bc) {
157 if(bc->BadModule) ++nbad;
160 for(
int fiber=1;fiber<5;fiber*=2) {
161 if((bc->BadFibers & fiber)>0) ++nbad;
165 for(
int apv=1;apv<33;apv*=2) {
166 if((bc->BadApvs & apv)>0) ++nbad;
174 sprintf(runname,
"%d",iRun.
run());
175 edm::LogInfo(
"Debug") << name <<
" " << runname <<
" " << nbad;
#define DEFINE_FWK_MODULE(type)
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
SiStripQualityHistory(const edm::ParameterSet &)
std::map< std::string, TH1F * > _history
const std::vector< edm::ParameterSet > _monitoredssq
virtual void endRun(const edm::Run &, const edm::EventSetup &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
T * make() const
make new ROOT object