****************************************************** * This macro allows the computation of the leak in * * the drift chamber. * * See http://www.slac.stanford.edu/BFROOT/www/Detector/CentralTracker/controls/gas/ * * for an explanation for the calculation * * Written by: Vincent Poireau (Sept 2004) * ****************************************************** **** * Do the initialisation, and ask for the time of the * beginning and the end of the leak test **** * Some parameters opt fit set stat 10 opt sta set fwid 5 set fcol 2 opt tic close 1 h/file 1 leak.hbook n/plo 1.dprt9%time/60 atitle 'Time (min)' 'DCH pressure' mess mess Please LOOK TO THE PLOT to enter the following values mess Time in minute when the leak test was *begun*? read beg mess Time in minute when the leak test was *ended*? read end *** * Do the fit, and give the leak rate *** * Profile for the pressure versus time prof 10 'Fit of the loss of pressure in the DCH' 50 [beg] [end] 0 1100 ! n/plo 1.(log(dprt9))%time/60 [beg]