|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRT_DIGITIZATION_TRT_DRIFTCIRCLE_H
6 #define TRT_DIGITIZATION_TRT_DRIFTCIRCLE_H
15 for (
unsigned int k=0;
k<32;
k++) {
16 unsigned int i =
n & 0x80000000
u;
17 bool b = (
i==0x80000000
u);
21 std::cout << std::endl;
25 for (
unsigned int k=0;
k<32;
k++) {
27 unsigned int i =
n & 0x80000000
u;
28 bool b = (
i==0x80000000
u);
29 if (!((
k-5)%9)) std::cout <<
" ";
31 if (!((
k-5)%9)) std::cout <<
" ";
35 std::cout << std::endl;
39 for (
unsigned int k=0;
k<32;
k++) {
41 unsigned int i =
n & 0x80000000
u;
42 bool b = (
i==0x80000000
u);
43 if (((
k-5)%9)) std::cout <<
b;
47 std::cout << std::endl;
51 unsigned mask = 0x02000000;
55 {
if ( (m_word &
mask) && SawZero)
break;
56 else if ( !(m_word &
mask) ) SawZero =
true;
58 if(
i==7 ||
i==15)
mask>>=1;
65 unsigned mask = 0x00000001;
68 for (
i = 0;
i < 24; ++
i)
70 if ( (m_word &
mask) && SawZero )
72 else if ( !(m_word &
mask) )
75 if (
i == 7 ||
i == 15)
85 return (m_word & 0x0001FE00);
89 return (m_word & 0x04020100);
93 return (m_word & 0x04000000);
97 return (m_word & 0x00020000);
101 return (m_word & 0x00000100);
105 return (m_word & 0x02000000);
109 return (m_word & 0
x1);
120 if ( (24 ==
LE) || (24 == TE) || (0 == TE) || (23 ==
LE) )
return 0.0;
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;
144 std::cout <<
"AJB " <<
LE <<
" " << TE <<
" " << ToT <<
" " << nLT << std::endl;
bool lastBinHigh(unsigned int m_word)
bool highLevel2(unsigned int m_word)
void bits27(unsigned int n)
void bits32(unsigned int n)
bool highLevel1(unsigned int m_word)
@ u
Enums for curvilinear frames.
int bitTimeOverThreshold(unsigned int m_word)
bool highLevel(unsigned int m_word)
bool highLevel3(unsigned int m_word)
void bits24(unsigned int n)
double rawDriftTime(unsigned int m_word)
bool lowLevelMiddle(unsigned int m_word)
bool firstBinHigh(unsigned int m_word)
int nLTbits(unsigned int m_word)
void print_mword_properties(unsigned int mword)
double timeOverThreshold(unsigned int m_word)
int trailingEdge(unsigned int m_word)
int driftTimeBin(unsigned int m_word)