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";
64 std::stringstream histoName;
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);
106 histoName<<
"OccupancyNormByEvents_Distribution_Wheel"<<
w;
108 NormOccupDWheel[w+2] = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 100, 0.0, 0.205);
120 histoName<<
"AsymmetryLeftRight_Ring_vs_Segment_Disk"<<
d;
131 histoName<<
"OccupancyNormByEvents_Disk"<<
d;
138 histoName<<
"OccupancyNormByEvents_Distribution_Disk"<<
d;
200 for(
int strip = 1 ; strip<=stripInRoll; strip++){
201 if(strip<=stripInRoll/2) FOccupancy+=myMe->
getBinContent(strip);
207 if(totEnt != 0 ) asym = fabs((FOccupancy - BOccupancy )/totEnt);
217 if(NormOccup) NormOccup->
setBinContent(xBin,yBin, normoccup);
218 if(NormOccupD) NormOccupD->
Fill(normoccup);
224 }
else if(detId.
region()==1) {
225 if(detId.
ring()==3) {
231 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_
void labelXAxisSector(MonitorElement *myMe)
void fillGlobalME(RPCDetId &, MonitorElement *)
int detId2RollNr(const RPCDetId &_id)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
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]
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.