9 std::vector<IndexType> tChamberLabel;
11 tChamberLabel.resize(271);
13 tChamberLabel[
count] = 0;
17 for (
IndexType ir = 1; ir != irmax + 1; ++ir) {
19 for (
IndexType ic = 1; ic != icmax + 1; ++ic) {
20 tChamberLabel[++
count] = is * 1000 + ir * 100 + ic;
29 return s_chamberLabel;
48 const IndexType prevs[] = {0, 0, 1, 1, 1, 2, 2, 3, 3};
49 const IndexType prevr[] = {0, 0, 1, 2, 3, 1, 2, 1, 2};
136 const IndexType lastplusznonme42layer = 1404;
149 if (isi <= lastnonme42) {
152 if (isi > lastplusznonme42) {
154 isi -= lastplusznonme42;
157 if (isi > lastme13) {
159 layerOffset = lastme13layer;
160 }
else if (isi >= firstme13) {
161 istart = firstme13 - 1;
162 layerOffset = firstme13layer - 1;
168 istart = lastnonme42;
169 layerOffset = lastnonme42layer;
177 ili += lastplusznonme42layer;
189 const IndexType lastplusznonme42layer = 1404;
202 if (ici <= lastnonme42) {
205 if (ici > lastplusznonme42) {
207 ici -= lastplusznonme42;
210 if (ici > lastme13) {
212 layerOffset = lastme13layer;
213 }
else if (ici >= firstme13) {
214 istart = firstme13 - 1;
215 layerOffset = firstme13layer - 1;
221 istart = lastnonme42;
222 layerOffset = lastnonme42layer;
226 IndexType ichip = (ici - 1) % nchipPerLayer + 1;
227 IndexType ili = (ici - 1) / nchipPerLayer + 1;
230 ili += lastplusznonme42layer;
236 int ec =
id.endcap();
237 int st =
id.station();
239 int ch =
id.chamber();
243 if (st == 1 && rg == 4) {
248 return ec * 100000 + st * 10000 + rg * 1000 + ch * 10 + la;
static std::vector< IndexType > fillChamberLabel()
CSCDetId detIdFromChamberIndex(IndexType ici) const
static std::vector< IndexType > const & chamberLabel()
int dbIndex(const CSCDetId &id, int &channel)
CSCDetId detIdFromLayerIndex(IndexType ili) const
CSCDetId detIdFromChamberLabel(IndexType ie, IndexType icl) const
IndexType chamberLabelFromChamberIndex(IndexType) const
static IndexType ringsInStation(IndexType is)
std::pair< CSCDetId, IndexType > detIdFromChipIndex(IndexType ichi) const
IndexType startChamberIndexInEndcap(IndexType ie, IndexType is, IndexType ir) const
std::pair< CSCDetId, IndexType > detIdFromStripChannelIndex(LongIndexType ichi) const
CSCDetId detIdFromChamberIndex_OLD(IndexType ici) const
static IndexType chambersInRingOfStation(IndexType is, IndexType ir)