149 |
|
legend.str(""); |
150 |
|
legend<<"ToF Layer 1 Mean "<<rpcTimeOfFlightBarrel_[0]->GetMean()<<"ns"; |
151 |
|
leg->AddEntry(rpcTimeOfFlightBarrel_[0],legend.str().c_str(),"f"); |
152 |
+ |
float max = rpcTimeOfFlightBarrel_[0]->GetBinContent(rpcTimeOfFlightBarrel_[0]->GetMaximumBin()); |
153 |
|
for(int i=1; i<6;i++){ |
154 |
|
rpcTimeOfFlightBarrel_[i]->SetFillColor(i+1); |
155 |
|
legend.str(""); |
156 |
|
legend<<"ToF Layer "<<i+1<<" Mean "<<rpcTimeOfFlightBarrel_[i]->GetMean()<<"ns"; |
157 |
|
leg->AddEntry(rpcTimeOfFlightBarrel_[i],legend.str().c_str(),"f"); |
158 |
|
rpcTimeOfFlightBarrel_[i]->Draw("same"); |
159 |
+ |
float thismax = rpcTimeOfFlightBarrel_[i]->GetBinContent(rpcTimeOfFlightBarrel_[i]->GetMaximumBin()); |
160 |
+ |
if(thismax > max) max = thismax; |
161 |
+ |
cout<<"max "<<max<<endl; |
162 |
|
} |
163 |
+ |
|
164 |
+ |
for(int i=0; i<6;i++) rpcTimeOfFlightBarrel_[i]->SetMaximum(max); |
165 |
+ |
|
166 |
|
leg->Draw("same"); |
167 |
|
gStyle->SetOptStat(0); |
168 |
|
gStyle->SetOptTitle(0); |
177 |
|
legend.str(""); |
178 |
|
legend<<"ToF Disk 3 Mean "<<rpcTimeOfFlightEndCap_[2]->GetMean()<<"ns"; |
179 |
|
leg->AddEntry(rpcTimeOfFlightEndCap_[2],legend.str().c_str(),"f"); |
180 |
+ |
|
181 |
+ |
float max = rpcTimeOfFlightEndCap_[2]->GetBinContent(rpcTimeOfFlightEndCap_[2]->GetMaximumBin()); |
182 |
+ |
cout<<"max "<<max<<endl; |
183 |
+ |
|
184 |
|
for(int i=1;i>=0;i--){ |
185 |
|
rpcTimeOfFlightEndCap_[i]->SetFillColor(i+1); |
186 |
|
legend.str(""); |
187 |
|
legend<<"ToF Disk "<<i+1<<" Mean "<<rpcTimeOfFlightEndCap_[i]->GetMean()<<"ns"; |
188 |
|
leg->AddEntry(rpcTimeOfFlightEndCap_[i],legend.str().c_str(),"f"); |
189 |
|
rpcTimeOfFlightEndCap_[i]->Draw("same"); |
190 |
< |
rpcTimeOfFlightEndCap_[i]->GetYaxis()->UnZoom(); |
190 |
> |
float thismax = rpcTimeOfFlightEndCap_[i]->GetBinContent(rpcTimeOfFlightEndCap_[i]->GetMaximumBin()); |
191 |
> |
if(thismax > max) max = thismax; |
192 |
> |
cout<<"max "<<max<<endl; |
193 |
|
} |
194 |
|
|
195 |
+ |
rpcTimeOfFlightEndCap_[0]->SetMaximum(max); |
196 |
+ |
rpcTimeOfFlightEndCap_[1]->SetMaximum(max); |
197 |
+ |
rpcTimeOfFlightEndCap_[2]->SetMaximum(max); |
198 |
+ |
|
199 |
+ |
|
200 |
|
leg->Draw("same"); |
201 |
|
gStyle->SetOptStat(0); |
202 |
|
gStyle->SetOptTitle(0); |
212 |
|
legend.str(""); |
213 |
|
legend<<"BX Layer 1 Mean "<<rpcBXBarrel_[0]->GetMean(); |
214 |
|
leg->AddEntry(rpcBXBarrel_[0],legend.str().c_str(),"l"); |
215 |
+ |
|
216 |
+ |
float max = rpcBXBarrel_[0]->GetBinContent(rpcBXBarrel_[0]->GetMaximumBin()); |
217 |
|
|
218 |
|
for(int i=1; i<6;i++){ |
219 |
|
rpcBXBarrel_[i]->SetLineColor(i+1); |
222 |
|
leg->AddEntry(rpcBXBarrel_[i],legend.str().c_str(),"l"); |
223 |
|
rpcBXBarrel_[i]->SetLineWidth(3); |
224 |
|
rpcBXBarrel_[i]->Draw("same"); |
225 |
+ |
float thismax = rpcBXBarrel_[i]->GetBinContent(rpcBXBarrel_[i]->GetMaximumBin()); |
226 |
+ |
if(thismax > max) max = thismax; |
227 |
|
} |
228 |
< |
|
228 |
> |
|
229 |
> |
for(int i=0; i<6;i++)rpcBXBarrel_[i]->SetMaximum(max); |
230 |
> |
|
231 |
|
leg->Draw("same"); |
232 |
|
gStyle->SetOptStat(0); |
233 |
|
gStyle->SetOptTitle(0); |
244 |
|
legend.str(""); |
245 |
|
legend<<"BX Disk 1 Mean "<<rpcBXEndCap_[0]->GetMean(); |
246 |
|
leg->AddEntry(rpcBXEndCap_[0],legend.str().c_str(),"l"); |
247 |
< |
|
247 |
> |
|
248 |
> |
float max = rpcBXEndCap_[0]->GetBinContent(rpcBXEndCap_[0]->GetMaximumBin()); |
249 |
> |
|
250 |
> |
|
251 |
|
for(int i=1; i<3;i++){ |
252 |
|
rpcBXEndCap_[i]->SetLineColor(i+1); |
253 |
|
legend.str(""); |
255 |
|
leg->AddEntry(rpcBXEndCap_[i],legend.str().c_str(),"l"); |
256 |
|
rpcBXEndCap_[i]->SetLineWidth(3); |
257 |
|
rpcBXEndCap_[i]->Draw("same"); |
258 |
+ |
float thismax = rpcBXEndCap_[i]->GetBinContent(rpcBXEndCap_[i]->GetMaximumBin()); |
259 |
+ |
if(thismax > max) max = thismax; |
260 |
|
} |
261 |
|
|
262 |
+ |
for(int i=0; i<3;i++)rpcBXEndCap_[i]->SetMaximum(max); |
263 |
+ |
|
264 |
|
leg->Draw("same"); |
265 |
|
gStyle->SetOptStat(0); |
266 |
|
gStyle->SetOptTitle(0); |