AliRoot Core  3dc7879 (3dc7879)
TestHWMap.C File Reference

Go to the source code of this file.

Functions

void HwAddr2Channel (UShort_t w, UShort_t &b, UShort_t &a, UShort_t &c)
 
UShort_t Channel2HwAddr (UShort_t b, UShort_t a, UShort_t c)
 
Char_t * Addr2Str (UInt_t l, UShort_t b, UShort_t a, UShort_t c, UShort_t tb)
 
Char_t * Addr2Str (UShort_t l, UShort_t w, UShort_t tb)
 
Char_t * Det2Str (UShort_t d, Char_t r, UShort_t s, UShort_t t, UShort_t n)
 
void PrintTrans (UShort_t d, Char_t r, UShort_t s, UShort_t t, UShort_t n, UShort_t l, UShort_t w, UShort_t tb, UShort_t od, Char_t oR, UShort_t os, Short_t ot, UShort_t on)
 
void PrintTrans (UShort_t d, Char_t r, UShort_t s, UShort_t t, UShort_t n, UShort_t l, UShort_t b, UShort_t a, UShort_t c, UShort_t tb, UShort_t od, Char_t oR, UShort_t os, Short_t ot, UShort_t on)
 
Bool_t CheckTrans (UShort_t d, Char_t r, UShort_t s, UShort_t t, UShort_t n, UShort_t od, Char_t oR, UShort_t os, Short_t ot, UShort_t on)
 
void TestHWMap (bool useHwAddr=false, bool few=false)
 

Function Documentation

Char_t* Addr2Str ( UInt_t  l,
UShort_t  b,
UShort_t  a,
UShort_t  c,
UShort_t  tb 
)

Format a hardware addresss

Parameters
lDDL ID
bBoard
aAltro
cChannel
tbTimebin
Returns
Formatted hardware address

Definition at line 57 of file TestHWMap.C.

Referenced by Addr2Str(), PrintTrans(), and TestHWMap().

Char_t* Addr2Str ( UShort_t  l,
UShort_t  w,
UShort_t  tb 
)

Format a hardware addresss

Parameters
lDDL ID
wHardware address
tbTimebin
Returns
Formatted hardware address

Definition at line 77 of file TestHWMap.C.

UShort_t Channel2HwAddr ( UShort_t  b,
UShort_t  a,
UShort_t  c 
)

Convert board,altro,channel to hardware address

Parameters
bBoard
aAltro
cChannel
Returns
Hardware address

Definition at line 38 of file TestHWMap.C.

Referenced by TestHWMap().

Bool_t CheckTrans ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t,
UShort_t  n,
UShort_t  od,
Char_t  oR,
UShort_t  os,
Short_t  ot,
UShort_t  on 
)

Check transformation

Parameters
dDetector
rRing
sSector
tStrip
nSample
odDetector output
oRRing output
osSector output
otStrip output
onSample output
Returns
true on success

Definition at line 191 of file TestHWMap.C.

Referenced by TestHWMap().

Char_t* Det2Str ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t,
UShort_t  n 
)

Format a detector address

Parameters
dDetector
rRing
sSector
tStrip
nSample
Returns

Definition at line 99 of file TestHWMap.C.

Referenced by CheckTrans(), PrintTrans(), and TestHWMap().

void HwAddr2Channel ( UShort_t  w,
UShort_t &  b,
UShort_t &  a,
UShort_t &  c 
)

Convert hardware address to board,altro,channel

Parameters
wHardware address
bout, Board
aout, Altro
cout, Channel

Definition at line 20 of file TestHWMap.C.

Referenced by Addr2Str().

void PrintTrans ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t,
UShort_t  n,
UShort_t  l,
UShort_t  w,
UShort_t  tb,
UShort_t  od,
Char_t  oR,
UShort_t  os,
Short_t  ot,
UShort_t  on 
)

Print full transformation

Parameters
dDetector
rRing
sSector
tStrip
nSample
lDDL ID
wHardware address
tbTimebin
odDetector output
oRRing output
osSector output
otStrip output
onSample output

Definition at line 127 of file TestHWMap.C.

Referenced by TestHWMap().

void PrintTrans ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t,
UShort_t  n,
UShort_t  l,
UShort_t  b,
UShort_t  a,
UShort_t  c,
UShort_t  tb,
UShort_t  od,
Char_t  oR,
UShort_t  os,
Short_t  ot,
UShort_t  on 
)

Print full transformation

Parameters
dDetector
rRing
sSector
tStrip
nSample
lDDL ID
bBoard
aALTRO
cChannel
tbTimebin
odDetector output
oRRing output
osSector output
otStrip output
onSample output

Definition at line 160 of file TestHWMap.C.

void TestHWMap ( bool  useHwAddr = false,
bool  few = false 
)

Test hardware address map by converting from detector coordinates to hardware address and then back again.

Parameters
useHwAddrWhether to use 12 bit hardware address, or board,altro,channel
fewOnly do a few - 1 detector, one sector

Definition at line 233 of file TestHWMap.C.