11 using namespace sistrip;
15 etadivisions_(pset.getUntrackedParameter<unsigned int>(
"EtaDivisions",10)),
16 phidivisions_(pset.getUntrackedParameter<unsigned int>(
"PhiDivisions",10)),
17 etamax_(pset.getUntrackedParameter<double>(
"EtaMax",2.4))
46 std::map< uint32_t, std::vector<const FedChannelConnection *> >::const_iterator idet = detcabling->getDetCabling().begin();
47 for (;idet!=detcabling->getDetCabling().end();idet++) {
51 auto geom_det = tkgeom->idToDetUnit(
DetId(idet->first));
53 if ( !strip_det ) {
continue; }
56 double eta = tkgeom->idToDet(
DetId(idet->first))->position().eta();
57 double phi = tkgeom->idToDet(
DetId(idet->first))->position().phi().value();
64 uint32_t layer = tTopo->
layer(idet->first);
67 std::vector<const FedChannelConnection *> conns = idet->second;
68 std::vector<const FedChannelConnection *>::iterator iconn = conns.begin();
69 std::vector<const FedChannelConnection *>::iterator jconn = conns.end();
73 auto &
elem = regioncabling[reg][subdet][layer].back();
74 elem.first=idet->first;
elem.second.resize(conns.size());
75 for ( ; iconn != jconn; ++iconn ) {
76 if ( ((*iconn) != 0) && ((*iconn)->apvPairNumber() < conns.size()) ) {
77 elem.second[(*iconn)->apvPairNumber()] = **iconn;
85 return std::unique_ptr<SiStripRegionCabling>( RegionConnections );
SiStripRegionConnectivity(const edm::ParameterSet &)
static const uint32_t invalid32_
std::vector< Element > ElementCabling
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
void setRegionCabling(const Cabling &)
const DepRecordT & getRecord() const
virtual ~SiStripRegionConnectivity()
std::vector< ElementCabling > WedgeCabling
static const SubDet subdetFromDetId(const uint32_t detid)
std::pair< double, double > Position
std::pair< uint32_t, std::vector< FedChannelConnection > > Element
T const * product() const
unsigned int layer(const DetId &id) const
const uint32_t region(const Position) const
std::unique_ptr< SiStripRegionCabling > produceRegionCabling(const SiStripRegionCablingRcd &)
std::vector< WedgeCabling > RegionCabling
std::vector< RegionCabling > Cabling