11 std::map<std::string, MonitorElement*>& meMap) {
37 tmpStr =
"Occupancy_" + nameRoll;
38 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, nstrips, 0.5, nstrips + 0.5);
40 tmpStr =
"BXDistribution_" + nameRoll;
41 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, 7, -3.5, 3.5);
44 tmpStr =
"ClusterSize_" + nameRoll;
45 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, 15, 0.5, 15.5);
47 tmpStr =
"Multiplicity_" + nameRoll;
48 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, 30, 0.5, 30.5);
51 tmpStr =
"ClusterSize_" + nameRoll;
52 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, 10, 0.5, 10.5);
54 tmpStr =
"Multiplicity_" + nameRoll;
55 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, 15, 0.5, 15.5);
58 tmpStr =
"NumberOfClusters_" + nameRoll;
59 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, 10, 0.5, 10.5);
64 std::map<std::string, MonitorElement*>& meMap) {
65 for (
int wheel = -2; wheel <= 2; wheel++) {
69 for (
int sector = 1; sector <= 12; sector++) {
72 if (sector == 9 || sector == 11)
73 meMap[meName] = ibooker.
book2D(meName, meName, 91, 0.5, 91.5, 15, 0.5, 15.5);
75 meMap[meName] = ibooker.
book2D(meName, meName, 91, 0.5, 91.5, 21, 0.5, 21.5);
77 meMap[meName] = ibooker.
book2D(meName, meName, 91, 0.5, 91.5, 17, 0.5, 17.5);
90 regionName =
"Endcap+";
99 auto me1 = ibooker.
book2D(meName1, meName1, 96, 0.5, 96.5, 18, 0.5, 18.5);
100 me1->setAxisTitle(
"strip", 1);
102 for (
int i = 1;
i <= 18;
i++) {
104 me1->setBinLabel(
i, ylabel, 2);
107 me1->setBinLabel(1,
"1", 1);
108 me1->setBinLabel(16,
"RollA", 1);
109 me1->setBinLabel(32,
"32", 1);
110 me1->setBinLabel(33,
"1", 1);
111 me1->setBinLabel(48,
"RollB", 1);
112 me1->setBinLabel(64,
"32", 1);
113 me1->setBinLabel(65,
"1", 1);
114 me1->setBinLabel(80,
"RollC", 1);
115 me1->setBinLabel(96,
"32", 1);
119 auto me2 = ibooker.
book2D(meName2, meName2, 96, 0.5, 96.5, 18, 18.5, 36.5);
120 me2->setAxisTitle(
"strip", 1);
122 for (
int i = 1;
i <= 18;
i++) {
124 me2->setBinLabel(
i, ylabel, 2);
127 me2->setBinLabel(1,
"1", 1);
128 me2->setBinLabel(16,
"RollA", 1);
129 me2->setBinLabel(32,
"32", 1);
130 me2->setBinLabel(33,
"1", 1);
131 me2->setBinLabel(48,
"RollB", 1);
132 me2->setBinLabel(64,
"32", 1);
133 me2->setBinLabel(65,
"1", 1);
134 me2->setBinLabel(80,
"RollC", 1);
135 me2->setBinLabel(96,
"32", 1);
137 meMap[meName1] =
me1;
138 meMap[meName2] =
me2;
146 std::map<std::string, MonitorElement*>& meMap) {
151 for (
int wheel = -2; wheel <= 2; wheel++) {
152 tmpStr =
fmt::format(
"1DOccupancy_Wheel_{}", wheel);
153 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, 12, 0.5, 12.5);
154 for (
int i = 1;
i <= 12; ++
i) {
158 tmpStr =
fmt::format(
"Occupancy_Roll_vs_Sector_Wheel_{}", wheel);
161 tmpStr =
fmt::format(
"BxDistribution_Wheel_{}", wheel);
162 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, 9, -4.5, 4.5);
167 meMap[
name] = ibooker.
book1D(name, title, 16, 0.5, 16.5);
176 tmpStr =
fmt::format(
"Occupancy_Ring_vs_Segment_Disk_{}", disk);
179 tmpStr =
fmt::format(
"BxDistribution_Disk_{}", disk);
180 meMap[tmpStr] = ibooker.
book1D(tmpStr, tmpStr, 9, -4.5, 4.5);
185 meMap[
name] = ibooker.
book1D(name, title, 16, 0.5, 16.5);
191 meMap[meName] = ibooker.
book1D(
199 meMap[meName]->setBinLabel(xbin, label, 1);
215 std::map<std::string, MonitorElement*>& meMap) {
219 std::stringstream
name;
220 std::stringstream
title;
221 for (
int r = 0;
r < 3;
r++) {
227 name <<
"ClusterSize_" << regionName;
228 title <<
"ClusterSize - " << regionName;
229 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
235 name <<
"NumberOfClusters_Barrel";
236 title <<
"Number of Clusters per Event - Barrel";
237 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 30, 0.5, 30.5);
241 name <<
"NumberOfClusters_Endcap+";
242 title <<
"Number of Clusters per Event - Endcap+";
243 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 15, 0.5, 15.5);
247 name <<
"NumberOfClusters_Endcap-";
248 title <<
"Number of Clusters per Event - Endcap-";
249 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 15, 0.5, 15.5);
254 name <<
"Multiplicity_Barrel";
255 title <<
"Multiplicity per Event per Roll - Barrel";
256 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 50, 0.5, 50.5);
260 name <<
"Multiplicity_Endcap+";
261 title <<
"Multiplicity per Event per Roll - Endcap+";
262 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 32, 0.5, 32.5);
266 name <<
"Multiplicity_Endcap-";
267 title <<
"Multiplicity per Event per Roll - Endcap-";
268 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 32, 0.5, 32.5);
273 name <<
"ClusterSize_Layer" <<
layer;
274 title <<
"ClusterSize - Layer" <<
layer;
275 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
281 name <<
"ClusterSize_Ring" <<
ring;
282 title <<
"ClusterSize - Ring" <<
ring;
283 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
286 meMap[
"Occupancy_for_Endcap"] = ibooker.
book2D(
"Occupancy_for_Endcap",
290 ((
float)RPCMonitorDigi::numberOfDisks_ * 2.0) + 0.5,
295 meMap[
"Occupancy_for_Endcap"]->setAxisTitle(
"Ring", 2);
297 std::stringstream binlabel;
298 for (
int bin = 1;
bin <= RPCMonitorDigi::numberOfDisks_ * 2;
bin++) {
300 if (
bin < (RPCMonitorDigi::numberOfDisks_ + 1)) {
301 binlabel << (
bin - (RPCMonitorDigi::numberOfDisks_ + 1));
305 meMap[
"Occupancy_for_Endcap"]->setBinLabel(
bin, binlabel.str(), 1);
308 meMap[
"Occupancy_for_Endcap"]->setBinLabel(1,
"2", 2);
309 meMap[
"Occupancy_for_Endcap"]->setBinLabel(2,
"3", 2);
311 meMap[
"Occupancy_for_Barrel"] =
312 ibooker.
book2D(
"Occupancy_for_Barrel",
"Occupancy Barrel", 12, 0.5, 12.5, 5, -2.5, 2.5);
314 meMap[
"Occupancy_for_Barrel"]->setAxisTitle(
"Wheel", 2);
319 meMap[
"Occupancy_for_Barrel"]->setBinLabel(bin, binlabel.str(), 1);
322 binlabel << (bin - 3);
323 meMap[
"Occupancy_for_Barrel"]->setBinLabel(bin, binlabel.str(), 2);
std::string globalFolder_
virtual void setCurrentFolder(std::string const &fullpath)
void bookSectorRingME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement at Sector/Ring level.
constexpr std::array< uint8_t, layerIndexSize > layer
static void setBarrelRollAxis(MonitorElement *me, const int wheel, const int axis, const 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 const std::array< std::string, 3 > regionNames_
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
static std::string name(const RPCDetId &detId, const bool useRoll)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
static MonitorElement * bookBarrel(IBooker &booker, const int wheel, const std::string &prefix, const std::string &title, const bool useRollInfo)
static std::string folderStructure(const RPCDetId &detId)
void bookWheelDiskME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at Wheel/Disk level.
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void bookRegionME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at region (Barrel/Endcap) level.
static MonitorElement * bookEndcap(IBooker &booker, const int disk, const std::string &prefix, const std::string &title, const bool useRollInfo)
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)