Unpacking Hardware Data (from raw data)

Compiling Instructions

1.  Setup a test release area with release
p16.00.00:

setup D0RunII p16.00.00

newrel -t p16.00.00 dir_name

2.  Move into dir_name and check out the tsim_l2stt package:

cd dir_name
setup d0cvs
d0setwa
addpkg tsim_l2stt
gmake all

Run Instructions (to get a raw HEX dump of 1 or more events)

1.  Edit
: tsim_l2stt/rcp/ReadEventRaw.rcp to get the proper input file and number of events.

2.  If you wish to only dump a particular event you need to edit: tsim_l2stt/rcp/dump_l2stt.rcp and do the following:

Change singleEventDump to yes

Change eventNumber to the event you wish to dump

Note that there is a boolean parameter called rawOnly in dump_l2stt. Turning off this parameter will cause the program to dump the data in nicely formatted tables for each card. This will have problems if the data is corrupt and produces large files. If you want to run on alot of data (more than one file) I suggest leaving this set to yes.

3.  In tsim_l2stt/test/do

./Dump.sh >& output.log &

The output will be in a file that looks like
: STTDataRun0187180Raw.txt (this is for run 187180 for example).

Run Instructions (to get the sttsim rootuple filled)

1.  Edit: tsim_l2stt/rcp/ReadEventRaw.rcp to get the proper input file and number of events.

2.  In tsim_l2stt/test/do

./Root.sh >& output.log &

The output will be in a file called
: sttsim.root



Please report any problems or requests to Norm Buchanan (buchanan@fnal.gov).

Last updated: Jan 27, 2004