18 edm::LogVerbatim (
"rpcdeadchanneltest") <<
"[RPCDeadChannelTest]: Constructor";
30 edm::LogVerbatim (
"rpcdeadchanneltest") <<
"[RPCDeadChannelTest]: Begin Job";
46 for (
unsigned int i = 0 ;
i<meVector.size();
i++){
51 tagList = meVector[
i]->getTags();
52 DQMNet::TagList::iterator tagItr = tagList.begin();
54 while (tagItr != tagList.end() && !flag ) {
76 edm::LogVerbatim (
"rpcdeadchanneltest") <<
"[RPCDeadChannelTest]:Client Operation";
88 if (! myMe )
continue;
92 float deadFraction = 0.0 ;
94 if(theOccupancyQReport) {
96 float qtresult = theOccupancyQReport->
getQTresult();
98 deadFraction = 1.0 - qtresult;
102 float emptyBins = 0.0;
103 for(
int x = 1 ;
x<= xBins ;
x++){
if(myMe->
getBinContent(
x) == 0 ) {emptyBins++;}}
104 if (xBins != 0){ deadFraction = emptyBins/xBins;}
144 std::stringstream histoName;
151 for (
int i = -1 * limit;
i<=
limit;
i++ ){
154 histoName<<
"DeadChannelFraction_Roll_vs_Sector_Wheel"<<
i;
160 DEADWheel[i+2] =
dbe_->
book2D(histoName.str().c_str(), histoName.str().c_str(), 12, 0.5, 12.5, 21, 0.5, 21.5);
162 for (
int x = 1;
x<=12;
x++)
163 for(
int y=1;
y<=21;
y++)
176 histoName<<
"DeadChannelFraction_Ring_vs_Segment_Disk"<<
i;
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to <qtname> (null pointer if QReport does not exist)
void setBinContent(int binx, double content)
set content of bin (1-D)
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &)
MonitorElement * DEADWheel[5]
void labelXAxisSegment(MonitorElement *myMe)
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
void endRun(const edm::Run &, const edm::EventSetup &)
virtual ~RPCDeadChannelTest()
Destructor.
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
void removeElement(const std::string &name)
unsigned int offset(bool)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void labelXAxisSector(MonitorElement *myMe)
std::vector< MonitorElement * > myOccupancyMe_
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
End Lumi Block.
int detId2RollNr(const RPCDetId &_id)
std::vector< uint32_t > TagList
void beginJob(DQMStore *, std::string)
BeginJob.
std::vector< RPCDetId > myDetIds_
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
float getQTresult(void) const
get test result i.e. prob value
double getBinContent(int binx) const
get content of bin (1-D)
void beginRun(const edm::Run &, const edm::EventSetup &)
int getNbinsX(void) const
get # of bins in X-axis
RPCDeadChannelTest(const edm::ParameterSet &ps)
Constructor.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
MonitorElement * DEADDisk[10]
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Begin Lumi block.
void analyze(const edm::Event &, const edm::EventSetup &)
Analyze.
std::string globalFolder_
void setCurrentFolder(const std::string &fullpath)
void clientOperation(edm::EventSetup const &c)
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.