12 std::map<std::string, MonitorElement*>& meMap) {
29 nameRoll = RPCname.
name();
45 os <<
"Occupancy_" << nameRoll;
46 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), nstrips, 0.5, nstrips + 0.5);
49 os <<
"BXDistribution_" << nameRoll;
50 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 7, -3.5, 3.5);
54 os <<
"ClusterSize_" << nameRoll;
55 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 15, 0.5, 15.5);
58 os <<
"Multiplicity_" << nameRoll;
59 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);
67 os <<
"Multiplicity_" << nameRoll;
68 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 15, 0.5, 15.5);
72 os <<
"NumberOfClusters_" << nameRoll;
73 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 10, 0.5, 10.5);
78 std::map<std::string, MonitorElement*>& meMap) {
86 for (
int sector = 1; sector <= 12; sector++) {
88 os <<
"Occupancy_Wheel_" <<
wheel <<
"_Sector_" << sector;
90 if (sector == 9 || sector == 11)
91 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 91, 0.5, 91.5, 15, 0.5, 15.5);
93 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 91, 0.5, 91.5, 21, 0.5, 21.5);
95 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 91, 0.5, 91.5, 17, 0.5, 17.5);
109 regionName =
"Endcap+";
114 <<
"/SummaryByRings/";
120 os <<
"Occupancy_Disk_" << (
region * disk) <<
"_Ring_" <<
ring <<
"_CH01-CH18";
122 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 96, 0.5, 96.5, 18, 0.5, 18.5);
126 std::stringstream yLabel;
127 for (
int i = 1;
i <= 18;
i++) {
129 yLabel <<
"R" <<
ring <<
"_CH" << std::setw(2) << std::setfill(
'0') <<
i;
130 meMap[os.str()]->setBinLabel(
i, yLabel.str(), 2);
133 for (
int i = 1;
i <= 96;
i++) {
135 meMap[os.str()]->setBinLabel(
i,
"1", 1);
137 meMap[os.str()]->setBinLabel(
i,
"RollA", 1);
139 meMap[os.str()]->setBinLabel(
i,
"32", 1);
141 meMap[os.str()]->setBinLabel(
i,
"1", 1);
143 meMap[os.str()]->setBinLabel(
i,
"RollB", 1);
145 meMap[os.str()]->setBinLabel(
i,
"32", 1);
147 meMap[os.str()]->setBinLabel(
i,
"1", 1);
149 meMap[os.str()]->setBinLabel(
i,
"RollC", 1);
151 meMap[os.str()]->setBinLabel(
i,
"32", 1);
153 meMap[os.str()]->setBinLabel(
i,
"", 1);
157 os <<
"Occupancy_Disk_" << (
region * disk) <<
"_Ring_" <<
ring <<
"_CH19-CH36";
159 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 96, 0.5, 96.5, 18, 18.5, 36.5);
163 for (
int i = 1;
i <= 18;
i++) {
165 yLabel <<
"R" <<
ring <<
"_CH" <<
i + 18;
166 meMap[os.str()]->setBinLabel(
i, yLabel.str(), 2);
169 for (
int i = 1;
i <= 96;
i++) {
171 meMap[os.str()]->setBinLabel(
i,
"1", 1);
173 meMap[os.str()]->setBinLabel(
i,
"RollA", 1);
175 meMap[os.str()]->setBinLabel(
i,
"32", 1);
177 meMap[os.str()]->setBinLabel(
i,
"1", 1);
179 meMap[os.str()]->setBinLabel(
i,
"RollB", 1);
181 meMap[os.str()]->setBinLabel(
i,
"32", 1);
183 meMap[os.str()]->setBinLabel(
i,
"1", 1);
185 meMap[os.str()]->setBinLabel(
i,
"RollC", 1);
187 meMap[os.str()]->setBinLabel(
i,
"32", 1);
189 meMap[os.str()]->setBinLabel(
i,
"", 1);
199 std::map<std::string, MonitorElement*>& meMap) {
207 os <<
"1DOccupancy_Wheel_" <<
wheel;
208 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 12, 0.5, 12.5);
209 for (
int i = 1;
i < 12;
i++) {
212 meMap[os.str()]->setBinLabel(
i,
label.str(), 1);
216 os <<
"Occupancy_Roll_vs_Sector_Wheel_" <<
wheel;
217 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 12, 0.5, 12.5, 21, 0.5, 21.5);
222 os <<
"BxDistribution_Wheel_" <<
wheel;
223 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 9, -4.5, 4.5);
225 for (
int layer = 1; layer <= 6; layer++) {
228 name <<
"ClusterSize_Wheel_" <<
wheel <<
"_Layer" << layer;
229 title <<
"ClusterSize - Wheel " <<
wheel <<
" Layer" << layer;
240 os <<
"Occupancy_Ring_vs_Segment_Disk_" << disk;
241 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 36, 0.5, 36.5, 6, 0.5, 6.5);
247 os <<
"BxDistribution_Disk_" << disk;
248 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 9, -4.5, 4.5);
253 name <<
"ClusterSize_Disk_" << disk <<
"_Ring" <<
ring;
254 title <<
"ClusterSize - Disk" << disk <<
" Ring" <<
ring;
261 os <<
"1DOccupancy_Ring_" <<
ring;
262 meMap[os.str()] = ibooker.
book1D(os.str(),
273 meMap[os.str()]->setBinLabel(xbin,
label.str(), 1);
289 std::map<std::string, MonitorElement*>& meMap) {
293 std::stringstream
name;
294 std::stringstream
title;
295 for (
int r = 0;
r < 3;
r++) {
301 name <<
"ClusterSize_" << regionName;
302 title <<
"ClusterSize - " << regionName;
309 name <<
"NumberOfClusters_Barrel";
310 title <<
"Number of Clusters per Event - Barrel";
315 name <<
"NumberOfClusters_Endcap+";
316 title <<
"Number of Clusters per Event - Endcap+";
321 name <<
"NumberOfClusters_Endcap-";
322 title <<
"Number of Clusters per Event - Endcap-";
328 name <<
"Multiplicity_Barrel";
329 title <<
"Multiplicity per Event per Roll - Barrel";
334 name <<
"Multiplicity_Endcap+";
335 title <<
"Multiplicity per Event per Roll - Endcap+";
340 name <<
"Multiplicity_Endcap-";
341 title <<
"Multiplicity per Event per Roll - Endcap-";
344 for (
int layer = 1; layer <= 6; layer++) {
347 name <<
"ClusterSize_Layer" << layer;
348 title <<
"ClusterSize - Layer" << layer;
360 meMap[
"Occupancy_for_Endcap"] = ibooker.
book2D(
"Occupancy_for_Endcap",
369 meMap[
"Occupancy_for_Endcap"]->setAxisTitle(
"Ring", 2);
371 std::stringstream binlabel;
379 meMap[
"Occupancy_for_Endcap"]->setBinLabel(
bin, binlabel.str(), 1);
382 meMap[
"Occupancy_for_Endcap"]->setBinLabel(1,
"2", 2);
383 meMap[
"Occupancy_for_Endcap"]->setBinLabel(2,
"3", 2);
385 meMap[
"Occupancy_for_Barrel"] =
386 ibooker.
book2D(
"Occupancy_for_Barrel",
"Occupancy Barrel", 12, 0.5, 12.5, 5, -2.5, 2.5);
388 meMap[
"Occupancy_for_Barrel"]->setAxisTitle(
"Wheel", 2);
393 meMap[
"Occupancy_for_Barrel"]->setBinLabel(
bin, binlabel.str(), 1);
396 binlabel << (
bin - 3);
397 meMap[
"Occupancy_for_Barrel"]->setBinLabel(
bin, binlabel.str(), 2);