28 h->GetXaxis()->SetTitle(
"");
29 h->GetXaxis()->SetLabelSize(0.03);
31 for(
size_t j=6; j<86; j++) {
33 float xmid =
h->GetBinLowEdge(j) +
h->GetBinWidth(j);
34 xmid -= 1.0; xmid *= -1.0;
35 int seclay =
int(ceil(xmid*10));
37 int lay = (seclay%10)/2 ;
39 h->GetXaxis()->SetBinLabel(j,Form(
"%c%02d:%d",(sec%2==0?
'S':
'L'),sec,lay));
42 }
else if (
side == 1) {
43 for(
size_t j=6; j<86; j++) {
45 float xmid =
h->GetBinLowEdge(j) +
h->GetBinWidth(j);
46 int seclay =
int(ceil(xmid*10));
48 int lay = (seclay%10)/2 ;
49 h->GetXaxis()->SetBinLabel(j,Form(
"%c%02d:%d",(sec%2==0?
'S':
'L'),sec,lay));
64 m_cscRdoDecoderTool(
"Muon::CscRDO_Decoder"),
65 m_cscrdo_oviewEA(nullptr),
66 m_cscrdo_oviewEC(nullptr)
105 return StatusCode::SUCCESS;
202 float nyminEC = -17.;
211 nxbins,nxmin,nxmax,nybins,nymin,nymax);
213 nxbins,nxmin,nxmax,nybins,nymin,nymax);
215 nxbins,nxmin,nxmax,nybins,nymin,nymax);
218 nxbins,nxmin,nxmax,nybins,nymin,nymax);
220 nxbins,nxmin,nxmax,nybins,nymin,nymax);
222 nxbins,nxmin,nxmax,nybins,nymin,nymax);
225 nxbins,nxmin,nxmax,nybinsEA,nyminEA,nymaxEA);
229 nybinsEA,nyminEA,nymaxEA);
233 nxbins,nxmin,nxmax,nybinsEA,nyminEA,nymaxEA);
236 nxbins,nxmin,nxmax,nybinsEC,nyminEC,nymaxEC);
240 nybinsEC,nyminEC,nymaxEC);
244 nxbins,nxmin,nxmax,nybinsEC,nyminEC,nymaxEC);
248 "ROD precision-cluster width;no.of strips;[sector] + [0.2 #times layer]",
249 192,0,192,nybins,nymin,nymax);
251 "ROD precision-cluster width;no.of strips;[sector] + [0.2 #times layer]",
252 192,0,192,nybins,nymin,nymax);
254 "ROD precision-cluster width;no.of strips;[sector] + [0.2 #times layer]",
255 192,0,192,nybins,nymin,nymax);
257 "EndCap A: ROD precision-cluster width;no.of strips;[sector] + [0.2 #times layer]",
258 192,0,192,nybinsEA,nyminEA,nymaxEA);
260 "EndCap A: ROD precision-cluster width;width(no.of strips);entries;",192,0,192);
262 "EndCap A: ROD precision-cluster width;[sector] + [0.2 #times layer];entries/layer",nybinsEA,nyminEA,nymaxEA);
266 "EndCap C: ROD precision-cluster width;no.of strips;[sector] + [0.2 #times layer]",
267 192,0,192,nybinsEC,nyminEC,nymaxEC);
269 "EndCap C: ROD precision-cluster width;width(no.of strips);entries",192,0,192);
271 "EndCap C: ROD precision-cluster width;[sector] + [0.2 #times layer];entries/layer",nybinsEC,nyminEC,nymaxEC);
276 "ROD transverse-cluster width;width(no.of strips);[sector] + [0.2 #times layer]",
277 48,0,48,nybins,nymin,nymax);
279 "ROD transverse-cluster width;width(no.of strips);[sector] + [0.2 #times layer]",
280 48,0,48,nybins,nymin,nymax);
282 "ROD transverse-cluster width;width(no.of strips);[sector] + [0.2 #times layer]",
283 48,0,48,nybins,nymin,nymax);
286 "EndCap A: ROD transverse-cluster width;width(no.of strips);[sector] + [0.2 #times layer]",
287 48,0,48,nybinsEA,nyminEA,nymaxEA);
289 "EndCap A: ROD transverse-cluster width;width(no.of strips);entries",48,0,48);
291 "EndCap A: ROD transverse-cluster width;[sector] + [0.2 #times layer];entries/layer",nybinsEA,nyminEA,nymaxEA);
295 "EndCap C: ROD transverse-cluster width;width(no.of strips);[sector] + [0.2 #times layer]",
296 48,0,48,nybinsEC,nyminEC,nymaxEC);
298 "EndCap C: ROD transverse-cluster width;width(no.of strips);entries",48,0,48);
300 "EndCap C: ROD transverse-cluster width;[sector] + [0.2 #times layer];entries/layer",nybinsEC,nyminEC,nymaxEC);
305 "ROD precision-cluster count;no.of clusters;[sector] + [0.2 #times layer]",
306 20,0,20,nybins,nymin,nymax);
308 "ROD precision-cluster count;no.of clusters;[sector] + [0.2 #times layer]",
309 20,0,20,nybins,nymin,nymax);
311 "ROD precision-cluster count;no.of clusters;[sector] + [0.2 #times layer]",
312 20,0,20,nybins,nymin,nymax);
316 "ROD transverse-cluster count;no.of clusters;[sector] + [0.2 #times layer]",
317 20,0,20,nybins,nymin,nymax);
319 "ROD transverse-cluster count;no.of clusters;[sector] + [0.2 #times layer]",
320 20,0,20,nybins,nymin,nymax);
322 "ROD transverse-cluster count;no.of clusters;[sector] + [0.2 #times layer]",
323 20,0,20,nybins,nymin,nymax);
328 "Eta vs. Phi Cluster count correlation;#varphi-cluster count;#eta-cluster count",100,0,100,100,0,100);
330 "Eta vs. Phi Noise-Cluster count correlation;#varphi-cluster count;#eta-cluster count",100,0,100,100,0,100);
332 "Eta vs. Phi Signal-Cluster count correlation;#varphi-cluster count;#eta-cluster count",100,0,100,100,0,100);
335 "Eta vs. Phi Cluster width correlation;#varphi-cluster width;#eta-cluster width",100,0,100,100,0,100);
440 if (
sc.isFailure() ) {
441 ATH_MSG_ERROR (
"Cannot register overview histogram for Endcap A: " << (*iT)->GetName() );
453 if (
sc.isFailure() ) {
454 ATH_MSG_ERROR (
"Cannot register overview histogram for Endcap C: " << (*iT)->GetName() );
497 ATH_MSG_DEBUG (
" BEGIN EVENT ========================================== " );
504 size_t nEtaClusWidthCnt = 0, nPhiClusWidthCnt = 0;
507 int clusCount[33][9], sigclusCount[33][9];
508 for(
size_t kl = 0;
kl < 33;
kl++ ) {
509 for(
size_t km = 0;
km < 9;
km++ ) {
510 clusCount[
kl][
km] = 0;
511 sigclusCount[
kl][
km] = 0;
523 int chamberType = stationString ==
"CSS" ? 0 : 1;
534 int ns = sectorNo < 0 ? sectorNo*(-1) : sectorNo+16;
535 int nl = (measuresPhi ? wireLayer : wireLayer+4);
541 ATH_MSG_DEBUG(
" ns = " <<
ns <<
"\tm_nl = " << nl <<
"\tm_sec = " << sectorNo <<
"\t m_lay= " << wireLayer <<
"\tmPhi = " << measuresPhi);
549 float secLayer = sectorNo + 0.2 * (wireLayer - 1) + 0.1;
550 int xfac = measuresPhi ? -1 : 1;
555 std::vector<float> xVals ;
557 size_t raw_clus_width = raw->
width();
568 for (
size_t n = 0;
n < raw_clus_width;
n++) {
573 float stripId =
strip * xfac;
578 xVals.push_back(stripId);
592 diff = n_max - n_min;
595 if(
diff > diff_max) diff_max =
diff;
597 ATH_MSG_DEBUG (
n <<
" Max = " << n_max <<
" Min = " << n_min <<
" Diff = " <<
diff );
601 ATH_MSG_DEBUG (
" End loop over strips======================" );
611 for(
size_t nf = 0;
nf < xVals.size();
nf++) {
647 for(
size_t nf = 0;
nf < xVals.size();
nf++)
657 ATH_MSG_DEBUG (
" End loop over clusters======================" );
662 int numeta = 0, numphi = 0;
663 int numetasignal = 0, numphisignal = 0;
664 for(
int kl = 1;
kl < 33;
kl++ ) {
667 for(
int km = 1;
km < 9;
km++ ) {
669 int lay = (
km > 4 &&
km < 9) ?
km-4 :
km;
670 bool mphi = (
km > 0 &&
km < 5) ?
true :
false;
671 std::string wlay = mphi ?
"Phi-Layer " :
"Eta-Layer: ";
676 float secLayer =
kl-16 + 0.2 * (lay - 1) + 0.1;
698 ATH_MSG_DEBUG ( wlay <<
"Counts sec: [" <<
kl-16 <<
"]\tlayer: [" <<
km <<
"] = " <<
709 ATH_MSG_DEBUG (
" END EVENT ============================================ " );
713 ATH_MSG_DEBUG (
"CSCRdoMon::fillHistograms reports success" );
725 return StatusCode::SUCCESS;