24 prefixDir_ = subsystemFolder+
"/"+ recHitTypeFolder;
45 for (
unsigned int i = 0 ;
i<meVector.size();
i++){
50 tagList = meVector[
i]->getTags();
51 DQMNet::TagList::iterator tagItr = tagList.begin();
53 while (tagItr != tagList.end() && !flag ) {
74 edm::LogVerbatim (
"rpceventsummary") <<
"[RPCOccupancyTest]: Client Operation";
94 std::stringstream histoName;
98 histoName<<
"Barrel_OccupancyByStations_Normalized";
111 histoName<<
"EndCap_OccupancyByRings_Normalized";
143 for (
int w = -2;
w<=2;
w++ ){
146 histoName<<
"AsymmetryLeftRight_Roll_vs_Sector_Wheel"<<
w;
153 AsyMeWheel[w+2] =
dbe_->
book2D(histoName.str().c_str(), histoName.str().c_str(), 12, 0.5, 12.5, 21, 0.5, 21.5);
162 histoName<<
"OccupancyNormByEvents_Wheel"<<
w;
176 histoName<<
"AsymmetryLeftRight_Distribution_Wheel"<<
w;
185 histoName<<
"OccupancyNormByEvents_Distribution_Wheel"<<
w;
203 histoName<<
"AsymmetryLeftRight_Ring_vs_Segment_Disk"<<d;
220 histoName<<
"OccupancyNormByEvents_Disk"<<d;
233 histoName<<
"AsymmetryLeftRight_Distribution_Disk"<<d;
244 histoName<<
"OccupancyNormByEvents_Distribution_Disk"<<d;
315 for(
int strip = 1 ; strip<=stripInRoll; strip++){
316 if(strip<=stripInRoll/2) FOccupancy+=myMe->
getBinContent(strip);
322 if(totEnt != 0 ) asym = fabs((FOccupancy - BOccupancy )/totEnt);
332 if(NormOccup) NormOccup->
setBinContent(xBin,yBin, normoccup);
333 if(AsyMeD) AsyMeD->
Fill(asym);
334 if(NormOccupD) NormOccupD->
Fill(normoccup);
340 }
else if(detId.
region()==1) {
341 if(detId.
ring()==3) {
347 if(detId.
ring()==3) {
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * AsyMeWheel[5]
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * NormOccupDDisk[10]
void beginJob(DQMStore *, std::string)
void beginRun(const edm::Run &, const edm::EventSetup &)
void labelXAxisSegment(MonitorElement *myMe)
MonitorElement * EndCap_OccByRng
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &)
double getEntries(void) const
get # of entries
void endRun(const edm::Run &, const edm::EventSetup &)
std::vector< RPCDetId > myDetIds_
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
MonitorElement * NormOccupDWheel[5]
MonitorElement * Barrel_OccBySt
virtual ~RPCOccupancyTest()
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
MonitorElement * NormOccupWheel[5]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void removeElement(const std::string &name)
MonitorElement * AsyMeDisk[10]
std::string globalFolder_
unsigned int offset(bool)
void clientOperation(edm::EventSetup const &c)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void labelXAxisSector(MonitorElement *myMe)
void fillGlobalME(RPCDetId &, MonitorElement *)
int detId2RollNr(const RPCDetId &_id)
std::vector< uint32_t > TagList
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 analyze(const edm::Event &iEvent, const edm::EventSetup &c)
int getNbinsX(void) const
get # of bins in X-axis
std::vector< MonitorElement * > myOccupancyMe_
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * NormOccupDisk[10]
MonitorElement * AsyMeDWheel[5]
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.