#include <CSCFrontRearLUT.h>
|
static unsigned | getFRBit (int sector, int subsector, int station, int cscid) |
|
- Author
- L.Gray
Ported from ORCA, factored out of CSCSectorReceiverLUT
Definition at line 11 of file CSCFrontRearLUT.h.
unsigned CSCFrontRearLUT::getFRBit |
( |
int |
sector, |
|
|
int |
subsector, |
|
|
int |
station, |
|
|
int |
cscid |
|
) |
| |
|
static |
This is a function which uses the variables to return the front/rear bit. The calculation is done by considering how the chambers overlap each other.
Definition at line 3 of file CSCFrontRearLUT.cc.
4 unsigned dc = 0, sector_type = 0;
5 unsigned fr_table[16][6] = {{0, 1, 1, 0, 1, 0},
14 {dc, dc, dc, dc, 1, 0},
15 {dc, dc, dc, dc, 0, 1},
16 {dc, dc, dc, dc, 1, 0},
17 {dc, dc, dc, dc, dc, dc},
18 {dc, dc, dc, dc, dc, dc},
19 {dc, dc, dc, dc, dc, dc},
20 {dc, dc, dc, dc, dc, dc}};
24 sector_type = 4 + subsector;
27 sector_type = 1 - (sector % 2);
30 sector_type = 3 - (sector % 2);
33 sector_type = 3 - (sector % 2);
38 return fr_table[cscid - 1][sector_type];