The pdf posted here has a good overview of the computation of the slope for each strip, discussing the method and the various ways in which strips were marked as bad. This page discusses the computation of the actual relative gains and statuses that went into the database.
The code used to compute the relative gains is archived at /star/institutions/mit/wleight/archive/bsmdRelGains2009/.