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();
53 if ( !strip_det ) {
continue; }
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) !=
nullptr) && ((*iconn)->apvPairNumber() < conns.size()) ) {
77 elem.second[(*iconn)->apvPairNumber()] = **iconn;
85 return std::unique_ptr<SiStripRegionCabling>( RegionConnections );
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
SiStripRegionConnectivity(const edm::ParameterSet &)
const std::map< uint32_t, std::vector< const FedChannelConnection * > > & getDetCabling() const
std::pair< uint32_t, std::vector< FedChannelConnection > > Element
static const uint32_t invalid32_
Geom::Phi< T > phi() const
std::vector< Element > ElementCabling
void setRegionCabling(const Cabling &)
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
const Surface::PositionType & position() const
The position (origin of the R.F.)
const DepRecordT getRecord() const
static const SubDet subdetFromDetId(const uint32_t detid)
std::vector< RegionCabling > Cabling
def elem(elemtype, innerHTML='', html_class='', kwargs)
std::pair< double, double > Position
unsigned int layer(const DetId &id) const
std::vector< WedgeCabling > RegionCabling
const uint32_t region(const Position) const
std::unique_ptr< SiStripRegionCabling > produceRegionCabling(const SiStripRegionCablingRcd &)
const TrackerGeomDet * idToDet(DetId) const override
std::vector< ElementCabling > WedgeCabling
T const * product() const
~SiStripRegionConnectivity() override