22 int theLevelPart=muonConstants.
getValue(
"level");
30 std::cout <<
"Initialize CSCNumberingScheme" << std::endl;
65 LogDebug(
"CSCNumbering") <<
"endcap=" << fwbw_id ;
69 station_id=station_tag;
70 LogDebug(
"CSCNumbering")<<
"station=" << station_id ;
75 LogDebug(
"CSCNumbering")<<
"subring=" << subring_id ;
80 LogDebug(
"CSCNumbering")<<
"sector=" << sector_id ;
85 LogDebug(
"CSCNumbering") <<
"layer=" << layer_id ;
96 if ((fwbw_id < 1) || (fwbw_id > 2)) {
97 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" <<
"forward/backward id out of range:" << fwbw_id;
100 if ((station_id < 1) || (station_id > 4)) {
101 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" <<
"station id out of range:" << station_id;
104 if ((ring_id < 1) || (ring_id > 4)) {
105 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" <<
"ring id out of range:" <<
ring_id ;
108 if ((subring_id < 1) || (subring_id > 2)) {
109 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" <<
"subring id out of range:" << subring_id ;
112 if ((sector_id < 1) || (sector_id > 36)) {
113 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" <<
"sector id out of range:" << sector_id ;
117 if ((layer_id < 0) || (layer_id > 6)) {
118 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" <<
"layer id out of range" << layer_id ;
124 subring_id, sector_id);
129 chamber_id, layer_id);
147 int ring_id,
int subring_id,
int sector_id)
const {
156 chamber_id=sector_id;
158 if (subring_id == 1) {
159 chamber_id=2*sector_id-1;
161 chamber_id=2*sector_id;
void initMe(const MuonDDDConstants &muonConstants)
int getBaseNo(int level) const
static int rawIdMaker(int iendcap, int istation, int iring, int ichamber, int ilayer)
type of data representation of DDCompactView
CSCNumberingScheme(const MuonDDDConstants &muonConstants)
int getValue(const std::string &name) const
int chamberIndex(int, int, int, int) const
virtual int baseNumberToUnitNumber(const MuonBaseNumber)
int getSuperNo(int level) const