27 qualityLabel_(pSet.getParameter<
std::
string>(
"StripQualityLabel"))
30 LogDebug(
"SiStripBadComponentInfo") <<
"SiStripBadComponentInfo::Deleting SiStripBadComponentInfo ";
36 LogDebug(
"SiStripBadComponentInfo") <<
"SiStripBadComponentInfo::Deleting SiStripBadComponentInfo ";
51 LogDebug (
"SiStripBadComponentInfo") <<
"SiStripBadComponentInfo:: Begining of Run";
60 LogDebug(
"SiStripBadComponentInfo") <<
"SiStripBadchannelInfoNew::readCondition : " 67 for (
size_t i=0;
i<BC.size();++
i){
68 int subdet=-999;
int component=-999;
83 if (topo->
tidSide(BC[
i].detid)==2) subdet = 4;
85 component = topo->
tidWheel(BC[i].detid);
96 if (topo->
tecSide(BC[
i].detid)==2) subdet = 2;
98 component=topo->
tecWheel(BC[i].detid);
111 uint32_t detid=rp->detid;
112 int subdet=-999;
int component=-999;
119 if (topo->
tidSide(detid)==2) subdet = 5;
126 if (topo->
tecSide(detid) == 2) subdet = 2;
133 for(
int it=0;it<sqrange.second-sqrange.first;it++){
145 LogDebug (
"SiStripBadComponentInfo") <<
"SiStripBadComponentInfo:: End of Run";
152 LogDebug (
"SiStripBadComponentInfo") <<
"SiStripBadComponentInfo::dqmEndRun";
167 ibooker.
cd(
"SiStrip");
168 strip_dir = ibooker.
pwd();
170 edm::LogInfo (
"SiStripBadComponentInfo") <<
"SiStripBadComponentInfo::bookBadComponentHistos ==> " << strip_dir <<
" " << ibooker.
pwd() << std::endl;
175 if (!strip_dir.empty()) ibooker.
setCurrentFolder(strip_dir+
"/EventInfo/BadComponentContents");
179 htitle =
"SiStrip Bad APVs";
184 hname =
"BadFiberMap";
185 htitle =
"SiStrip Bad Fibers";
190 hname =
"BadStripMap";
191 htitle =
"SiStrip Bad Strips";
196 std::vector<std::string>
names;
197 names.push_back(
"TECB");
198 names.push_back(
"TECF");
199 names.push_back(
"TIB");
200 names.push_back(
"TIDB");
201 names.push_back(
"TIDF");
202 names.push_back(
"TOB");
204 for (
unsigned int i=0;
i < names.size();
i++) {
216 auto index = std::make_pair(xbin,component);
235 auto index = std::make_pair(
i,
k);
void setBinContent(int binx, double content)
set content of bin (1-D)
const std::vector< BadComponent > & getBadComponentList() const
unsigned int tibLayer(const DetId &id) const
std::map< std::pair< int, int >, float > mapBadFiber
void createSummary(MonitorElement *me, const std::map< std::pair< int, int >, float > &map)
MonitorElement * badStripME_
#define DEFINE_FWK_MODULE(type)
~SiStripBadComponentInfo() override
void endRun(edm::Run const &, edm::EventSetup const &) override
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
unsigned int tidWheel(const DetId &id) const
Registry::const_iterator RegistryIterator
edm::ESHandle< SiStripQuality > siStripQuality_
const std::string names[nVars_]
void bookBadComponentHistos(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void fillBadComponentMaps(int xbin, int component, SiStripQuality::BadComponent &BC)
RegistryIterator getRegistryVectorEnd() const
unsigned int tidSide(const DetId &id) const
void setCurrentFolder(std::string const &fullpath)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
MonitorElement * badFiberME_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
ContainerIterator getDataVectorBegin() const
std::map< std::pair< int, int >, float > mapBadAPV
MonitorElement * book2D(Args &&...args)
std::string const & pwd()
std::string qualityLabel_
bool dirExists(std::string const &path)
void checkBadComponents(edm::EventSetup const &eSetup)
int getNbinsY() const
get # of bins in Y-axis
RegistryIterator getRegistryVectorBegin() const
edm::ESHandle< TrackerTopology > tTopoHandle_
std::pair< ContainerIterator, ContainerIterator > Range
void beginRun(edm::Run const &, edm::EventSetup const &) override
std::map< std::pair< int, int >, float > mapBadStrip
MonitorElement * badAPVME_
unsigned int tecWheel(const DetId &id) const
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
T const * product() const
unsigned long long m_cacheID_
data decode(const unsigned int &value) const
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const
SiStripBadComponentInfo(const edm::ParameterSet &ps)
Constructor.