21 TH2* h2 =
dynamic_cast<TH2*
>(myMe->
getTH1());
24 h2->GetXaxis()->SetNoAlphanumeric(
true);
25 h2->GetYaxis()->SetNoAlphanumeric(
true);
49 else if(_id.
roll()==3)
51 else if(_id.
roll()==2)
56 else if(_id.
roll()==1)
58 else if(_id.
roll()==3)
121 Wvector2.push_back(0);
122 Wvector2.push_back(1140);
123 Wvector2.push_back(1140);
124 Wvector2.push_back(1140);
125 Wvector2.push_back(1236);
126 Wvector2.push_back(1140);
127 Wvector2.push_back(1140);
128 Wvector2.push_back(1140);
129 Wvector2.push_back(1116);
130 Wvector2.push_back(1044);
131 Wvector2.push_back(1188);
132 Wvector2.push_back(1044);
133 Wvector2.push_back(1166);
135 Wvector1.push_back(0);
136 Wvector1.push_back(1146);
137 Wvector1.push_back(1146);
138 Wvector1.push_back(1146);
139 Wvector1.push_back(1242);
140 Wvector1.push_back(1146);
141 Wvector1.push_back(1146);
142 Wvector1.push_back(1146);
143 Wvector1.push_back(1122);
144 Wvector1.push_back(1050);
145 Wvector1.push_back(1194);
146 Wvector1.push_back(1050);
147 Wvector1.push_back(1122);
228 endcapYLabels_.clear();
229 std::stringstream myLabel;
232 for(
int ch = 1; ch<=6; ch++){
233 for(
int r=0;
r<3;
r++){
235 myLabel<<
"R"<<
ring<<
"_C"<<ch<<
"_"<<rolls[
r];
236 endcapYLabels_.push_back(myLabel.str());
254 std::stringstream xLabel;
256 for(
int x = 1; x<= myMe->
getNbinsX(); x++){
269 std::stringstream xLabel;
273 for(
int x = 1; x<= myMe->
getNbinsX(); x++){
293 this->dolabeling(useRollInfo);
296 for(
int y = 1; y<= myMe->
getNbinsY() && y<22; y++)
301 this->doEndcapLabeling(useRollInfo);
303 for(
int y = 1; y<= myMe->
getNbinsY() && y<(
int)endcapYLabels_.size(); y++)
318 labels[1]=
"Ring1 B";
321 labels[4]=
"Ring2 B";
324 labels[7]=
"Ring3 B";
339 (numberOfRings == 2 ? startBin = 3: startBin = 0);
343 for(
int y =1 ;y<= myMe->
getNbinsY() && y<=9; y++ ){
354 if(_id.
layer() ==1) {
406 if(_id.
layer() ==1) {
std::string detId2ChamberLabel(const RPCDetId &_id)
int detId2ChamberNr(const RPCDetId &_id)
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)
void labelXAxisSegment(MonitorElement *myMe)
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
std::string YLabel(int i)
std::vector< int > Wvector1
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
std::vector< std::string > endcapYLabels_
std::vector< int > SectorStrips2()
std::vector< int > Wvector2
void dolabeling(bool useRollInfo)
static void setNoAlphanumeric(MonitorElement *myMe)
void labelXAxisSector(MonitorElement *myMe)
std::vector< int > SectorStrips1()
int detId2RollNr(const RPCDetId &_id)
int getNbinsY() const
get # of bins in Y-axis
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
int subsector() const
SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel...
int getNbinsX() const
get # of bins in X-axis
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void doEndcapLabeling(bool useRollInfo)
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.