INSTRUCTIONS FOR PROCEDURE TO CHECK LUTs Chris
In /afs/slac.stanford.edu/g/babar/detector/emc Ivo has created a subdirectory call lutcheck. In this I will put the two things you need to check lookup tables.
1. Martins program to produce the numbers for the lookups table. This is called restestpmart.
2. My perl script to check if a look up table is good or not.
To use the program is simple .
Type lutgood.pl -c# -s# .
The -c argument lets you choose a crate (0-9) to look at. If there is no choice made all channels will be looped over.
The -s argument lets you choose a slot ( 0-10 ) to look at. If there is no choice made all slots will be looped over.
The file containing the incorrect LUTs will be written out to majorerrorfile.
The full run through all crates slots and channels, if you print to a log file (>! lut.log ), takes ~ 1.5 hours. Doing one crate takes ~ 10 minute and one crate and a slot 1 minute. These times mean that after a calibration you can run on just a crate or crate and slot very quickly if you think there is a problem in that area. If you have more time you can run over the whole detector.
To create histograms of the LUTs (to physically see problems) use the restuple program in this directory with the arguments
/nfs/bbr-srv02/dataflow/constants/emc/ crate slot
Convert the output hbook file to root.
In root do TFile d("name of root file")
Back to home page
Chris Edward Marker