24 prefixDir_ = subsystemFolder+
"/"+ recHitTypeFolder;
38 for(
unsigned int i = 0 ;
i<meVector.size();
i++){
42 if(meName.find(clientHistoName) != std::string::npos){
51 edm::LogVerbatim (
"rpceventsummary") <<
"[RPCOccupancyTest]: Client Operation";
68 histoName<<
"Barrel_OccupancyByStations_Normalized";
78 histoName<<
"EndCap_OccupancyByRings_Normalized";
85 for (
int w = -2;
w<=2;
w++ ){
88 histoName<<
"AsymmetryLeftRight_Roll_vs_Sector_Wheel"<<
w;
90 AsyMeWheel[w+2] = ibooker.
book2D(histoName.str().c_str(), histoName.str().c_str(), 12, 0.5, 12.5, 21, 0.5, 21.5);
99 histoName<<
"OccupancyNormByEvents_Wheel"<<
w;
100 NormOccupWheel[w+2] = ibooker.
book2D(histoName.str().c_str(), histoName.str().c_str(), 12, 0.5, 12.5, 21, 0.5, 21.5);
107 histoName<<
"AsymmetryLeftRight_Distribution_Wheel"<<
w;
108 AsyMeDWheel[w+2] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 20, -0.1, 1.1);
111 histoName<<
"OccupancyNormByEvents_Distribution_Wheel"<<
w;
113 NormOccupDWheel[w+2] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 100, 0.0, 0.205);
125 histoName<<
"AsymmetryLeftRight_Ring_vs_Segment_Disk"<<d;
136 histoName<<
"OccupancyNormByEvents_Disk"<<d;
143 histoName<<
"AsymmetryLeftRight_Distribution_Disk"<<d;
147 histoName<<
"OccupancyNormByEvents_Distribution_Disk"<<d;
213 for(
int strip = 1 ; strip<=stripInRoll; strip++){
214 if(strip<=stripInRoll/2) FOccupancy+=myMe->
getBinContent(strip);
220 if(totEnt != 0 ) asym = fabs((FOccupancy - BOccupancy )/totEnt);
230 if(NormOccup) NormOccup->
setBinContent(xBin,yBin, normoccup);
231 if(AsyMeD) AsyMeD->
Fill(asym);
232 if(NormOccupD) NormOccupD->
Fill(normoccup);
238 }
else if(detId.
region()==1) {
239 if(detId.
ring()==3) {
245 if(detId.
ring()==3) {
T getUntrackedParameter(std::string const &, T const &) const
void myBooker(DQMStore::IBooker &)
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)
double getEntries(void) const
get # of entries
std::vector< RPCDetId > myDetIds_
void beginJob(std::string &)
MonitorElement * NormOccupDWheel[5]
MonitorElement * Barrel_OccBySt
virtual ~RPCOccupancyTest()
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
MonitorElement * NormOccupWheel[5]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
MonitorElement * AsyMeDisk[10]
std::string globalFolder_
unsigned int offset(bool)
void labelXAxisSector(MonitorElement *myMe)
void fillGlobalME(RPCDetId &, MonitorElement *)
int detId2RollNr(const RPCDetId &_id)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
MonitorElement * AsyMeDDisk[10]
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 &)
int getNbinsX(void) const
get # of bins in X-axis
std::vector< MonitorElement * > myOccupancyMe_
MonitorElement * NormOccupDisk[10]
MonitorElement * AsyMeDWheel[5]
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.