35 std::stringstream histoName;
37 for (
int w = -2;
w <= 2;
w++) {
41 histoName <<
"RPCNoisyStrips_Distribution_Wheel" <<
w;
42 NOISEDWheel[w + 2] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 6, -0.5, 5.5);
45 histoName <<
"RPCStripsDeviation_Distribution_Wheel" <<
w;
46 DEVDWheel[w + 2] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 101, -0.01, 10.01);
50 histoName <<
"RPCNoisyStrips_Roll_vs_Sector_Wheel" <<
w;
66 histoName <<
"RPCNoisyStrips_Distribution_Disk" <<
d;
70 histoName <<
"RPCStripsDeviation_Distribution_Disk" <<
d;
71 DEVDDisk[d +
offset] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 101, -0.01, 10.01);
75 histoName <<
"RPCNoisyStrips_Ring_vs_Segment_Disk" <<
d;
82 std::vector<RPCDetId>& detIdVector,
85 for (
unsigned int i = 0;
i < meVector.size();
i++) {
88 if (meName.find(clientHistoName) != std::string::npos) {
96 std::stringstream meName;
102 if (detId.
region() == 0) {
125 std::vector<float> myvector;
128 for (
int xbin = 1; xbin <= bins; xbin++) {
131 myvector.push_back(binContent);
136 if (!myvector.empty()) {
137 float ymean = entries / myvector.size();
138 for (
unsigned int i = 0;
i < myvector.size();
i++) {
139 float deviation = myvector[
i] / ymean;
145 DEVD->
Fill(deviation);
149 if (detId.
region() == 0) {
158 : yBin = (detId.
ring() - 1) * 3 - detId.
roll() + 1);
164 NOISED->
Fill(noisyStrips);
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * NOISEDDisk[10]
std::string globalFolder_
std::vector< RPCDetId > myDetIds_
RPCNoisyStripTest(const edm::ParameterSet &ps)
virtual int getNbinsX() const
get # of bins in X-axis
std::vector< MonitorElement * > myOccupancyMe_
MonitorElement * NOISEDWheel[5]
virtual double getEntries() const
get # of entries
void clientOperation() override
virtual double getBinContent(int binx) const
get content of bin (1-D)
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &, std::string &) override
MonitorElement * DEVDWheel[5]
int detId2RollNr(const RPCDetId &_id)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * NOISEDisk[10]
void beginJob(std::string &) override
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)
void myBooker(DQMStore::IBooker &) override
MonitorElement * DEVDDisk[10]
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
static MonitorElement * bookEndcap(IBooker &booker, const int disk, const std::string &prefix, const std::string &title, const bool useRollInfo)
void fillGlobalME(RPCDetId &, MonitorElement *)
MonitorElement * NOISEWheel[5]
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.