Skip to content

Instantly share code, notes, and snippets.

@csullivan
Created February 28, 2016 21:30
Show Gist options
  • Save csullivan/ff508d4247e3981b6d79 to your computer and use it in GitHub Desktop.
Save csullivan/ff508d4247e3981b6d79 to your computer and use it in GitHub Desktop.
GEB Digitizer Notes (ANL vs LBL)
In the ANL data format, I observe that the hexidecimal divider 0xaaaaaaaa does not appear in the raw data format.
e.g.
ANL:
00000000: 0e00 0000 4000 0000 9c21 e6cc 8301 0000 ....@....!......
00000010: 1810 0711 cce6 219c 7001 0183 99c9 0000 ......!.p.......
00000020: 0181 f385 0080 398e 0000 0000 c42b d4da ......9......+..
00000030: 0000 2be6 0000 0000 2007 2019 200c 2023 ..+..... . . . #
00000040: 200e 0000 2003 2005 1ff9 1ff9 1fed 1ff6 ... . .........
00000050: 0e00 0000 4000 0000 9215 eecc 8301 0000 ....@...........
00000060: 1810 0711 ccee 1592 7001 0183 219c 0200 ........p...!...
00000070: 0183 cce6 0080 3af1 0000 0000 a22b d48e ......:......+..
00000080: 1598 2d98 0183 ccee 2004 2013 214e 215d ..-..... . .!N!]
00000090: 200e 2107 600e 600c 6010 6013 200d 200f .!.`.`.`.`. . .
Whereas the LBL Gretina Mode3 data has them:
00000000: 0200 0000 2c00 0000 8219 c600 2100 0000 ....,.......!...
00000010: aaaa aaaa 200a 0715 00c6 1982 9fdc 0021 .... ..........!
00000020: 0000 51fb a015 0000 fd58 37fb 07ea da23 ..Q......X7....#
00000030: fffe fffb fffa fffb fffb fffd 0200 0000 ................
00000040: 2c00 0000 8419 c600 2100 0000 aaaa aaaa ,.......!.......
00000050: 200a 0719 00c6 1984 72e6 0021 0000 4001 .......r..!..@.
00000060: 72c4 2a39 009a e801 0002 05c8 ffc3 ffc4 r.*9............
00000070: ffc4 ffc2 ffc6 ffc4 0200 0000 2c00 0000 ............,...
00000080: 8a19 c600 2100 0000
Thus in GRUTinizer void TGEBMode3Event::BuildFragments(){ ... }
the following line will not work for the ANL Mode3 data
//header.GetLength() is number of 32-bit values,
// and does not include the 0xaaaaaaaa separator.
size_t body_size = header->GetLength()*4 + 4;
@csullivan
Copy link
Author

The GEB header (first 16 bytes) is in little endian, while the data from the digitizers is big endian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment