26 qualityLabel_(pSet.getParameter<
std::
string>(
"StripQualityLabel"))
29 LogDebug(
"SiStripBadComponentInfo") <<
"SiStripBadComponentInfo::Deleting SiStripBadComponentInfo ";
35 <<
"SiStripBadComponentInfo::Deleting SiStripBadComponentInfo ";
45 <<
"SiStripBadComponentInfo:: Begining of Run";
56 for (
size_t i=0;
i<BC.size();++
i){
57 int subdet=-999;
int component=-999;
77 component = topo->
tidWheel(BC[i].detid);
92 component = topo->
tecWheel(BC[i].detid);
107 uint32_t detid = rp->detid;
109 int component = -999;
136 for (
int it = 0; it < sqrange.second - sqrange.first; it++) {
138 float val = (
mapBadStrip.find(std::make_pair(subdet, component)) !=
140 mapBadStrip.at(std::make_pair(subdet, component)) :
152 LogDebug(
"SiStripBadComponentInfo") <<
"SiStripBadComponentInfo:: End of Run";
160 LogDebug(
"SiStripBadComponentInfo") <<
"SiStripBadComponentInfo::dqmEndRun";
178 ibooker.
cd(
"SiStrip");
179 strip_dir = ibooker.
pwd();
182 <<
"SiStripBadComponentInfo::bookBadComponentHistos ==> " << strip_dir
183 <<
" " << ibooker.
pwd() << std::endl;
184 if (!strip_dir.empty())
190 if (!strip_dir.empty())
195 htitle =
"SiStrip Bad APVs";
201 hname =
"BadFiberMap";
202 htitle =
"SiStrip Bad Fibers";
208 hname =
"BadStripMap";
209 htitle =
"SiStrip Bad Strips";
215 std::vector<std::string>
names;
216 names.push_back(
"TECB");
217 names.push_back(
"TECF");
218 names.push_back(
"TIB");
219 names.push_back(
"TIDB");
220 names.push_back(
"TIDF");
221 names.push_back(
"TOB");
223 for (
unsigned int i = 0;
i < names.size();
i++) {
236 auto index = std::make_pair(xbin, component);
262 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)
SiStripBadComponentInfo(edm::ParameterSet const &ps)
Constructor.
MonitorElement * badStripME_
~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)
#define DEFINE_FWK_MODULE(type)
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) ...
void fillBadComponentMaps(int xbin, int component, SiStripQuality::BadComponent const &BC)
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
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
data decode(const unsigned int &value) const
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const