17 if (nstrips == 0 ){ nstrips = 1;}
24 nameRoll = RPCname.
name();
38 os<<
"Occupancy_"<<nameRoll;
39 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), nstrips, 0.5, nstrips+0.5);
43 os<<
"BXDistribution_"<<nameRoll;
44 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 7, -3.5, 3.5);
49 os<<
"ClusterSize_"<<nameRoll;
50 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 15, 0.5, 15.5);
54 os<<
"Multiplicity_"<<nameRoll;
55 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 30, 0.5, 30.5);
60 os<<
"ClusterSize_"<<nameRoll;
61 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 10, 0.5, 10.5);
65 os<<
"Multiplicity_"<<nameRoll;
66 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);
86 for (
int sector = 1 ; sector <= 12 ; sector++){
89 os<<
"Occupancy_Wheel_"<<wheel<<
"_Sector_"<<sector;
91 if (sector==9 || sector==11)
92 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 91, 0.5, 91.5, 15, 0.5, 15.5);
94 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 91, 0.5, 91.5, 21, 0.5, 21.5);
96 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 91, 0.5, 91.5, 17, 0.5, 17.5);
106 for (
int region = -1 ; region <= 1; region++){
107 if( region == 0 )
continue;
110 if(region == 1) regionName =
"Endcap+";
114 os<<
subsystemFolder_<<
"/"<<recHitType<<
"/"<<regionName<<
"/Disk_"<<(region * disk)<<
"/SummaryByRings/";
121 os<<
"Occupancy_Disk_"<<(region * disk)<<
"_Ring_"<<
ring<<
"_CH01-CH18";
123 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 96, 0.5, 96.5, 18 , 0.5, 18.5);
127 std::stringstream yLabel;
128 for (
int i = 1 ;
i<=18;
i++) {
130 yLabel<<
"R"<<
ring<<
"_CH"<<std::setw(2)<<std::setfill(
'0')<<
i;
131 meMap[os.str()]->setBinLabel(i, yLabel.str(), 2);
135 for(
int i = 1;
i <= 96 ;
i++) {
136 if (
i ==1) meMap[os.str()]->setBinLabel(
i,
"1", 1);
137 else if (
i==16) meMap[os.str()]->setBinLabel(
i,
"RollA", 1);
138 else if (
i==32) meMap[os.str()]->setBinLabel(
i,
"32", 1);
139 else if (
i==33) meMap[os.str()]->setBinLabel(
i,
"1", 1);
140 else if (
i==48) meMap[os.str()]->setBinLabel(
i,
"RollB", 1);
141 else if (
i==64) meMap[os.str()]->setBinLabel(
i,
"32", 1);
142 else if (
i==65) meMap[os.str()]->setBinLabel(
i,
"1", 1);
143 else if (
i==80) meMap[os.str()]->setBinLabel(
i,
"RollC", 1);
144 else if (
i==96) meMap[os.str()]->setBinLabel(
i,
"32", 1);
145 else meMap[os.str()]->setBinLabel(
i,
"", 1);
150 os<<
"Occupancy_Disk_"<<(region * disk)<<
"_Ring_"<<
ring<<
"_CH19-CH36";
152 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 96, 0.5, 96.5, 18 , 18.5, 36.5);
156 for (
int i = 1 ;
i<= 18;
i++) {
158 yLabel<<
"R"<<
ring<<
"_CH"<<
i+18;
159 meMap[os.str()]->setBinLabel(i, yLabel.str(), 2);
163 for(
int i = 1;
i <= 96 ;
i++) {
164 if (
i ==1) meMap[os.str()]->setBinLabel(
i,
"1", 1);
165 else if (
i==16) meMap[os.str()]->setBinLabel(
i,
"RollA", 1);
166 else if (
i==32) meMap[os.str()]->setBinLabel(
i,
"32", 1);
167 else if (
i==33) meMap[os.str()]->setBinLabel(
i,
"1", 1);
168 else if (
i==48) meMap[os.str()]->setBinLabel(
i,
"RollB", 1);
169 else if (
i==64) meMap[os.str()]->setBinLabel(
i,
"32", 1);
170 else if (
i==65) meMap[os.str()]->setBinLabel(
i,
"1", 1);
171 else if (
i==80) meMap[os.str()]->setBinLabel(
i,
"RollC", 1);
172 else if (
i==96) meMap[os.str()]->setBinLabel(
i,
"32", 1);
173 else meMap[os.str()]->setBinLabel(
i,
"", 1);
191 os<<
"1DOccupancy_Wheel_"<<
wheel;
192 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 12, 0.5, 12.5);
193 for(
int i=1;
i<12;
i++) {
196 meMap[os.str()] ->setBinLabel(i, label.str(), 1);
200 os<<
"Occupancy_Roll_vs_Sector_Wheel_"<<
wheel;
201 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 12, 0.5,12.5, 21, 0.5, 21.5);
206 os<<
"BxDistribution_Wheel_"<<
wheel;
207 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 9, -4.5, 4.5);
210 for(
int layer = 1 ; layer <= 6 ; layer ++){
213 name<<
"ClusterSize_Wheel_"<<wheel<<
"_Layer"<< layer;
214 title<<
"ClusterSize - Wheel "<<wheel<<
" Layer"<<layer;
215 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
225 if(disk == 0)
continue;
229 os<<
"Occupancy_Ring_vs_Segment_Disk_"<<disk;
230 meMap[os.str()] = ibooker.
book2D(os.str(), os.str(), 36, 0.5,36.5, 6, 0.5, 6.5);
236 os<<
"BxDistribution_Disk_"<<disk;
237 meMap[os.str()] = ibooker.
book1D(os.str(), os.str(), 9, -4.5, 4.5);
244 name<<
"ClusterSize_Disk_"<<disk<<
"_Ring"<<
ring;
245 title<<
"ClusterSize - Disk"<<disk<<
" Ring"<<
ring;
246 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
254 os<<
"1DOccupancy_Ring_"<<
ring;
260 meMap[os.str()] ->setBinLabel(xbin, label.str(), 1);
273 if (!rpcRoll)
return 1;
284 std::stringstream
name;
285 std::stringstream
title;
286 for(
int r = 0;
r < 3;
r++){
292 name<<
"ClusterSize_"<< regionName;
293 title<<
"ClusterSize - "<<regionName;
294 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
303 name<<
"NumberOfClusters_Barrel";
304 title<<
"Number of Clusters per Event - Barrel";
305 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 30, 0.5, 30.5);
309 name<<
"NumberOfClusters_Endcap+";
310 title<<
"Number of Clusters per Event - Endcap+";
311 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 15, 0.5, 15.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);
322 name<<
"Multiplicity_Barrel";
323 title<<
"Multiplicity per Event per Roll - Barrel";
324 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 50, 0.5, 50.5);
329 name<<
"Multiplicity_Endcap+";
330 title<<
"Multiplicity per Event per Roll - Endcap+";
331 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 32, 0.5, 32.5);
335 name<<
"Multiplicity_Endcap-";
336 title<<
"Multiplicity per Event per Roll - Endcap-";
337 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 32, 0.5, 32.5);
340 for(
int layer = 1 ; layer <= 6 ; layer ++){
344 name<<
"ClusterSize_Layer"<< layer;
345 title<<
"ClusterSize - Layer"<<layer;
346 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
353 name<<
"ClusterSize_Ring"<<
ring;
354 title<<
"ClusterSize - Ring"<<
ring;
355 meMap[name.str()] = ibooker.
book1D(name.str(), title.str(), 16, 0.5, 16.5);
360 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);
361 meMap[
"Occupancy_for_Endcap"] ->
setAxisTitle(
"Disk", 1);
362 meMap[
"Occupancy_for_Endcap"] ->setAxisTitle(
"Ring", 2);
364 std::stringstream binlabel;
365 for (
int bin = 1 ;
bin <= RPCMonitorDigi::numberOfDisks_*2 ;
bin++){
367 if(
bin< (RPCMonitorDigi::numberOfDisks_+1)) {
368 binlabel<<(
bin-( RPCMonitorDigi::numberOfDisks_+1));
372 meMap[
"Occupancy_for_Endcap"]->setBinLabel(
bin , binlabel.str(), 1);
375 meMap[
"Occupancy_for_Endcap"]->setBinLabel( 1 ,
"2", 2);
376 meMap[
"Occupancy_for_Endcap"]->setBinLabel( 2 ,
"3", 2);
378 meMap[
"Occupancy_for_Barrel"] = ibooker.
book2D(
"Occupancy_for_Barrel",
"Occupancy Barrel", 12, 0.5 , 12.5, 5, -2.5, 2.5 );
380 meMap[
"Occupancy_for_Barrel"] ->setAxisTitle(
"Wheel", 2);
385 meMap[
"Occupancy_for_Barrel"]->setBinLabel( bin , binlabel.str(), 1);
388 binlabel<< (bin - 3);
389 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.
virtual std::string name()
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
int stripsInRoll(const RPCDetId &id, const RPCGeometry *rpcGeo) const
void setCurrentFolder(std::string const &fullpath)
void bookRollME(DQMStore::IBooker &, const RPCDetId &, const RPCGeometry *rpcGeo, 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)
static void setNoAlphanumeric(MonitorElement *myMe)
static const std::array< std::string, 3 > regionNames_
void labelXAxisSector(MonitorElement *myMe)
bin
set the eta bin as selection string.
std::string folderStructure(RPCDetId detId)
MonitorElement * book2D(Args &&...args)
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_
const RPCRoll * roll(RPCDetId id) const
Return a roll given its id.
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.