BrCalibrBB.dat

From: Yury Blyakhman (Yury_B@physics.nyu.edu)
Date: Fri Oct 27 2000 - 17:00:24 EDT

  • Next message: Konstantin Olchanski: "opus & daq are up"

    	Hello, everybody.
     It just came to my attention, that somebody might still be using old
    version of Beam-Beam Calibration. Namely, when I replaced the old
    version of BrCalibrBB.dat I did not just replace some numbers, but
    instead, added a lot of new parameters (columns)!!! Here is a suggestion
    on how it should be used:
    
    
    Int_t DtLeft[45], DtRight[45], LPedMean[45], LPedRMS[45], RPedMean[45], 
      RPedRMS[45], LAdcGain0[45], RAdcGain0[45], kL[45], kR[45],
    DtTdcLSlew[45],
      DtTdcRSlew[45];
    //___________________________________________________
    void BBCalibrate(){
      const Char_t *bratsys = gSystem->Getenv("BRATSYS");
      const Char_t *pwd = gSystem->Getenv("PWD");
      Char_t CalibrFileName[100];
      sprintf(CalibrFileName, "%s/BrCalibrBB.dat", pwd);
      ifstream ReadNumbers(CalibrFileName);
      for(int i=1; i<45; i++){
        ReadNumbers>>DtLeft[i]>>DtRight[i]>>LPedMean[i]>>LPedRMS[i]
                   >>RPedMean[i]>>RPedRMS[i]>>LAdcGain0[i]>>RAdcGain0[i]
                   >>kL[i]>>kR[i]>>DtTdcLSlew[i]>>DtTdcRSlew[i];
      }
      if(!ReadNumbers){
        sprintf(CalibrFileName, "%s/params/bb/BrCalibrBB.dat",bratsys);
        ifstream ReadNumbers(CalibrFileName);
        for(int i=1; i<45; i++){
          ReadNumbers>>DtLeft[i]>>DtRight[i]>>LPedMean[i]>>LPedRMS[i]
                     >>RPedMean[i]>>RPedRMS[i]>>LAdcGain0[i]>>RAdcGain0[i]
                   >>kL[i]>>kR[i]>>DtTdcLSlew[i]>>DtTdcRSlew[i];
        }
      }
    }
    //________________________________________________________________
    
    It looks for the file BrCalibrBB.dat in the current directory first and
    in /prams/bb/ after that. Thanks and sorry for possible inconvenience,
    
    -- 
    	Yury Blyakhman.
    			     \\\|///
                               \\  - -  //
                                (  @ @  )
     +------------------------o00o-(_)-o00o-------------+
     | New York University      Phone: (212)998-7762    |
     | Department of Physics    Fax: (212) 995-4016     |
     | 4 Washington Place       E-mail:                 |
     | New York, N.Y. 10003     Yury_B@physics.nyu.edu  |
     |         Mobile: (646)528-7187                    |
     |     Home phone: (718)934-1851      ICQ# 2330402  |
     +--------------------------------0ooo--------------+
                              ooo0   (   )
                             (   )    ) /
                              \ (    (_/
                               \_)
    



    This archive was generated by hypermail 2b29 : Fri Oct 27 2000 - 17:08:30 EDT