24 prefixDir_ = subsystemFolder+
"/"+ recHitTypeFolder;
41 for(
unsigned int i = 0 ;
i<meVector.size();
i++){
45 if(meName.find(clientHistoName) != std::string::npos){
54 edm::LogVerbatim (
"rpceventsummary") <<
"[RPCOccupancyTest]: Client Operation";
77 std::stringstream histoName;
81 histoName<<
"RPC_Active_Channel_Fractions";
86 histoName<<
"RPC_Active_Inactive_Strips";
87 Active_Dead = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 2, 0.5, 2.5);
89 Active_Dead -> setBinLabel(2,
"Inactive Strips", 1);
92 histoName<<
"Barrel_OccupancyByStations_Normalized";
101 histoName<<
"EndCap_OccupancyByRings_Normalized";
108 for (
int w = -2;
w<=2;
w++ ){
111 histoName<<
"AsymmetryLeftRight_Roll_vs_Sector_Wheel"<<
w;
113 AsyMeWheel[w+2] = ibooker.
book2D(histoName.str().c_str(), histoName.str().c_str(), 12, 0.5, 12.5, 21, 0.5, 21.5);
122 histoName<<
"OccupancyNormByEvents_Wheel"<<
w;
123 NormOccupWheel[w+2] = ibooker.
book2D(histoName.str().c_str(), histoName.str().c_str(), 12, 0.5, 12.5, 21, 0.5, 21.5);
129 histoName<<
"OccupancyNormByEvents_Distribution_Wheel"<<
w;
131 NormOccupDWheel[w+2] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 100, 0.0, 0.205);
143 histoName<<
"AsymmetryLeftRight_Ring_vs_Segment_Disk"<<
d;
154 histoName<<
"OccupancyNormByEvents_Disk"<<
d;
161 histoName<<
"OccupancyNormByEvents_Distribution_Disk"<<
d;
233 if(totEnt != 0 ) asym = fabs((FOccupancy - BOccupancy )/totEnt);
243 if(NormOccup) NormOccup->
setBinContent(xBin,yBin, normoccup);
244 if(NormOccupD) NormOccupD->
Fill(normoccup);
250 }
else if(detId.
region()==1) {
251 if(detId.
ring()==3) {
257 if(detId.
ring()==3) {
T getUntrackedParameter(std::string const &, T const &) const
void clientOperation() override
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * AsyMeWheel[5]
MonitorElement * NormOccupDDisk[10]
void labelXAxisSegment(MonitorElement *myMe)
MonitorElement * EndCap_OccByRng
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
MonitorElement * Active_Fraction
std::vector< RPCDetId > myDetIds_
MonitorElement * NormOccupDWheel[5]
MonitorElement * Barrel_OccBySt
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
void setCurrentFolder(std::string const &fullpath)
~RPCOccupancyTest() override
MonitorElement * NormOccupWheel[5]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
MonitorElement * AsyMeDisk[10]
std::string globalFolder_
void labelXAxisSector(MonitorElement *myMe)
void fillGlobalME(RPCDetId &, MonitorElement *)
void myBooker(DQMStore::IBooker &) override
int detId2RollNr(const RPCDetId &_id)
double getEntries() const
get # of entries
MonitorElement * book2D(Args &&...args)
MonitorElement * Active_Dead
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
RPCOccupancyTest(const edm::ParameterSet &ps)
double getBinContent(int binx) const
get content of bin (1-D)
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &, std::string &) override
void beginJob(std::string &) override
std::vector< MonitorElement * > myOccupancyMe_
int getNbinsX() const
get # of bins in X-axis
MonitorElement * NormOccupDisk[10]
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.