189 for (
const auto &iter :
pMuon()->DTChambers())
191 for (
const auto &iter :
pMuon()->CSCChambers())
195 int id =
chamber->geomDetId().rawId();
212 "summary of x means and errors (mm vertical axis)",
218 "summary of y means and errors (mm vertical axis)",
297 "MB station 1 weighted mean x residual per chamber (mm)",
303 "MB station 2 weighted mean x residual per chamber (mm)",
309 "MB station 3 weighted mean x residual per chamber (mm)",
315 "MB station 4 weighted mean x residual per chamber (mm)",
321 "MB wheel -2 weighted mean x residual per chamber (mm)",
327 "MB wheel -1 weighted mean x residual per chamber (mm)",
333 "MB wheel 0 weighted mean x residual per chamber (mm)",
339 "MB wheel +1 weighted mean x residual per chamber (mm)",
345 "MB wheel +2 weighted mean x residual per chamber (mm)",
351 "ME+1/1 weighted mean x residual per chamber (mm)",
357 "ME+1/2 weighted mean x residual per chamber (mm)",
363 "ME+1/3 weighted mean x residual per chamber (mm)",
369 "ME+1/4 weighted mean x residual per chamber (mm)",
375 "ME+2/1 weighted mean x residual per chamber (mm)",
381 "ME+2/2 weighted mean x residual per chamber (mm)",
387 "ME+3/1 weighted mean x residual per chamber (mm)",
393 "ME+3/2 weighted mean x residual per chamber (mm)",
399 "ME+4/1 weighted mean x residual per chamber (mm)",
405 "ME-1/1 weighted mean x residual per chamber (mm)",
411 "ME-1/2 weighted mean x residual per chamber (mm)",
417 "ME-1/3 weighted mean x residual per chamber (mm)",
423 "ME-1/4 weighted mean x residual per chamber (mm)",
429 "ME-2/1 weighted mean x residual per chamber (mm)",
435 "ME-2/2 weighted mean x residual per chamber (mm)",
441 "ME-3/1 weighted mean x residual per chamber (mm)",
447 "ME-3/2 weighted mean x residual per chamber (mm)",
453 "ME-4/1 weighted mean x residual per chamber (mm)",
459 "ME1/1 weighted mean x residual per chamber (mm)",
465 "ME1/2 weighted mean x residual per chamber (mm)",
471 "ME1/3 weighted mean x residual per chamber (mm)",
477 "ME1/4 weighted mean x residual per chamber (mm)",
483 "ME2/1 weighted mean x residual per chamber (mm)",
489 "ME2/2 weighted mean x residual per chamber (mm)",
495 "ME3/1 weighted mean x residual per chamber (mm)",
501 "ME3/2 weighted mean x residual per chamber (mm)",
507 "ME4/1 weighted mean x residual per chamber (mm)",
516 "barrel weighted stdev x residual per chamber (mm)",
522 "endcap weighted stdev x residual per chamber (mm)",
528 "MB station 1 weighted stdev x residual per chamber (mm)",
534 "MB station 2 weighted stdev x residual per chamber (mm)",
540 "MB station 3 weighted stdev x residual per chamber (mm)",
546 "MB station 4 weighted stdev x residual per chamber (mm)",
552 "MB wheel -2 weighted stdev x residual per chamber (mm)",
558 "MB wheel -1 weighted stdev x residual per chamber (mm)",
564 "MB wheel 0 weighted stdev x residual per chamber (mm)",
570 "MB wheel +1 weighted stdev x residual per chamber (mm)",
576 "MB wheel +2 weighted stdev x residual per chamber (mm)",
582 "ME+1/1 weighted stdev x residual per chamber (mm)",
588 "ME+1/2 weighted stdev x residual per chamber (mm)",
594 "ME+1/3 weighted stdev x residual per chamber (mm)",
600 "ME+1/4 weighted stdev x residual per chamber (mm)",
606 "ME+2/1 weighted stdev x residual per chamber (mm)",
612 "ME+2/2 weighted stdev x residual per chamber (mm)",
618 "ME+3/1 weighted stdev x residual per chamber (mm)",
624 "ME+3/2 weighted stdev x residual per chamber (mm)",
630 "ME+4/1 weighted stdev x residual per chamber (mm)",
636 "ME-1/1 weighted stdev x residual per chamber (mm)",
642 "ME-1/2 weighted stdev x residual per chamber (mm)",
648 "ME-1/3 weighted stdev x residual per chamber (mm)",
654 "ME-1/4 weighted stdev x residual per chamber (mm)",
660 "ME-2/1 weighted stdev x residual per chamber (mm)",
666 "ME-2/2 weighted stdev x residual per chamber (mm)",
672 "ME-3/1 weighted stdev x residual per chamber (mm)",
678 "ME-3/2 weighted stdev x residual per chamber (mm)",
684 "ME-4/1 weighted stdev x residual per chamber (mm)",
690 "ME1/1 weighted stdev x residual per chamber (mm)",
696 "ME1/2 weighted stdev x residual per chamber (mm)",
702 "ME1/3 weighted stdev x residual per chamber (mm)",
708 "ME1/4 weighted stdev x residual per chamber (mm)",
714 "ME2/1 weighted stdev x residual per chamber (mm)",
720 "ME2/2 weighted stdev x residual per chamber (mm)",
726 "ME3/1 weighted stdev x residual per chamber (mm)",
732 "ME3/2 weighted stdev x residual per chamber (mm)",
738 "ME4/1 weighted stdev x residual per chamber (mm)",
745 "error on x weighted mean residual per chamber (mm)",
751 "barrel error on x weighted mean residual per chamber (mm)",
757 "endcap error on x weighted mean residual per chamber (mm)",
763 "MB station 1 error on x weighted mean residual per chamber (mm)",
769 "MB station 2 error on x weighted mean residual per chamber (mm)",
775 "MB station 3 error on x weighted mean residual per chamber (mm)",
781 "MB station 4 error on x weighted mean residual per chamber (mm)",
787 "MB wheel -2 error on x weighted mean residual per chamber (mm)",
793 "MB wheel -1 error on x weighted mean residual per chamber (mm)",
799 "MB wheel 0 error on x weighted mean residual per chamber (mm)",
805 "MB wheel +1 error on x weighted mean residual per chamber (mm)",
811 "MB wheel +2 error on x weighted mean residual per chamber (mm)",
817 "ME+1/1 error on x weighted mean residual per chamber (mm)",
823 "ME+1/2 error on x weighted mean residual per chamber (mm)",
829 "ME+1/3 error on x weighted mean residual per chamber (mm)",
835 "ME+1/4 error on x weighted mean residual per chamber (mm)",
841 "ME+2/1 error on x weighted mean residual per chamber (mm)",
847 "ME+2/2 error on x weighted mean residual per chamber (mm)",
853 "ME+3/1 error on x weighted mean residual per chamber (mm)",
859 "ME+3/2 error on x weighted mean residual per chamber (mm)",
865 "ME+4/1 error on x weighted mean residual per chamber (mm)",
871 "ME-1/1 error on x weighted mean residual per chamber (mm)",
877 "ME-1/2 error on x weighted mean residual per chamber (mm)",
883 "ME-1/3 error on x weighted mean residual per chamber (mm)",
889 "ME-1/4 error on x weighted mean residual per chamber (mm)",
895 "ME-2/1 error on x weighted mean residual per chamber (mm)",
901 "ME-2/2 error on x weighted mean residual per chamber (mm)",
907 "ME-3/1 error on x weighted mean residual per chamber (mm)",
913 "ME-3/2 error on x weighted mean residual per chamber (mm)",
919 "ME-4/1 error on x weighted mean residual per chamber (mm)",
925 "ME1/1 error on x weighted mean residual per chamber (mm)",
931 "ME1/2 error on x weighted mean residual per chamber (mm)",
937 "ME1/3 error on x weighted mean residual per chamber (mm)",
943 "ME1/4 error on x weighted mean residual per chamber (mm)",
949 "ME2/1 error on x weighted mean residual per chamber (mm)",
955 "ME2/2 error on x weighted mean residual per chamber (mm)",
961 "ME3/1 error on x weighted mean residual per chamber (mm)",
967 "ME3/2 error on x weighted mean residual per chamber (mm)",
973 "ME4/1 error on x weighted mean residual per chamber (mm)",
1052 "MB station 1 weighted mean y residual per chamber (mm)",
1058 "MB station 2 weighted mean y residual per chamber (mm)",
1064 "MB station 3 weighted mean y residual per chamber (mm)",
1070 "MB station 4 weighted mean y residual per chamber (mm)",
1076 "MB wheel -2 weighted mean y residual per chamber (mm)",
1082 "MB wheel -1 weighted mean y residual per chamber (mm)",
1088 "MB wheel 0 weighted mean y residual per chamber (mm)",
1094 "MB wheel +1 weighted mean y residual per chamber (mm)",
1100 "MB wheel +2 weighted mean y residual per chamber (mm)",
1106 "ME+1/1 weighted mean y residual per chamber (mm)",
1112 "ME+1/2 weighted mean y residual per chamber (mm)",
1118 "ME+1/3 weighted mean y residual per chamber (mm)",
1124 "ME+1/4 weighted mean y residual per chamber (mm)",
1130 "ME+2/1 weighted mean y residual per chamber (mm)",
1136 "ME+2/2 weighted mean y residual per chamber (mm)",
1142 "ME+3/1 weighted mean y residual per chamber (mm)",
1148 "ME+3/2 weighted mean y residual per chamber (mm)",
1154 "ME+4/1 weighted mean y residual per chamber (mm)",
1160 "ME-1/1 weighted mean y residual per chamber (mm)",
1166 "ME-1/2 weighted mean y residual per chamber (mm)",
1172 "ME-1/3 weighted mean y residual per chamber (mm)",
1178 "ME-1/4 weighted mean y residual per chamber (mm)",
1184 "ME-2/1 weighted mean y residual per chamber (mm)",
1190 "ME-2/2 weighted mean y residual per chamber (mm)",
1196 "ME-3/1 weighted mean y residual per chamber (mm)",
1202 "ME-3/2 weighted mean y residual per chamber (mm)",
1208 "ME-4/1 weighted mean y residual per chamber (mm)",
1214 "ME1/1 weighted mean y residual per chamber (mm)",
1220 "ME1/2 weighted mean y residual per chamber (mm)",
1226 "ME1/3 weighted mean y residual per chamber (mm)",
1232 "ME1/4 weighted mean y residual per chamber (mm)",
1238 "ME2/1 weighted mean y residual per chamber (mm)",
1244 "ME2/2 weighted mean y residual per chamber (mm)",
1250 "ME3/1 weighted mean y residual per chamber (mm)",
1256 "ME3/2 weighted mean y residual per chamber (mm)",
1262 "ME4/1 weighted mean y residual per chamber (mm)",
1271 "barrel weighted stdev y residual per chamber (mm)",
1277 "endcap weighted stdev y residual per chamber (mm)",
1283 "MB station 1 weighted stdev y residual per chamber (mm)",
1289 "MB station 2 weighted stdev y residual per chamber (mm)",
1295 "MB station 3 weighted stdev y residual per chamber (mm)",
1301 "MB station 4 weighted stdev y residual per chamber (mm)",
1307 "MB wheel -2 weighted stdev y residual per chamber (mm)",
1313 "MB wheel -1 weighted stdev y residual per chamber (mm)",
1319 "MB wheel 0 weighted stdev y residual per chamber (mm)",
1325 "MB wheel +1 weighted stdev y residual per chamber (mm)",
1331 "MB wheel +2 weighted stdev y residual per chamber (mm)",
1337 "ME+1/1 weighted stdev y residual per chamber (mm)",
1343 "ME+1/2 weighted stdev y residual per chamber (mm)",
1349 "ME+1/3 weighted stdev y residual per chamber (mm)",
1355 "ME+1/4 weighted stdev y residual per chamber (mm)",
1361 "ME+2/1 weighted stdev y residual per chamber (mm)",
1367 "ME+2/2 weighted stdev y residual per chamber (mm)",
1373 "ME+3/1 weighted stdev y residual per chamber (mm)",
1379 "ME+3/2 weighted stdev y residual per chamber (mm)",
1385 "ME+4/1 weighted stdev y residual per chamber (mm)",
1391 "ME-1/1 weighted stdev y residual per chamber (mm)",
1397 "ME-1/2 weighted stdev y residual per chamber (mm)",
1403 "ME-1/3 weighted stdev y residual per chamber (mm)",
1409 "ME-1/4 weighted stdev y residual per chamber (mm)",
1415 "ME-2/1 weighted stdev y residual per chamber (mm)",
1421 "ME-2/2 weighted stdev y residual per chamber (mm)",
1427 "ME-3/1 weighted stdev y residual per chamber (mm)",
1433 "ME-3/2 weighted stdev y residual per chamber (mm)",
1439 "ME-4/1 weighted stdev y residual per chamber (mm)",
1445 "ME1/1 weighted stdev y residual per chamber (mm)",
1451 "ME1/2 weighted stdev y residual per chamber (mm)",
1457 "ME1/3 weighted stdev y residual per chamber (mm)",
1463 "ME1/4 weighted stdev y residual per chamber (mm)",
1469 "ME2/1 weighted stdev y residual per chamber (mm)",
1475 "ME2/2 weighted stdev y residual per chamber (mm)",
1481 "ME3/1 weighted stdev y residual per chamber (mm)",
1487 "ME3/2 weighted stdev y residual per chamber (mm)",
1493 "ME4/1 weighted stdev y residual per chamber (mm)",
1500 "error on y weighted mean residual per chamber (mm)",
1506 "barrel error on y weighted mean residual per chamber (mm)",
1512 "endcap error on y weighted mean residual per chamber (mm)",
1518 "MB station 1 error on y weighted mean residual per chamber (mm)",
1524 "MB station 2 error on y weighted mean residual per chamber (mm)",
1530 "MB station 3 error on y weighted mean residual per chamber (mm)",
1536 "MB station 4 error on y weighted mean residual per chamber (mm)",
1541 "yerronmean_minus2",
1542 "MB wheel -2 error on y weighted mean residual per chamber (mm)",
1547 "yerronmean_minus1",
1548 "MB wheel -1 error on y weighted mean residual per chamber (mm)",
1554 "MB wheel 0 error on y weighted mean residual per chamber (mm)",
1560 "MB wheel +1 error on y weighted mean residual per chamber (mm)",
1566 "MB wheel +2 error on y weighted mean residual per chamber (mm)",
1572 "ME+1/1 error on y weighted mean residual per chamber (mm)",
1578 "ME+1/2 error on y weighted mean residual per chamber (mm)",
1584 "ME+1/3 error on y weighted mean residual per chamber (mm)",
1590 "ME+1/4 error on y weighted mean residual per chamber (mm)",
1596 "ME+2/1 error on y weighted mean residual per chamber (mm)",
1602 "ME+2/2 error on y weighted mean residual per chamber (mm)",
1608 "ME+3/1 error on y weighted mean residual per chamber (mm)",
1614 "ME+3/2 error on y weighted mean residual per chamber (mm)",
1620 "ME+4/1 error on y weighted mean residual per chamber (mm)",
1626 "ME-1/1 error on y weighted mean residual per chamber (mm)",
1632 "ME-1/2 error on y weighted mean residual per chamber (mm)",
1638 "ME-1/3 error on y weighted mean residual per chamber (mm)",
1644 "ME-1/4 error on y weighted mean residual per chamber (mm)",
1650 "ME-2/1 error on y weighted mean residual per chamber (mm)",
1656 "ME-2/2 error on y weighted mean residual per chamber (mm)",
1662 "ME-3/1 error on y weighted mean residual per chamber (mm)",
1668 "ME-3/2 error on y weighted mean residual per chamber (mm)",
1674 "ME-4/1 error on y weighted mean residual per chamber (mm)",
1680 "ME1/1 error on y weighted mean residual per chamber (mm)",
1686 "ME1/2 error on y weighted mean residual per chamber (mm)",
1692 "ME1/3 error on y weighted mean residual per chamber (mm)",
1698 "ME1/4 error on y weighted mean residual per chamber (mm)",
1704 "ME2/1 error on y weighted mean residual per chamber (mm)",
1710 "ME2/2 error on y weighted mean residual per chamber (mm)",
1716 "ME3/1 error on y weighted mean residual per chamber (mm)",
1722 "ME3/2 error on y weighted mean residual per chamber (mm)",
1728 "ME4/1 error on y weighted mean residual per chamber (mm)",
1758 for (ConstTrajTrackPairCollection::const_iterator it =
tracks.begin(); it !=
tracks.end(); ++it) {
1762 std::vector<TrajectoryMeasurement> measurements = traj->
measurements();
1764 for (std::vector<TrajectoryMeasurement>::const_iterator im = measurements.begin(); im != measurements.end(); ++im) {
1767 const DetId id =
hit->geographicalId();
1779 if (localAPE.valid()) {
1780 hitErr =
LocalError(hitErr.
xx() - localAPE.xx(), hitErr.
xy() - localAPE.xy(), hitErr.
yy() - localAPE.yy());
1783 double x_residual = 10. * (trackPos.
x() - hitPos.
x());
1784 double y_residual = 10. * (trackPos.
y() - hitPos.
y());
1785 double x_reserr2 = 100. * (trackErr.
xx() + hitErr.
xx());
1786 double y_reserr2 = 100. * (trackErr.
yy() + hitErr.
yy());
1793 y_residual = x_residual;
1794 y_reserr2 = x_reserr2;
1803 if (x_reserr2 > 0.) {
1804 m_xresid->Fill(x_residual, 1. / x_reserr2);
1807 if (y_reserr2 > 0.) {
1808 m_yresid->Fill(y_residual, 1. / y_reserr2);
1813 int rawId = dtId.
rawId();
1814 if (x_reserr2 > 0.) {
1816 m_x_w[rawId] += 1. / x_reserr2;
1817 m_x_ww[rawId] += 1. / x_reserr2 / x_reserr2;
1818 m_x_wx[rawId] += x_residual / x_reserr2;
1819 m_x_wxx[rawId] += x_residual * x_residual / x_reserr2;
1821 if (y_reserr2 > 0.) {
1823 m_y_w[rawId] += 1. / y_reserr2;
1824 m_y_ww[rawId] += 1. / y_reserr2 / y_reserr2;
1825 m_y_wy[rawId] += y_residual / y_reserr2;
1826 m_y_wyy[rawId] += y_residual * y_residual / y_reserr2;
1830 if (x_reserr2 > 0.) {
1833 if (y_reserr2 > 0.) {
1836 }
else if (dtId.
station() == 2) {
1837 if (x_reserr2 > 0.) {
1840 if (y_reserr2 > 0.) {
1843 }
else if (dtId.
station() == 3) {
1844 if (x_reserr2 > 0.) {
1847 if (y_reserr2 > 0.) {
1850 }
else if (dtId.
station() == 4) {
1851 if (x_reserr2 > 0.) {
1854 if (y_reserr2 > 0.) {
1859 if (dtId.
wheel() == -2) {
1860 if (x_reserr2 > 0.) {
1863 if (y_reserr2 > 0.) {
1866 }
else if (dtId.
wheel() == -1) {
1867 if (x_reserr2 > 0.) {
1870 if (y_reserr2 > 0.) {
1873 }
else if (dtId.
wheel() == 0) {
1874 if (x_reserr2 > 0.) {
1877 if (y_reserr2 > 0.) {
1880 }
else if (dtId.
wheel() == 1) {
1881 if (x_reserr2 > 0.) {
1884 if (y_reserr2 > 0.) {
1887 }
else if (dtId.
wheel() == 2) {
1888 if (x_reserr2 > 0.) {
1891 if (y_reserr2 > 0.) {
1898 m_xresid->Fill(x_residual, 1. / x_reserr2);
1899 m_yresid->Fill(y_residual, 1. / y_reserr2);
1906 if (x_reserr2 > 0.) {
1908 m_x_w[rawId] += 1. / x_reserr2;
1909 m_x_ww[rawId] += 1. / x_reserr2 / x_reserr2;
1910 m_x_wx[rawId] += x_residual / x_reserr2;
1911 m_x_wxx[rawId] += x_residual * x_residual / x_reserr2;
1913 if (y_reserr2 > 0.) {
1915 m_y_w[rawId] += 1. / y_reserr2;
1916 m_y_ww[rawId] += 1. / y_reserr2 / y_reserr2;
1917 m_y_wy[rawId] += y_residual / y_reserr2;
1918 m_y_wyy[rawId] += y_residual * y_residual / y_reserr2;
1921 if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == 1 && cscId.
ring() == 1) {
1926 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == -1 && cscId.
ring() == 1) {
1931 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == 1 && cscId.
ring() == 2) {
1936 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == -1 && cscId.
ring() == 2) {
1941 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == 1 && cscId.
ring() == 3) {
1946 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == -1 && cscId.
ring() == 3) {
1951 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == 1 && cscId.
ring() == 4) {
1956 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == -1 && cscId.
ring() == 4) {
1961 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == 2 && cscId.
ring() == 1) {
1966 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == -2 && cscId.
ring() == 1) {
1971 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == 2 && cscId.
ring() == 2) {
1976 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == -2 && cscId.
ring() == 2) {
1981 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == 3 && cscId.
ring() == 1) {
1986 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == -3 && cscId.
ring() == 1) {
1991 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == 3 && cscId.
ring() == 2) {
1996 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == -3 && cscId.
ring() == 2) {
2001 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == 4 && cscId.
ring() == 1) {
2006 }
else if ((cscId.
endcap() == 1 ? 1 : -1) * cscId.
station() == -4 && cscId.
ring() == 1) {
2022 for (
const auto &iter :
pMuon()->DTChambers())
2024 for (
const auto &iter :
pMuon()->CSCChambers())
2029 const int id =
chamber->geomDetId().rawId();
2047 std::ostringstream
name;
2050 name <<
"MB" << dtId.wheel() <<
"/" << dtId.station() <<
" (" << dtId.sector() <<
")";
2059 name <<
"ME" << (cscId.endcap() == 1 ?
"+" :
"-") << cscId.station() <<
"/" << cscId.ring() <<
" (" 2060 << cscId.chamber() <<
")";
2079 double xerronmean = xstdev /
sqrt(
m_numx[
id]);
2096 }
else if (
id.
station() == 2) {
2100 }
else if (
id.
station() == 3) {
2104 }
else if (
id.
station() == 4) {
2110 if (
id.
wheel() == -2) {
2114 }
else if (
id.
wheel() == -1) {
2118 }
else if (
id.
wheel() == 0) {
2122 }
else if (
id.
wheel() == 1) {
2126 }
else if (
id.
wheel() == 2) {
2139 if ((
id.
endcap() == 1 ? 1 : -1) *
id.station() == 1 &&
id.ring() == 1) {
2146 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -1 &&
id.
ring() == 1) {
2160 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -1 &&
id.
ring() == 2) {
2174 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -1 &&
id.
ring() == 3) {
2188 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -1 &&
id.
ring() == 4) {
2202 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -2 &&
id.
ring() == 1) {
2216 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -2 &&
id.
ring() == 2) {
2230 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -3 &&
id.
ring() == 1) {
2244 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -3 &&
id.
ring() == 2) {
2258 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -4 &&
id.
ring() == 1) {
2273 double yerronmean = ystdev /
sqrt(
m_numy[
id]);
2290 }
else if (
id.
station() == 2) {
2294 }
else if (
id.
station() == 3) {
2298 }
else if (
id.
station() == 4) {
2304 if (
id.
wheel() == -2) {
2308 }
else if (
id.
wheel() == -1) {
2312 }
else if (
id.
wheel() == 0) {
2316 }
else if (
id.
wheel() == 1) {
2320 }
else if (
id.
wheel() == 2) {
2333 if ((
id.
endcap() == 1 ? 1 : -1) *
id.station() == 1 &&
id.ring() == 1) {
2340 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -1 &&
id.
ring() == 1) {
2354 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -1 &&
id.
ring() == 2) {
2368 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -1 &&
id.
ring() == 3) {
2382 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -1 &&
id.
ring() == 4) {
2396 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -2 &&
id.
ring() == 1) {
2410 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -2 &&
id.
ring() == 2) {
2424 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -3 &&
id.
ring() == 1) {
2438 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -3 &&
id.
ring() == 2) {
2452 }
else if ((
id.
endcap() == 1 ? 1 : -1) *
id.
station() == -4 &&
id.
ring() == 1) {
int station() const
Return the station number.
std::map< int, double > m_x_w
TH1F * m_xerronmean_mem13
TH1F * m_yerronmean_mep21
AlignableNavigator * pNavigator()
TH1F * m_yerronmean_mem31
TH1F * m_yerronmean_mem41
TH1F * m_yerronmean_mep13
const LocalTrajectoryError & localError() const
LocalPoint localPosition() const
void afterAlignment() override
TH1F * m_xerronmean_mep21
std::map< int, int > m_numy
unsigned int yerronmean_bins
TrajectoryStateOnSurface const & forwardPredictedState() const
Access to forward predicted state (from fitter or builder)
TH1F * m_yerronmean_mem32
void book() override
Book or retrieve histograms; MUST be reimplemented.
TH1F * m_yerronmean_mem12
AlignmentMonitorMuonResiduals(const edm::ParameterSet &cfg, edm::ConsumesCollector iC)
bool detAndSubdetInMap(const DetId &detid) const
Given a DetId, returns true if DetIds with this detector and subdetector id are in the map (not neces...
TH1F * m_yerronmean_mep22
TH1F * m_xerronmean_plus1
TH1F * m_xerronmean_mem41
TH1F * m_xerronmean_mep41
LocalError positionError() const
TH1F * m_yerronmean_mep14
TH1F * m_yerronmean_plus2
TH1F * m_xerronmean_mep14
TH1F * m_yerronmean_mep11
DataContainer const & measurements() const
std::map< int, double > m_y_ww
TH1F * m_yerronmean_plus1
T * make(const Args &...args) const
make new ROOT object
TH1F * m_xerronmean_mem31
TH1F * m_yerronmean_mep31
TH1F * m_yerronmean_mep41
TFileDirectory * directory(std::string dir)
std::map< int, double > m_y_wyy
unsigned int xerronmean_bins
TH1F * m_xerronmean_mem21
void event(const edm::Event &iEvent, const edm::EventSetup &iSetup, const ConstTrajTrackPairCollection &iTrajTracks) override
Called for each event (by "run()"): may be reimplemented.
TrajectoryStateOnSurface const & backwardPredictedState() const
Access to backward predicted state (from smoother)
std::map< int, double > m_x_wxx
TH1F * m_yerronmean_mem21
TH1F * m_yerronmean_mem13
TH1F * m_xerronmean_mep32
std::vector< ConstTrajTrackPair > ConstTrajTrackPairCollection
std::map< int, double > m_x_wx
TH1F * book1D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX)
TH1F * m_xerronmean_mep13
TH1F * m_yerronmean_mem22
std::map< int, double > m_y_w
TH1F * m_xerronmean_mep22
TH1F * m_xerronmean_mep31
std::map< int, double > m_y_wy
constexpr uint32_t rawId() const
get the raw id
CSCDetId chamberId() const
std::map< int, int > m_numx
TH1F * m_xerronmean_mep12
TH1F * m_xerronmean_mem22
TH1F * m_yerronmean_minus1
TH1F * m_yerronmean_mep32
TH1F * m_yerronmean_mem11
std::vector< Alignable * > Alignables
TH1F * m_xerronmean_plus2
LocalError const & localAlignmentError() const
Return local alligment error.
TH1F * m_xerronmean_mem12
int wheel() const
Return the wheel number.
TH1F * m_yerronmean_mem14
TH1F * m_xerronmean_minus2
~AlignmentMonitorMuonResiduals() override
#define DEFINE_EDM_PLUGIN(factory, type, name)
TH1F * m_yerronmean_minus2
TH1F * m_xerronmean_mem11
TH1F * m_xerronmean_mep11
static char chambers[264][20]
TH1F * m_yerronmean_mep12
TSOS combine(const TSOS &pTsos1, const TSOS &pTsos2) const
TH1F * m_xerronmean_mem32
ConstRecHitPointer const & recHit() const
TH1F * m_xerronmean_mem14
std::map< int, double > m_x_ww
TH1F * m_xerronmean_minus1