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<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<FedChannelConnection> conns = idet->second;
63 std::vector<FedChannelConnection>::iterator iconn = conns.begin();
64 std::vector<FedChannelConnection>::iterator jconn = conns.end();
67 regioncabling[reg][subdet][layer][idet->first].resize(conns.size());
68 for ( ; iconn != jconn; ++iconn ) {
69 if ( iconn->apvPairNumber() < conns.size() ) {
70 regioncabling[reg][subdet][layer][idet->first][iconn->apvPairNumber()] = *iconn;
79 return std::auto_ptr<SiStripRegionCabling>( RegionConnections );
SiStripRegionConnectivity(const edm::ParameterSet &)
static const uint32_t invalid32_
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
static const uint32_t layerFromDetId(const uint32_t detid)
const uint32_t region(const Position) const
std::vector< WedgeCabling > RegionCabling
std::map< uint32_t, std::vector< FedChannelConnection > > ElementCabling
std::vector< RegionCabling > Cabling