51 if ( wheel <= 0 )
return -1;
52 if ( station <= 0 )
return -2;
53 if ( sector <= 0 )
return -3;
54 if ( superlayer <= 0 )
return -4;
55 if ( layer <= 0 )
return -5;
56 if ( cell <= 0 )
return -6;
60 if ( wheel > 5 )
return -1;
61 seqWireNum += ( wheel - 1 ) * cellsPerWheel;
63 if ( sector > 14 )
return -2;
65 station < 4 )
return -2;
68 seqWireNum += ( sector - 1 ) * cellsPerSector;
70 if ( station > 4 )
return -3;
72 seqWireNum += offsetChamber[
station];
74 if ( superlayer > 3 )
return -4;
75 if ( layer > 4 )
return -5;
76 if ( superlayer != 2 ) {
78 if ( superlayer == 3 ) layer += 4;
82 if ( station == 4 )
return -4;
88 return seqWireNum + cell;
constexpr int offsetChamber[]
constexpr int cellsIn13Sectors
static int id(int wheel, int station, int sector, int superlayer, int layer, int cell)
constexpr int cellsPerWheel
constexpr int cellsPerSector
constexpr int cellsInTheta
constexpr int cellsPerLayer[]