37 : etadivisions_(
pset.getUntrackedParameter<unsigned
int>(
"EtaDivisions", 10)),
38 phidivisions_(
pset.getUntrackedParameter<unsigned
int>(
"PhiDivisions", 10)),
39 etamax_(
pset.getUntrackedParameter<double>(
"EtaMax", 2.4))
69 for (
const auto& idet : detcabling.getDetCabling()) {
74 auto geom_det = tkgeom.idToDetUnit(
DetId(idet.first));
75 auto strip_det = dynamic_cast<StripGeomDetUnit const*>(geom_det);
81 double eta = tkgeom.idToDet(
DetId(idet.first))->position().eta();
82 double phi = tkgeom.idToDet(
DetId(idet.first))->position().phi().value();
86 uint32_t subdet = static_cast<uint32_t>(SiStripRegionCabling::subdetFromDetId(idet.first));
89 uint32_t
layer = tTopo.layer(idet.first);
92 const std::vector<const FedChannelConnection*>& conns = idet.second;
96 auto& elem = regioncabling[reg][subdet][
layer].back();
97 elem.first = idet.first;
98 elem.second.resize(conns.size());
99 for (
const auto& iconn : conns) {
100 if ((iconn !=
nullptr) && (iconn->apvPairNumber() < conns.size())) {
101 elem.second[iconn->apvPairNumber()] = *iconn;
107 RegionConnections->setRegionCabling(regioncabling);
109 return RegionConnections;