39 etadivisions_(
pset.getUntrackedParameter<unsigned
int>(
"EtaDivisions", 10)),
40 phidivisions_(
pset.getUntrackedParameter<unsigned
int>(
"PhiDivisions", 10)),
41 etamax_(
pset.getUntrackedParameter<double>(
"EtaMax", 2.4))
71 for (
const auto& idet : detcabling.getDetCabling()) {
76 auto geom_det = tkgeom.idToDetUnit(
DetId(idet.first));
77 auto strip_det = dynamic_cast<StripGeomDetUnit const*>(geom_det);
83 double eta = tkgeom.idToDet(
DetId(idet.first))->position().eta();
84 double phi = tkgeom.idToDet(
DetId(idet.first))->position().phi().value();
88 uint32_t subdet = static_cast<uint32_t>(SiStripRegionCabling::subdetFromDetId(idet.first));
91 uint32_t layer = tTopo.layer(idet.first);
94 const std::vector<const FedChannelConnection*>& conns = idet.second;
98 auto& elem = regioncabling[reg][subdet][layer].back();
99 elem.first = idet.first;
100 elem.second.resize(conns.size());
101 for (
const auto& iconn : conns) {
102 if ((iconn !=
nullptr) && (iconn->apvPairNumber() < conns.size())) {
103 elem.second[iconn->apvPairNumber()] = *iconn;
109 RegionConnections->setRegionCabling(regioncabling);
111 return RegionConnections;