11 const unsigned channelInverseGrayCode[] = {0,1,3,2, 7,6,4,5, 15,14,12,13, 8,9,11,10};
30 memcpy(
this, &frame, 2);
36 assert(layer >= 1 && layer <= 6);
37 assert(channel >=1 && channel <= 16);
41 if (isDCFEB) channelIndex = channel-1;
42 unsigned scaBin = channelIndex*6 + layerIndex;
51 for(
unsigned i = 0;
i < 16; ++
i) {
60 for(
int layer = 1; layer <= 6; ++layer)
62 for(
int channel = 1; channel <= 16; ++channel)
64 const unsigned short * shortWord =
reinterpret_cast<const unsigned short *
>(&controllerWord);
66 = ( *shortWord >> (channel-1)) & 1;
83 for(
int ichannel = 1; ichannel <= 16; ++ichannel)
85 for(
int ilayer = 1; ilayer <= 6; ++ilayer)
CSCCFEBSCAControllerWord()
const unsigned channelInverseGrayCode[]
void setControllerWord(const CSCCFEBSCAControllerWord &controllerWord)
friend std::ostream & operator<<(std::ostream &os, const CSCCFEBTimeSlice &)
CSCCFEBSCAControllerWord scaControllerWord(int layer) const
unpacked from the controller words for each channel in the layer
CSCCFEBDataWord * timeSample(int index) const
input from 0 to 95
unsigned short controllerData
combined from all 16 strips to make a word
const unsigned layerInverseGrayCode[]
unsigned short theSamples[96]