1 #ifndef CSCIndexerBase_H 2 #define CSCIndexerBase_H 105 const IndexType nrins[5] = {0, 3, 2, 2, 2};
122 const IndexType nrings[5] = {0, 4, 2, 2, 2};
131 const IndexType nCinR[16] = {36, 36, 36, 36, 18, 36, 0, 0, 18, 36, 0, 0, 18, 36, 0, 0};
132 return nCinR[(is - 1) * 4 + ir - 1];
180 const IndexType nschin[32] = {1, 37, 73, 1, 109, 127, 0, 0, 163, 181, 0, 0, 217, 469, 0, 0,
181 235, 271, 307, 235, 343, 361, 0, 0, 397, 415, 0, 0, 451, 505, 0, 0};
182 return nschin[(ie - 1) * 16 + (is - 1) * 4 + ir - 1];
224 return (
chamberIndex(ie, is, ir, ic) - 1) * layersInChamber + il;
361 const IndexType nSinL[16] = {1, 3, 3, 1, 3, 5, 0, 0, 3, 5, 0, 0, 3, 5, 0, 0};
362 return nSinL[(is - 1) * 4 + ir - 1];
IndexType offlineRingsInStation(IndexType is) const
IndexType chambersInRingOfStation(IndexType is, IndexType ir) const
IndexType chamberIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic) const
virtual IndexType stripChannelsPerOfflineLayer(IndexType is, IndexType ir) const =0
IndexType gasGainIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic, IndexType il, IndexType ihvsegment, IndexType ichip) const
virtual IndexType maxChipIndex() const =0
IndexType chipIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic, IndexType il, IndexType ichip) const
virtual IndexType sectorStart(IndexType ie, IndexType is, IndexType ir) const =0
virtual IndexType onlineRingsInStation(IndexType is) const =0
virtual IndexType maxGasGainIndex() const =0
virtual std::pair< CSCDetId, IndexType > detIdFromStripChannelIndex(LongIndexType ichi) const =0
IndexType sectorsPerOnlineLayer(IndexType is, IndexType ir) const
IndexType chamberLabelFromChamberIndex(IndexType) const
virtual LongIndexType stripChannelStart(IndexType ie, IndexType is, IndexType ir) const =0
IndexType gasGainIndex(const CSCDetId &id, IndexType istrip, IndexType iwire) const
IndexType layerIndex(const CSCDetId &id) const
IndexType chipIndex(const CSCDetId &id, IndexType ichip) const
CSCDetId detIdFromChamberLabel(IndexType ie, IndexType icl) const
virtual IndexType stripChannelsPerOnlineLayer(IndexType is, IndexType ir) const =0
CSCDetId detIdFromLayerIndex(IndexType ili) const
IndexType gasGainIndex(IndexType ihvsegment, IndexType ichip, const CSCDetId &id) const
virtual IndexType chipsPerOnlineLayer(IndexType is, IndexType ir) const =0
IndexType startChamberIndexInEndcap(IndexType ie, IndexType is, IndexType ir) const
CSCDetId detIdFromChamberIndex(IndexType ici) const
virtual GasGainIndexType detIdFromGasGainIndex(IndexType igg) const =0
IndexType hvSegmentsPerLayer(IndexType is, IndexType ir) const
IndexType chipIndex(IndexType istrip) const
IndexType maxLayerIndex() const
virtual IndexType chipsPerLayer(IndexType is, IndexType ir) const =0
LongIndexType stripChannelIndex(const CSCDetId &id, IndexType istrip) const
IndexType hvSegmentIndex(IndexType is, IndexType ir, IndexType iwire) const
virtual std::string name() const
virtual IndexType chipStart(IndexType ie, IndexType is, IndexType ir) const =0
virtual std::pair< CSCDetId, IndexType > detIdFromChipIndex(IndexType ichi) const =0
virtual LongIndexType maxStripChannelIndex() const =0
IndexType ringsInStation(IndexType is) const
IndexType maxChamberIndex() const
IndexType chamberIndex(const CSCDetId &id) const
IndexType sectorsPerLayer(IndexType is, IndexType ir) const
virtual int dbIndex(const CSCDetId &id, int &channel) const =0
IndexType layerIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic, IndexType il) const
std::tuple< CSCDetId, IndexType, IndexType > GasGainIndexType
virtual ~CSCIndexerBase()
virtual IndexType stripChannelsPerLayer(IndexType is, IndexType ir) const =0
std::vector< IndexType > chamberLabel_
LongIndexType stripChannelIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic, IndexType il, IndexType istrip) const