63 std::stringstream histoName;
67 for (
int w = -2;
w<= 2;
w++ ){
71 histoName<<
"RPCNoisyStrips_Distribution_Wheel"<<
w;
81 histoName<<
"RPCStripsDeviation_Distribution_Wheel"<<
w;
87 DEVDWheel[w+2] =
dbe_->
book1D(histoName.str().c_str(), histoName.str().c_str(), 101, -0.01, 10.01);
91 histoName<<
"RPCNoisyStrips_Roll_vs_Sector_Wheel"<<
w;
98 NOISEWheel[w+2] =
dbe_->
book2D(histoName.str().c_str(), histoName.str().c_str() , 12, 0.5, 12.5, 21, 0.5, 21.5);
107 if (d == 0)
continue;
114 histoName<<
"RPCNoisyStrips_Distribution_Disk"<<d;
124 histoName<<
"RPCStripsDeviation_Distribution_Disk"<<d;
134 histoName<<
"RPCNoisyStrips_Ring_vs_Segment_Disk"<<d;
153 for (
unsigned int i = 0 ;
i<meVector.size();
i++){
158 tagList = meVector[
i]->getTags();
159 DQMNet::TagList::iterator tagItr = tagList.begin();
161 while (tagItr != tagList.end() && !
flag ) {
183 std::stringstream meName;
210 int entries = (int) myMe -> getEntries();
211 int bins = (int) myMe ->getNbinsX();
213 std::vector<float> myvector;
216 for(
int xbin =1 ; xbin <= bins ; xbin++) {
218 if (binContent > 0) myvector.push_back(binContent);
224 if (myvector.size()>0) {
225 float ymean = entries/myvector.size();
226 for(
unsigned int i=0;
i<myvector.size();
i++) {
227 float deviation = myvector[
i]/ymean;
228 if(deviation > 3.5) noisyStrips++;
229 if(deviation > 5) deviation = 5;
230 if(DEVD) DEVD->
Fill(deviation);
247 if(NOISED) NOISED ->
Fill(noisyStrips);
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
void setBinContent(int binx, double content)
set content of bin (1-D)
void fillGlobalME(RPCDetId &, MonitorElement *, edm::EventSetup const &)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void beginRun(const edm::Run &, const edm::EventSetup &)
void labelXAxisSegment(MonitorElement *myMe)
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
MonitorElement * NOISEDDisk[10]
std::string globalFolder_
std::vector< RPCDetId > myDetIds_
RPCNoisyStripTest(const edm::ParameterSet &ps)
void clientOperation(edm::EventSetup const &c)
void analyze(const edm::Event &iEvent, const edm::EventSetup &c)
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
std::vector< MonitorElement * > myOccupancyMe_
MonitorElement * NOISEDWheel[5]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void removeElement(const std::string &name)
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &)
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)
void endRun(const edm::Run &, const edm::EventSetup &)
virtual ~RPCNoisyStripTest()
void beginJob(DQMStore *, std::string)
MonitorElement * DEVDWheel[5]
int detId2RollNr(const RPCDetId &_id)
std::vector< uint32_t > TagList
MonitorElement * NOISEDisk[10]
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
double getBinContent(int binx) const
get content of bin (1-D)
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
MonitorElement * DEVDDisk[10]
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
MonitorElement * NOISEWheel[5]
void setCurrentFolder(const std::string &fullpath)
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.