Definition at line 29 of file PhotonFixCMS.cc.
43 double bc[170][360][2];
44 for (
int iz(0); iz < 2; iz++) {
45 for (
int ie(0); ie < 85; ie++) {
49 for (
int ip(0); ip < 360; ip++) {
52 auto cellGeometry = barrelGeometry->
getGeometry(eb);
53 const GlobalPoint &crystalPos = cellGeometry->getPosition();
54 bc[85 * iz + ie][ip][0] = crystalPos.
eta();
55 bc[85 * iz + ie][ip][1] = crystalPos.
phi();
60 for (
unsigned i(0);
i < 169;
i++) {
61 for (
unsigned j(0);
j < 360;
j++) {
62 unsigned k((
j + 1) % 360);
64 double eta = 0.25 * (bc[
i][
j][0] + bc[
i + 1][
j][0] + bc[
i][
k][0] + bc[
i + 1][
k][0]);
71 if ((
i % 5) == 4 && (
j % 2) == 1) {
112 double ec[2][100][100][2];
113 bool valid[100][100];
115 for (
int iz(0); iz < 2; iz++) {
116 for (
int ix(0); ix < 100; ix++) {
117 for (
int iy(0); iy < 100; iy++) {
122 EEDetId ee(ix + 1, iy + 1, 2 * iz - 1);
125 auto cellGeometry = endcapGeometry->
getGeometry(ee);
126 const GlobalPoint &crystalPos = cellGeometry->getPosition();
127 ec[iz][ix][iy][0] = asinh(crystalPos.
x() / fabs(crystalPos.
z()));
128 ec[iz][ix][iy][1] = asinh(crystalPos.
y() / fabs(crystalPos.
z()));
133 std::cout <<
"GG valid " << val_count << std::endl;
135 for (
unsigned iz(0); iz < 2; iz++) {
136 unsigned nC(0), nS(0);
137 for (
unsigned i(0);
i < 99;
i++) {
138 for (
unsigned j(0);
j < 99;
j++) {
140 for (
unsigned k(0);
k < 2;
k++) {
141 c[
k] = 0.25 * (ec[iz][
i][
j][
k] + ec[iz][
i + 1][
j][
k] + ec[iz][
i][
j + 1][
k] + ec[iz][
i + 1][
j + 1][
k]);
146 if ((
i % 5) == 4 && (
j % 5) == 4) {
147 for (
unsigned k(0);
k < 2;
k++) {
156 std::cout <<
"Endcap number of crystal, submodule boundaries = " << nC <<
", " << nS << std::endl;
References PhotonFix::barrelCGap(), PhotonFix::barrelMGap(), PhotonFix::barrelSGap(), HltBtagPostValidation_cff::c, gather_cfg::cout, DetId::Ecal, EcalBarrel, EcalEndcap, PhotonFix::endcapCGap(), PhotonFix::endcapCrystal(), PhotonFix::endcapMGap(), PhotonFix::endcapSGap(), PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), edm::EventSetup::get(), get, PhotonFix::GetaPhi(), CaloSubdetectorGeometry::getGeometry(), mps_fire::i, PhotonFix::initialised(), PhotonFix::initialiseParameters(), dqmiolumiharvest::j, dqmdumpme::k, phi, PV3DBase< T, PVType, FrameType >::phi(), alignCSCRings::s, validateGeometry_cfg::valid, EEDetId::validDetId(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().