Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunetpc
dune
daqinput35t
utilities
UnpackFragment.cxx
Go to the documentation of this file.
1
#include "
UnpackFragment.h
"
2
3
// Format correct as of 17 Mar 15 (M Wallbank)
4
5
//Which FragmentID would contain this channel
6
unsigned
int
UnpackFragment::getFragIDForChan
(
unsigned
int
channel
){
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
}
31
32
//Which Nano-slice sample number would contain this channel
33
unsigned
int
UnpackFragment::getNanoSliceSampleForChan
(
unsigned
int
channel
){
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
}
59
UnpackFragment::getNanoSliceSampleForChan
unsigned int getNanoSliceSampleForChan(unsigned int channel)
Definition:
UnpackFragment.cxx:33
UnpackFragment::getFragIDForChan
unsigned int getFragIDForChan(unsigned int channel)
Definition:
UnpackFragment.cxx:6
ValidateOpDetSimulation.channel
channel
Definition:
ValidateOpDetSimulation.py:136
UnpackFragment.h
Generated by
1.8.11