73 for (detUnitIt=rpcDigis->begin();detUnitIt!=rpcDigis->end();++detUnitIt){
74 const RPCDetId&
id = (*detUnitIt).first;
75 const RPCRoll* roll =
dynamic_cast<const RPCRoll*
>( pDD->roll(
id));
78 std::ostringstream
tag;
79 std::ostringstream
name;
84 std::string nameRoll = RPCname.name();
87 int nr = RPCnumber.chambernr();
90 int seg = RPCsegment.segment();
94 if (digiIt->strip() < 1 || digiIt->strip() > roll->
nstrips() )
95 edm::LogVerbatim (
"rpcmonitorerror") <<
" XXXX Problem with detector "<<
id <<
", strip # " << digiIt->strip();
98 int dstrip = digiIt->strip() - digiIt2->strip();
99 int dbx = digiIt->bx() - digiIt2->bx();
100 if ( dstrip == 0 &&
abs(dbx) != 0 ) {
109 tag <<
"AfterPulse_Ring_vs_Segment_Disk_" <<
id.region()*
id.station();
110 name <<
"Endcap, After Pulse, Diff bx, Disk # " <<
id.region()*
id.station();
120 (
numberOfRings_ == 3 ? yBin=
id.ring()*3-
id.roll()+1 : yBin= (
id.ring()-1)*3-
id.roll()+1);
126 tag <<
"AfterPulse_Roll_vs_Sector_Wheel_" << std::setw(2) << std::setfill(
'+') <<
id.ring();
127 name <<
"Barrel, After Pulse, Diff. bx, Wheel # " << std::setw(2) << std::setfill(
'+') <<
id.ring();
130 me =
dbe_->
book2D (tag.str(),name.str(),12,0.5,12.5,21,0.5,21.5);
134 me->
Fill(
id.sector(),nr);
std::string globalFolder_
void labelXAxisSegment(MonitorElement *myMe)
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
bool getByType(Handle< PROD > &result) const
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void labelXAxisSector(MonitorElement *myMe)
std::vector< DigiType >::const_iterator const_iterator
std::pair< const_iterator, const_iterator > Range
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)