13 for (
IndexType is = 1 ; is != 5; ++is ) {
15 for (
IndexType ir = 1; ir != irmax+1; ++ir ) {
17 for (
IndexType ic = 1; ic != icmax+1; ++ic ) {
41 const IndexType prevs[] = {0,0,1,1,1,2,2,3,3};
42 const IndexType prevr[] = {0,0,1,2,3,1,2,1,2};
137 const IndexType lastplusznonme42layer = 1404;
150 if ( isi <= lastnonme42 ) {
153 if ( isi > lastplusznonme42 ) {
155 isi -= lastplusznonme42;
158 if ( isi > lastme13 ) {
160 layerOffset = lastme13layer;
162 else if ( isi >= firstme13 ) {
163 istart = firstme13 - 1;
164 layerOffset = firstme13layer - 1;
171 istart = lastnonme42;
172 layerOffset = lastnonme42layer;
179 if ( ie != 1 ) ili+= lastplusznonme42layer;
193 const IndexType lastplusznonme42layer = 1404;
206 if ( ici <= lastnonme42 ) {
209 if ( ici > lastplusznonme42 ) {
211 ici -= lastplusznonme42;
214 if ( ici > lastme13 ) {
216 layerOffset = lastme13layer;
218 else if ( ici >= firstme13 ) {
219 istart = firstme13 - 1;
220 layerOffset = firstme13layer - 1;
227 istart = lastnonme42;
228 layerOffset = lastnonme42layer;
232 IndexType ichip = (ici-1)%nchipPerLayer + 1;
233 IndexType ili = (ici-1)/nchipPerLayer + 1;
235 if ( ie != 1 ) ili+= lastplusznonme42layer;
242 int ec =
id.endcap();
243 int st =
id.station();
245 int ch =
id.chamber();
249 if(st == 1 && rg == 4)
252 if(channel <= 16) channel += 64;
254 return ec*100000 + st*10000 + rg*1000 + ch*10 + la;
std::pair< CSCDetId, IndexType > detIdFromStripChannelIndex(LongIndexType ichi) const
IndexType chamberLabelFromChamberIndex(IndexType) const
void fillChamberLabel() const
IndexType chambersInRingOfStation(IndexType is, IndexType ir) const
IndexType ringsInStation(IndexType is) const
int dbIndex(const CSCDetId &id, int &channel)
CSCDetId detIdFromChamberIndex(IndexType ici) const
CSCDetId detIdFromChamberIndex_OLD(IndexType ici) const
std::pair< CSCDetId, IndexType > detIdFromChipIndex(IndexType ichi) const
CSCDetId detIdFromChamberLabel(IndexType ie, IndexType icl) const
IndexType startChamberIndexInEndcap(IndexType ie, IndexType is, IndexType ir) const
std::vector< IndexType > chamberLabel
CSCDetId detIdFromLayerIndex(IndexType ili) const