14 edm::LogVerbatim(
"rpcdeadchanneltest") <<
"[RPCDeadChannelTest]: Constructor";
31 std::vector<RPCDetId>& detIdVector,
33 for (
unsigned int i = 0;
i < meVector.size();
i++) {
36 if (meName.find(clientHistoName) != std::string::npos) {
44 edm::LogVerbatim(
"rpcdeadchanneltest") <<
"[RPCDeadChannelTest]:Client Operation";
58 float deadFraction = 0.0;
60 if (theOccupancyQReport) {
61 float qtresult = theOccupancyQReport->
getQTresult();
63 deadFraction = 1.0 - qtresult;
67 float emptyBins = 0.0;
74 deadFraction = emptyBins /
xBins;
101 : yBin = (detId.
ring() - 1) * 3 - detId.
roll() + 1);
120 for (
int i = -1 * limit;
i <=
limit;
i++) {
121 if (
i > -3 &&
i < 3) {
123 histoName <<
"DeadChannelFraction_Roll_vs_Sector_Wheel" <<
i;
124 DEADWheel[i + 2] = ibooker.
book2D(histoName.str().c_str(), histoName.str().c_str(), 12, 0.5, 12.5, 21, 0.5, 21.5);
126 for (
int x = 1;
x <= 12;
x++) {
127 for (
int y = 1;
y <= 21;
y++) {
146 histoName <<
"DeadChannelFraction_Ring_vs_Segment_Disk" <<
i;
148 histoName.str().c_str(),
void clientOperation() override
T getUntrackedParameter(std::string const &, T const &) const
~RPCDeadChannelTest() override
Destructor.
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &, std::string &) override
MonitorElement * DEADWheel[5]
void setCurrentFolder(std::string const &fullpath)
void beginJob(std::string &) override
void labelXAxisSegment(MonitorElement *myMe)
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to <qtname> (null pointer if QReport does not exist)
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
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)
void labelXAxisSector(MonitorElement *myMe)
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_
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
float getQTresult() const
get test result i.e. prob value
RPCDeadChannelTest(const edm::ParameterSet &ps)
Constructor.
MonitorElement * DEADDisk[10]
std::string globalFolder_
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.