All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
UnpackFragment Namespace Reference

Functions

unsigned int getFragIDForChan (unsigned int channel)
 
unsigned int getNanoSliceSampleForChan (unsigned int channel)
 

Function Documentation

unsigned int UnpackFragment::getFragIDForChan ( unsigned int  channel)

Definition at line 6 of file UnpackFragment.cxx.

6  {
7 
8  /*
9  channels fragment ID
10  [0:127] 100
11  [128:255] 101
12  [256:383] 102
13  [384:511] 103
14  [512:639] 104
15  [640:767] 105
16  [768:895] 106
17  [896:1023] 107
18  [1024:1151] 108
19  [1152:1279] 109
20  [1280:1407] 110
21  [1408:1535] 111
22  [1536:1663] 112
23  [1664:1791] 113
24  [1792:1919] 114
25  [1920:2047] 115
26  */
27 
28  return (channel / 128) + 100;
29 
30 }
unsigned int UnpackFragment::getNanoSliceSampleForChan ( unsigned int  channel)

Definition at line 33 of file UnpackFragment.cxx.

33  {
34 
35  /*
36  channels sample
37  [0:127] 0-127
38  [128:255] 0-127
39  [256:383] 0-127
40  [384:511] 0-127
41  [512:639] 0-127
42  [640:767] 0-127
43  [768:895] 0-127
44  [896:1023] 0-127
45  [1024:1151] 0-127
46  [1152:1279] 0-127
47  [1280:1407] 0-127
48  [1408:1535] 0-127
49  [1536:1663] 0-127
50  [1664:1791] 0-127
51  [1792:1919] 0-127
52  [1920:2047] 0-127
53  */
54 
55  unsigned int chanNumInFrag = channel % 128;
56  return chanNumInFrag;
57 
58 }