9 etadivisions_(static_cast<
int>(etadivisions)),
10 phidivisions_(static_cast<
int>(phidivisions)),
19 return PositionIndex(static_cast<uint32_t>(eta),static_cast<uint32_t>(phi));
29 int eta =
static_cast<int>(index.first)+deta;
31 else if (eta < 0) eta = 0;
33 int phi =
static_cast<int>(index.second)+dphi;
37 return PositionIndex(static_cast<uint32_t>(eta),static_cast<uint32_t>(phi));
54 ss <<
"[SiStripRegionCabling::" << __func__ <<
"] Printing REGION cabling:" << std::endl;
55 ss <<
"Printing cabling for " <<
regioncabling_.size() <<
" regions" << std::endl;
58 for ( ;
id != jd; ++
id ) {
59 ss <<
"Printing cabling for " <<
id->size()
60 <<
" regions for partition " <<
static_cast<int32_t
>(
id -
regioncabling_.begin() )
62 RegionCabling::const_iterator ir =
id->begin();
63 RegionCabling::const_iterator jr =
id->end();
64 for ( ; ir != jr; ++ir ) {
65 ss <<
"Printing cabling for " << ir->size()
66 <<
" wedges for region " <<
static_cast<int32_t
>( ir -
id->begin() )
68 WedgeCabling::const_iterator iw = ir->begin();
69 WedgeCabling::const_iterator jw = ir->end();
70 for ( ; iw != jw; ++iw ) {
71 ss <<
"Printing cabling for " << iw->size()
72 <<
" elements for wedge " <<
static_cast<int32_t
>( iw - ir->begin() )
74 ElementCabling::const_iterator ie = iw->begin();
75 ElementCabling::const_iterator je = iw->end();
76 for ( ; ie != je; ++ie ) {
77 ss <<
"Printing cabling for " << ie->second.size()
78 <<
" connections for element (DetId) " << ie->first
80 std::vector<FedChannelConnection>::const_iterator ic = ie->second.begin();
81 std::vector<FedChannelConnection>::const_iterator jc = ie->second.end();
82 for ( ; ic != jc; ++ic ) {
83 if ( ic->isConnected() ) { valid++; }
92 ss <<
"Number of connected: " << valid << std::endl
93 <<
"Number of connections: " << total << std::endl;
void print(std::stringstream &) const
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) ...
std::pair< double, double > Position
const Position position(const uint32_t) const
const uint32_t region(const Position) const
PositionIndex increment(const PositionIndex, int, int) const
std::pair< uint32_t, uint32_t > PositionIndex