18 if (nstrips == 0 ){ nstrips = 1;}
25 nameRoll = RPCname.
name();
41 os<<
"Occupancy_"<<nameRoll;
42 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), nstrips, 0.5, nstrips+0.5);
46 os<<
"BXDistribution_"<<nameRoll;
47 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 7, -3.5, 3.5);
52 os<<
"ClusterSize_"<<nameRoll;
53 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 15, 0.5, 15.5);
57 os<<
"Multiplicity_"<<nameRoll;
58 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 30, 0.5, 30.5);
63 os<<
"ClusterSize_"<<nameRoll;
64 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 10, 0.5, 10.5);
68 os<<
"Multiplicity_"<<nameRoll;
69 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 15, 0.5, 15.5);
75 os<<
"NumberOfClusters_"<<nameRoll;
76 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(),10,0.5,10.5);
90 for(
int wheel = -2 ; wheel <= 2; wheel++){
92 os<<
subsystemFolder_<<
"/"<<recHitType<<
"/Barrel/Wheel_"<<wheel<<
"/SummaryBySectors";
95 for (
int sector = 1 ; sector <= 12 ; sector++){
98 os<<
"Occupancy_Wheel_"<<wheel<<
"_Sector_"<<sector;
100 if (sector==9 || sector==11)
101 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 91, 0.5, 91.5, 15, 0.5, 15.5);
103 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 91, 0.5, 91.5, 21, 0.5, 21.5);
105 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 91, 0.5, 91.5, 17, 0.5, 17.5);
120 if(
region == 0 )
continue;
123 if(
region == 1) regionName =
"Endcap+";
134 os<<
"Occupancy_Disk_"<<(
region * disk)<<
"_Ring_"<<
ring<<
"_CH01-CH18";
136 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 96, 0.5, 96.5, 18 , 0.5, 18.5);
139 std::stringstream yLabel;
140 for (
int i = 1 ;
i<=18;
i++) {
142 yLabel<<
"R"<<
ring<<
"_CH"<<std::setw(2)<<std::setfill(
'0')<<
i;
143 meMap[os.str()]->setBinLabel(i, yLabel.str(), 2);
147 for(
int i = 1;
i <= 96 ;
i++) {
148 if (
i ==1) meMap[os.str()]->setBinLabel(
i,
"1", 1);
149 else if (
i==16) meMap[os.str()]->setBinLabel(
i,
"RollA", 1);
150 else if (
i==32) meMap[os.str()]->setBinLabel(
i,
"32", 1);
151 else if (
i==33) meMap[os.str()]->setBinLabel(
i,
"1", 1);
152 else if (
i==48) meMap[os.str()]->setBinLabel(
i,
"RollB", 1);
153 else if (
i==64) meMap[os.str()]->setBinLabel(
i,
"32", 1);
154 else if (
i==65) meMap[os.str()]->setBinLabel(
i,
"1", 1);
155 else if (
i==80) meMap[os.str()]->setBinLabel(
i,
"RollC", 1);
156 else if (
i==96) meMap[os.str()]->setBinLabel(
i,
"32", 1);
157 else meMap[os.str()]->setBinLabel(
i,
"", 1);
162 os<<
"Occupancy_Disk_"<<(
region * disk)<<
"_Ring_"<<
ring<<
"_CH19-CH36";
164 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 96, 0.5, 96.5, 18 , 18.5, 36.5);
167 for (
int i = 1 ;
i<= 18;
i++) {
169 yLabel<<
"R"<<
ring<<
"_CH"<<
i+18;
170 meMap[os.str()]->setBinLabel(i, yLabel.str(), 2);
174 for(
int i = 1;
i <= 96 ;
i++) {
175 if (
i ==1) meMap[os.str()]->setBinLabel(
i,
"1", 1);
176 else if (
i==16) meMap[os.str()]->setBinLabel(
i,
"RollA", 1);
177 else if (
i==32) meMap[os.str()]->setBinLabel(
i,
"32", 1);
178 else if (
i==33) meMap[os.str()]->setBinLabel(
i,
"1", 1);
179 else if (
i==48) meMap[os.str()]->setBinLabel(
i,
"RollB", 1);
180 else if (
i==64) meMap[os.str()]->setBinLabel(
i,
"32", 1);
181 else if (
i==65) meMap[os.str()]->setBinLabel(
i,
"1", 1);
182 else if (
i==80) meMap[os.str()]->setBinLabel(
i,
"RollC", 1);
183 else if (
i==96) meMap[os.str()]->setBinLabel(
i,
"32", 1);
184 else meMap[os.str()]->setBinLabel(
i,
"", 1);
209 for (
int wheel = -2 ; wheel<= 2; wheel++ ) {
217 os<<
"1DOccupancy_Wheel_"<<wheel;
218 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 12, 0.5, 12.5);
219 for(
int i=1;
i<12;
i++) {
222 meMap[os.str()] ->setBinLabel(i, label.str(), 1);
226 os<<
"Occupancy_Roll_vs_Sector_Wheel_"<<wheel;
227 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 12, 0.5,12.5, 21, 0.5, 21.5);
232 os<<
"BxDistribution_Wheel_"<<wheel;
233 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 9, -4.5, 4.5);
236 for(
int layer = 1 ; layer <= 6 ; layer ++){
239 name<<
"ClusterSize_Wheel_"<<wheel<<
"_Layer"<< layer;
240 title<<
"ClusterSize - Wheel "<<wheel<<
" Layer"<<layer;
241 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
251 if(disk == 0)
continue;
255 os<<
"Occupancy_Ring_vs_Segment_Disk_"<<disk;
256 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 36, 0.5,36.5, 6, 0.5, 6.5);
262 os<<
"BxDistribution_Disk_"<<disk;
263 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 9, -4.5, 4.5);
270 name<<
"ClusterSize_Disk_"<<disk<<
"_Ring"<<
ring;
271 title<<
"ClusterSize - Disk"<<disk<<
" Ring"<<
ring;
272 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
280 os<<
"1DOccupancy_Ring_"<<
ring;
286 meMap[os.str()] ->setBinLabel(xbin, label.str(), 1);
303 const RPCRoll * rpcRoll = rpcgeo->roll(
id);
305 if (!rpcRoll)
return 1;
322 std::stringstream
name;
323 std::stringstream
title;
324 for(
int r = 0;
r < 3;
r++){
330 name<<
"ClusterSize_"<< regionName;
331 title<<
"ClusterSize - "<<regionName;
332 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
341 name<<
"NumberOfClusters_Barrel";
342 title<<
"Number of Clusters per Event - Barrel";
343 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 30, 0.5, 30.5);
347 name<<
"NumberOfClusters_Endcap+";
348 title<<
"Number of Clusters per Event - Endcap+";
349 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 15, 0.5, 15.5);
353 name<<
"NumberOfClusters_Endcap-";
354 title<<
"Number of Clusters per Event - Endcap-";
355 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 15, 0.5, 15.5);
360 name<<
"Multiplicity_Barrel";
361 title<<
"Multiplicity per Event per Roll - Barrel";
362 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 50, 0.5, 50.5);
367 name<<
"Multiplicity_Endcap+";
368 title<<
"Multiplicity per Event per Roll - Endcap+";
369 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 32, 0.5, 32.5);
373 name<<
"Multiplicity_Endcap-";
374 title<<
"Multiplicity per Event per Roll - Endcap-";
375 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 32, 0.5, 32.5);
378 for(
int layer = 1 ; layer <= 6 ; layer ++){
382 name<<
"ClusterSize_Layer"<< layer;
383 title<<
"ClusterSize - Layer"<<layer;
384 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
391 name<<
"ClusterSize_Ring"<<
ring;
392 title<<
"ClusterSize - Ring"<<
ring;
393 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
398 meMap[
"Occupancy_for_Endcap"] = ibooker.
book2D(
"Occupancy_for_Endcap",
"Occupancy Endcap", (
int)
RPCMonitorDigi::numberOfDisks_*2.0 , 0.5, ((
float)RPCMonitorDigi::numberOfDisks_*2.0)+0.5, 2, 1.5, 3.5);
399 meMap[
"Occupancy_for_Endcap"] ->
setAxisTitle(
"Disk", 1);
400 meMap[
"Occupancy_for_Endcap"] ->setAxisTitle(
"Ring", 2);
402 std::stringstream binlabel;
403 for (
int bin = 1 ;
bin <= RPCMonitorDigi::numberOfDisks_*2 ;
bin++){
405 if(
bin< (RPCMonitorDigi::numberOfDisks_+1)) {
406 binlabel<<(
bin-( RPCMonitorDigi::numberOfDisks_+1));
410 meMap[
"Occupancy_for_Endcap"]->setBinLabel(
bin , binlabel.str(), 1);
413 meMap[
"Occupancy_for_Endcap"]->setBinLabel( 1 ,
"2", 2);
414 meMap[
"Occupancy_for_Endcap"]->setBinLabel( 2 ,
"3", 2);
416 meMap[
"Occupancy_for_Barrel"] = ibooker.
book2D(
"Occupancy_for_Barrel",
"Occupancy Barrel", 12, 0.5 , 12.5, 5, -2.5, 2.5 );
418 meMap[
"Occupancy_for_Barrel"] ->setAxisTitle(
"Wheel", 2);
423 meMap[
"Occupancy_for_Barrel"]->setBinLabel( bin , binlabel.str(), 1);
426 binlabel<< (bin - 3);
427 meMap[
"Occupancy_for_Barrel"]->setBinLabel( bin , binlabel.str(), 2);
virtual std::string chambername()
std::string globalFolder_
void labelXAxisSegment(MonitorElement *myMe)
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
void bookSectorRingME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement at Sector/Ring level.
static const std::string regionNames_[3]
Geometry.
virtual std::string name()
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
void bookRollME(DQMStore::IBooker &, RPCDetId &, const edm::EventSetup &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement for one RPCDetId (= roll)
MonitorElement * book1D(Args &&...args)
void tag(MonitorElement *, unsigned int)
Abs< T >::type abs(const T &t)
void labelXAxisSector(MonitorElement *myMe)
void setCurrentFolder(const std::string &fullpath)
std::string folderStructure(RPCDetId detId)
MonitorElement * book2D(Args &&...args)
int stripsInRoll(RPCDetId &, const edm::EventSetup &)
void bookWheelDiskME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at Wheel/Disk level.
void bookRegionME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at region (Barrel/Endcap) level.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::string subsystemFolder_
tuple folder
Histograms Source for live online DQM in P5
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.