13 edm::LogVerbatim(
"rpcdeadchanneltest") <<
"[RPCDeadChannelTest]: Constructor";
28 std::vector<RPCDetId>& detIdVector,
30 for (
unsigned int i = 0;
i < meVector.size();
i++) {
33 if (meName.find(clientHistoName) != std::string::npos) {
41 edm::LogVerbatim(
"rpcdeadchanneltest") <<
"[RPCDeadChannelTest]:Client Operation";
55 float deadFraction = 0.0;
57 if (theOccupancyQReport) {
58 float qtresult = theOccupancyQReport->
getQTresult();
60 deadFraction = 1.0 - qtresult;
64 float emptyBins = 0.0;
65 for (
int x = 1;
x <= xBins;
x++) {
71 deadFraction = emptyBins / xBins;
98 : yBin = (detId.
ring() - 1) * 3 - detId.
roll() + 1);
109 std::stringstream histoName;
115 for (
int i = -1 * limit;
i <=
limit;
i++) {
116 if (
i > -3 &&
i < 3) {
118 histoName <<
"DeadChannelFraction_Roll_vs_Sector_Wheel" <<
i;
122 for (
int x = 1;
x <= 12;
x++) {
123 for (
int y = 1;
y <= 21;
y++) {
140 histoName <<
"DeadChannelFraction_Ring_vs_Segment_Disk" <<
i;
void clientOperation() override
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &, std::string &) override
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * DEADWheel[5]
void beginJob(std::string &) override
const MonitorElementData::QReport * getQReport(const std::string &qtname) const
get QReport corresponding to <qtname> (null pointer if QReport does not exist)
virtual int getNbinsX() const
get # of bins in X-axis
void myBooker(DQMStore::IBooker &) override
virtual double getBinContent(int binx) const
get content of bin (1-D)
std::vector< MonitorElement * > myOccupancyMe_
int detId2RollNr(const RPCDetId &_id)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< RPCDetId > myDetIds_
static MonitorElement * bookBarrel(IBooker &booker, const int wheel, const std::string &prefix, const std::string &title, const bool useRollInfo)
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
float getQTresult() const
get test result i.e. prob value
RPCDeadChannelTest(const edm::ParameterSet &ps)
MonitorElement * DEADDisk[10]
std::string globalFolder_
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.