8 const uint32_t phidivisions,
12 etadivisions_(static_cast<
int>(etadivisions)),
13 phidivisions_(static_cast<
int>(phidivisions)),
22 return PositionIndex(static_cast<uint32_t>(eta), static_cast<uint32_t>(phi));
33 int eta =
static_cast<int>(index.first) + deta;
39 int phi =
static_cast<int>(index.second) + dphi;
45 return PositionIndex(static_cast<uint32_t>(eta), static_cast<uint32_t>(phi));
67 ss <<
"[SiStripRegionCabling::" << __func__ <<
"] Printing REGION cabling:" << std::endl;
68 ss <<
"Printing cabling for " <<
regioncabling_.size() <<
" regions" << std::endl;
71 for (;
id != jd; ++
id) {
72 ss <<
"Printing cabling for " <<
id->size() <<
" regions for partition " 74 RegionCabling::const_iterator ir =
id->begin();
75 RegionCabling::const_iterator jr =
id->end();
76 for (; ir != jr; ++ir) {
77 ss <<
"Printing cabling for " << ir->size() <<
" wedges for region " <<
static_cast<int32_t
>(ir -
id->begin())
79 WedgeCabling::const_iterator iw = ir->begin();
80 WedgeCabling::const_iterator jw = ir->end();
81 for (; iw != jw; ++iw) {
82 ss <<
"Printing cabling for " << iw->size() <<
" elements for wedge " <<
static_cast<int32_t
>(iw - ir->begin())
84 ElementCabling::const_iterator ie = iw->begin();
85 ElementCabling::const_iterator je = iw->end();
86 for (; ie != je; ++ie) {
87 ss <<
"Printing cabling for " << ie->second.size() <<
" connections for element (DetId) " << ie->first
89 std::vector<FedChannelConnection>::const_iterator ic = ie->second.begin();
90 std::vector<FedChannelConnection>::const_iterator jc = ie->second.end();
91 for (; ic != jc; ++ic) {
92 if (ic->isConnected()) {
103 ss <<
"Number of connected: " << valid << std::endl <<
"Number of connections: " << total << std::endl;
void print(std::stringstream &) const
std::pair< uint32_t, uint32_t > PositionIndex
const PositionIndex positionIndex(const uint32_t) const
static const SubDet subdetFromDetId(const uint32_t detid)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
const Position position(const uint32_t) const
std::pair< double, double > Position
const uint32_t region(const Position) const
PositionIndex increment(const PositionIndex, int, int) const