8 using namespace sistrip;
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));
32 int eta =
static_cast<int>(index.first)+deta;
34 else if (eta < 0) eta = 0;
36 int phi =
static_cast<int>(index.second)+dphi;
40 return PositionIndex(static_cast<uint32_t>(eta),static_cast<uint32_t>(phi));
46 if (subdet == 3)
return TIB;
47 else if (subdet == 4)
return TID;
48 else if (subdet == 5)
return TOB;
49 else if (subdet == 6)
return TEC;
71 else if (subdet ==
TID)
return layer;
81 ss <<
"[SiStripRegionCabling::" << __func__ <<
"] Printing REGION cabling:" << std::endl;
82 ss <<
"Printing cabling for " <<
regioncabling_.size() <<
" regions" << std::endl;
85 for ( ;
id != jd; ++id ) {
86 ss <<
"Printing cabling for " <<
id->size()
87 <<
" regions for partition " <<
static_cast<int32_t
>(
id -
regioncabling_.begin() )
89 RegionCabling::const_iterator ir =
id->begin();
90 RegionCabling::const_iterator jr =
id->end();
91 for ( ; ir != jr; ++ir ) {
92 ss <<
"Printing cabling for " << ir->size()
93 <<
" wedges for region " <<
static_cast<int32_t
>( ir -
id->begin() )
95 WedgeCabling::const_iterator iw = ir->begin();
96 WedgeCabling::const_iterator jw = ir->end();
97 for ( ; iw != jw; ++iw ) {
98 ss <<
"Printing cabling for " << iw->size()
99 <<
" elements for wedge " <<
static_cast<int32_t
>( iw - ir->begin() )
101 ElementCabling::const_iterator ie = iw->begin();
102 ElementCabling::const_iterator je = iw->end();
103 for ( ; ie != je; ++ie ) {
104 ss <<
"Printing cabling for " << ie->second.size()
105 <<
" connections for element (DetId) " << ie->first
107 std::vector<FedChannelConnection>::const_iterator ic = ie->second.begin();
108 std::vector<FedChannelConnection>::const_iterator jc = ie->second.end();
109 for ( ; ic != jc; ++ic ) {
110 if ( ic->isConnected() ) { valid++; }
119 ss <<
"Number of connected: " << valid << std::endl
120 <<
"Number of connections: " << total << std::endl;
void print(std::stringstream &) const
static const uint32_t physicalLayer(const SubDet, const uint32_t layer)
unsigned int layer() const
layer id
const PositionIndex positionIndex(const uint32_t) const
static int position[TOTALCHAMBERS][3]
static const uint32_t physicalLayerFromDetId(const uint32_t detid)
static const SubDet subdet(const ElementIndex)
static const SubDet subdetFromDetId(const uint32_t detid)
std::pair< double, double > Position
Detector identifier class for the strip tracker.
SubDetector subDetector() const
static const uint32_t layerFromDetId(const uint32_t detid)
unsigned int wheel() const
wheel id
unsigned int layer() const
layer id
const uint32_t region(const Position) const
PositionIndex increment(const PositionIndex, int, int) const
std::pair< uint32_t, uint32_t > PositionIndex
static const uint32_t layer(const ElementIndex)
unsigned int wheel() const
wheel id