Go to the source code of this file.
◆ bits24()
| void bits24 |
( |
unsigned int | n | ) |
|
Definition at line 38 of file driftCircle.h.
38 {
39 for (
unsigned int k=0;
k<32;
k++) {
40 if (k>4) {
41 unsigned int i =
n & 0x80000000u;
42 bool b = (
i==0x80000000u);
43 if (((k-5)%9)) std::cout <<
b;
44 }
46 }
47 std::cout << std::endl;
48}
◆ bits27()
| void bits27 |
( |
unsigned int | n | ) |
|
Definition at line 24 of file driftCircle.h.
24 {
25 for (
unsigned int k=0;
k<32;
k++) {
26 if (k>4) {
27 unsigned int i =
n & 0x80000000u;
28 bool b = (
i==0x80000000u);
29 if (!((k-5)%9)) std::cout << " ";
31 if (!((k-5)%9)) std::cout << " ";
32 }
34 }
35 std::cout << std::endl;
36}
◆ bits32()
| void bits32 |
( |
unsigned int | n | ) |
|
Definition at line 14 of file driftCircle.h.
14 {
15 for (
unsigned int k=0;
k<32;
k++) {
16 unsigned int i =
n & 0x80000000u;
17 bool b = (
i==0x80000000u);
20 }
21 std::cout << std::endl;
22}
◆ bitTimeOverThreshold()
| int bitTimeOverThreshold |
( |
unsigned int | m_word | ) |
|
Definition at line 124 of file driftCircle.h.
124 {
126}
double timeOverThreshold(unsigned int m_word)
◆ driftTimeBin()
| int driftTimeBin |
( |
unsigned int | m_word | ) |
|
Definition at line 50 of file driftCircle.h.
50 {
51 unsigned mask = 0x02000000;
52 bool SawZero = false;
55 { if ( (m_word & mask) && SawZero) break;
56 else if ( !(m_word & mask) ) SawZero = true;
58 if(i==7 || i==15)
mask>>=1;
59 }
62}
◆ firstBinHigh()
| bool firstBinHigh |
( |
unsigned int | m_word | ) |
|
Definition at line 104 of file driftCircle.h.
104 {
105 return (m_word & 0x02000000);
106}
◆ highLevel()
| bool highLevel |
( |
unsigned int | m_word | ) |
|
Definition at line 88 of file driftCircle.h.
88 {
89 return (m_word & 0x04020100);
90}
◆ highLevel1()
| bool highLevel1 |
( |
unsigned int | m_word | ) |
|
Definition at line 92 of file driftCircle.h.
92 {
93 return (m_word & 0x04000000);
94}
◆ highLevel2()
| bool highLevel2 |
( |
unsigned int | m_word | ) |
|
Definition at line 96 of file driftCircle.h.
96 {
97 return (m_word & 0x00020000);
98}
◆ highLevel3()
| bool highLevel3 |
( |
unsigned int | m_word | ) |
|
Definition at line 100 of file driftCircle.h.
100 {
101 return (m_word & 0x00000100);
102}
◆ lastBinHigh()
| bool lastBinHigh |
( |
unsigned int | m_word | ) |
|
Definition at line 108 of file driftCircle.h.
108 {
109 return (m_word & 0x1);
110}
◆ lowLevelMiddle()
| bool lowLevelMiddle |
( |
unsigned int | m_word | ) |
|
Definition at line 84 of file driftCircle.h.
84 {
85 return (m_word & 0x0001FE00);
86}
◆ nLTbits()
| int nLTbits |
( |
unsigned int | m_word | ) |
|
Definition at line 128 of file driftCircle.h.
128 {
129 unsigned mask = 0x02000000;
131 for (
int i=0;
i<24;++
i) {
132 if ( m_word & mask )
m++;
134 if (i==7 || i==15)
mask>>=1;
135 }
137}
◆ print_mword_properties()
| void print_mword_properties |
( |
unsigned int | mword | ) |
|
Definition at line 139 of file driftCircle.h.
139 {
144 std::cout <<
"AJB " <<
LE <<
" " << TE <<
" " << ToT <<
" " << nLT << std::endl;
145}
int bitTimeOverThreshold(unsigned int m_word)
int trailingEdge(unsigned int m_word)
int driftTimeBin(unsigned int m_word)
int nLTbits(unsigned int m_word)
◆ rawDriftTime()
| double rawDriftTime |
( |
unsigned int | m_word | ) |
|
◆ timeOverThreshold()
| double timeOverThreshold |
( |
unsigned int | m_word | ) |
|
Definition at line 116 of file driftCircle.h.
116 {
120 if ( (24 == LE) || (24 == TE) || (0 == TE) || (23 == LE) ) return 0.0;
122}
◆ trailingEdge()
| int trailingEdge |
( |
unsigned int | m_word | ) |
|
Definition at line 64 of file driftCircle.h.
64 {
65 unsigned mask = 0x00000001;
66 bool SawZero=false;
68 for (i = 0;
i < 24; ++
i)
69 {
70 if ( (m_word & mask) && SawZero )
71 break;
72 else if ( !(m_word & mask) )
73 SawZero = true;
75 if (i == 7 || i == 15)
77 }
78
79 if ( 24 == i )
81 return (23 - i);
82}