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;
230 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
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;
255 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
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;
303 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
309 name <<
"NumberOfClusters_Barrel";
310 title <<
"Number of Clusters per Event - Barrel";
311 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 30, 0.5, 30.5);
315 name <<
"NumberOfClusters_Endcap+";
316 title <<
"Number of Clusters per Event - Endcap+";
317 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 15, 0.5, 15.5);
321 name <<
"NumberOfClusters_Endcap-";
322 title <<
"Number of Clusters per Event - Endcap-";
323 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 15, 0.5, 15.5);
328 name <<
"Multiplicity_Barrel";
329 title <<
"Multiplicity per Event per Roll - Barrel";
330 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 50, 0.5, 50.5);
334 name <<
"Multiplicity_Endcap+";
335 title <<
"Multiplicity per Event per Roll - Endcap+";
336 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 32, 0.5, 32.5);
340 name <<
"Multiplicity_Endcap-";
341 title <<
"Multiplicity per Event per Roll - Endcap-";
342 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 32, 0.5, 32.5);
344 for (
int layer = 1; layer <= 6; layer++) {
347 name <<
"ClusterSize_Layer" << layer;
348 title <<
"ClusterSize - Layer" << layer;
349 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
355 name <<
"ClusterSize_Ring" <<
ring;
356 title <<
"ClusterSize - Ring" <<
ring;
357 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
360 meMap[
"Occupancy_for_Endcap"] = ibooker.
book2D(
"Occupancy_for_Endcap",
364 ((
float)RPCMonitorDigi::numberOfDisks_ * 2.0) + 0.5,
369 meMap[
"Occupancy_for_Endcap"]->setAxisTitle(
"Ring", 2);
371 std::stringstream binlabel;
372 for (
int bin = 1;
bin <= RPCMonitorDigi::numberOfDisks_ * 2;
bin++) {
374 if (
bin < (RPCMonitorDigi::numberOfDisks_ + 1)) {
375 binlabel << (
bin - (RPCMonitorDigi::numberOfDisks_ + 1));
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);
virtual std::string chambername()
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
std::string globalFolder_
void setCurrentFolder(std::string const &fullpath)
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.
virtual std::string name()
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
int stripsInRoll(const RPCDetId &id, const RPCGeometry *rpcGeo) const
void bookRollME(DQMStore::IBooker &, const RPCDetId &, const RPCGeometry *rpcGeo, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement for one RPCDetId (= roll)
Abs< T >::type abs(const T &t)
static void setNoAlphanumeric(MonitorElement *myMe)
static const std::array< std::string, 3 > regionNames_
void labelXAxisSector(MonitorElement *myMe)
std::string folderStructure(RPCDetId detId)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
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.
std::string subsystemFolder_
const RPCRoll * roll(RPCDetId id) const
Return a roll given its id.
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)