50 std::stringstream histoName;
54 for (
int w = -2;
w<= 2;
w++ ){
58 histoName<<
"RPCNoisyStrips_Distribution_Wheel"<<
w;
59 NOISEDWheel[w+2] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 6, -0.5, 5.5);
63 histoName<<
"RPCStripsDeviation_Distribution_Wheel"<<
w;
64 DEVDWheel[w+2] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 101, -0.01, 10.01);
68 histoName<<
"RPCNoisyStrips_Roll_vs_Sector_Wheel"<<
w;
69 NOISEWheel[w+2] = ibooker.
book2D(histoName.str().c_str(), histoName.str().c_str() , 12, 0.5, 12.5, 21, 0.5, 21.5);
85 histoName<<
"RPCNoisyStrips_Distribution_Disk"<<
d;
90 histoName<<
"RPCStripsDeviation_Distribution_Disk"<<
d;
91 DEVDDisk[d+
offset] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 101, -0.01, 10.01);
95 histoName<<
"RPCNoisyStrips_Ring_vs_Segment_Disk"<<
d;
108 for (
unsigned int i = 0 ;
i<meVector.size();
i++){
112 if(meName.find(clientHistoName) != std::string::npos){
123 std::stringstream meName;
150 int entries = (
int) myMe -> getEntries();
151 int bins = (
int) myMe ->getNbinsX();
153 std::vector<float> myvector;
156 for(
int xbin =1 ; xbin <=
bins ; xbin++) {
158 if (binContent > 0) myvector.push_back(binContent);
164 if (myvector.size()>0) {
165 float ymean = entries/myvector.size();
166 for(
unsigned int i=0;
i<myvector.size();
i++) {
167 float deviation = myvector[
i]/ymean;
168 if(deviation > 3.5) noisyStrips++;
169 if(deviation > 5) deviation = 5;
170 if(DEVD) DEVD->
Fill(deviation);
187 if(NOISED) NOISED ->
Fill(noisyStrips);
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &, std::string &)
void labelXAxisSegment(MonitorElement *myMe)
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
MonitorElement * NOISEDDisk[10]
void beginJob(std::string &)
std::string globalFolder_
std::vector< RPCDetId > myDetIds_
RPCNoisyStripTest(const edm::ParameterSet &ps)
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)
MonitorElement * book1D(Args &&...args)
void labelXAxisSector(MonitorElement *myMe)
virtual ~RPCNoisyStripTest()
MonitorElement * DEVDWheel[5]
int detId2RollNr(const RPCDetId &_id)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
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)
MonitorElement * DEVDDisk[10]
void fillGlobalME(RPCDetId &, MonitorElement *)
MonitorElement * NOISEWheel[5]
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
void myBooker(DQMStore::IBooker &)