10 using namespace sistrip;
14 etadivisions_(pset.getUntrackedParameter<unsigned int>(
"EtaDivisions",10)),
15 phidivisions_(pset.getUntrackedParameter<unsigned int>(
"PhiDivisions",10)),
16 etamax_(pset.getUntrackedParameter<double>(
"EtaMax",2.4))
41 std::map< uint32_t, std::vector<const FedChannelConnection *> >::const_iterator idet = detcabling->getDetCabling().begin();
42 for (;idet!=detcabling->getDetCabling().end();idet++) {
48 if ( !strip_det ) {
continue; }
51 double eta = tkgeom->idToDet(
DetId(idet->first))->position().eta();
52 double phi = tkgeom->idToDet(
DetId(idet->first))->position().phi().value();
62 std::vector<const FedChannelConnection *> conns = idet->second;
63 std::vector<const FedChannelConnection *>::iterator iconn = conns.begin();
64 std::vector<const FedChannelConnection *>::iterator jconn = conns.end();
68 auto &
elem = regioncabling[reg][subdet][layer].back();
69 elem.first=idet->first;
elem.second.resize(conns.size());
70 for ( ; iconn != jconn; ++iconn ) {
71 if ( ((*iconn) != 0) && ((*iconn)->apvPairNumber() < conns.size()) ) {
72 elem.second[(*iconn)->apvPairNumber()] = **iconn;
80 return std::auto_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())
std::auto_ptr< SiStripRegionCabling > produceRegionCabling(const SiStripRegionCablingRcd &)
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
static const uint32_t layerFromDetId(const uint32_t detid)
const uint32_t region(const Position) const
std::vector< WedgeCabling > RegionCabling
std::vector< RegionCabling > Cabling