Re: rcas0005

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Fri Apr 25 2003 - 12:02:14 EDT

  • Next message: Flemming Videbaek: "Re: rcas0005"
    Hi Flemming et al, 
    
    "Flemming Videbaek" <videbaek@sgs1.hirg.bnl.gov> wrote concerning
      Fw: rcas0005 [Thu, 24 Apr 2003 21:25:44 -0400] 
    ----------------------------------------------------------------------
    > The RCF guyes woul like to change the name of rcas005 our Db
    > server. This will cause us some changeover,  but in principle I
    > agreed under a scenario by which for about a month grace period
    > there will be an alias network name so existing code will work . The
    > changes relates to bratmain scripts, and to .bratbrc mainly as I see
    > it Please comment if other issues.
    
    I think it's a really good idea to change the name of the host of the
    DB-server to something that reflects it's task.   I think there's very
    little that needs to be changed in BRAT, and there's some changes that
    needs to be done in the user code.  I'll try to summarise below. 
    
    * In BRAT proper, some `#define's in the following files: 
    
        brat/db/main/BrMainDb.h
        brat/db/apps/CreateCalib.cxx
        brat/db/apps/CreateCalib.cxx
        brat/db/apps/CreateDetector.cxx
        brat/db/apps/CreateGeometries.cxx
        brat/db/apps/CreateGeometries.cxx
        brat/db/apps/CreateMain.cxx
        brat/db/apps/CreateParameter.cxx
        brat/db/apps/CreatePass.cxx
        brat/db/apps/CreatePass.cxx
        brat/db/apps/CreatePerson.cxx
        brat/db/apps/CreateRun.cxx
        brat/db/test/TestCalibDb.cxx
        brat/db/test/TestMainDb.cxx
        brat/scripts/calib/CommitPedCal.C
        brat/scripts/calib/CrashPed.C
        brat/scripts/calib/inel/CommitDeltaTdc.C
        brat/scripts/calib/inel/CommitVtxOffset.C
        brat/scripts/calib/inel/InelDeltaTdc.C
        brat/scripts/calib/inel/InelVtxOffset.C
        brat/scripts/calib/zdc/CommitPedestal.C
        brat/scripts/calib/zdc/CommitSlewing.C
        brat/scripts/calib/zdc/CommitTdcGain.C
        brat/scripts/calib/zdc/CommitVtxOffset.C
        brat/scripts/calib/zdc/ZdcPedestal.C
        brat/scripts/calib/zdc/ZdcSlewing.C
        brat/scripts/calib/zdc/ZdcTdcGain.C
        brat/scripts/calib/zdc/ZdcVtxOffset.C
        brat/scripts/calib/bb/BbAdcGain.C
        brat/scripts/calib/bb/BbDeltaTdc.C
        brat/scripts/calib/bb/BbDumpSqlCal.C
        brat/scripts/calib/bb/BbPedestal.C
        brat/scripts/calib/bb/BbSlewing.C
        brat/scripts/calib/bb/BbTestLoadDumpCal.C
        brat/scripts/calib/bb/BbVtxOffset.C
        brat/scripts/calib/bb/CommitAdcGain.C
        brat/scripts/calib/bb/CommitDeltaTdc.C
        brat/scripts/calib/bb/CommitPedestal.C
        brat/scripts/calib/bb/CommitVtxOffset.C
        brat/scripts/calib/bb/BbTdcGain.C
        brat/scripts/calib/bb/CommitSlewing.C
        brat/scripts/calib/bb/CommitTdcGain.C
        brat/scripts/calib/mult/MultCentCalib.C
        brat/scripts/calib/tof/CommitAdcGain.C
        brat/scripts/calib/tof/CommitDelay.C
        brat/scripts/calib/tof/CommitPedestal.C
        brat/scripts/calib/tof/CommitTimeOffset.C
        brat/scripts/calib/tof/TofAdcGain.C
        brat/scripts/calib/tof/TofDeltaDelay.C
        brat/scripts/calib/tof/TofPedestal.C
        brat/scripts/calib/tof/TofPid.C
        brat/scripts/calib/tof/TofTimeOffset.C
        brat/scripts/calib/tof/CommitTdcGain.C
        brat/scripts/calib/tof/TofTdcGain.C
        brat/scripts/calib/tof/CommitSlewing.C
        brat/scripts/calib/td1/Td1Pedestal.C
        brat/scripts/calib/dc/CommitDcCal.C
        brat/scripts/calib/chkv/C1AdcGain.C
        brat/scripts/calib/chkv/CommitAdcGain.C
    * In BRED, some string literals in the following files 
    
        bred/test/Config.C
        bred/test/bred.C
        bred/test/rdo.C
    
    * In CRASH, a string litteral in 
    
        crash/src/jsfbmwrite.cxx
    
    * In the user CVS area, BRAHMS-APP, a lot of string literals in
       configuration scripts, like 
    
        brahms_app/bhs_app/22GeV/FinalAna.C
        brahms_app/bhs_app/22GeV/GlobalAna.C
        brahms_app/bhs_app/22GeV/Reco22GeV.C
        brahms_app/bhs_app/22GeV/TestReco.C
        brahms_app/bhs_app/22GeV/Track22GeV.C
        brahms_app/bhs_app/22GeV/bb/GeantBBAna.C
        brahms_app/bhs_app/scripts/CentTest.C
        brahms_app/bhs_app/scripts/RecoRun4640.C
        brahms_app/bhs_app/scripts/SteveMacroMod.C
        brahms_app/bhs_app/scripts/StevesCentMacro.C
        brahms_app/cholm_app/bred/test/Config.C
        brahms_app/cholm_app/jobs/calib/testcommit.C
        brahms_app/cholm_app/jobs/fluct/FluctConfig.C
        brahms_app/cholm_app/jobs/fluct/PcaConfig.C
        brahms_app/cholm_app/jobs/global/CopyGlbConfig.C
        brahms_app/cholm_app/jobs/global/GlbRdoConfig.C
        brahms_app/cholm_app/jobs/simul/SimulDigConfig.C
        brahms_app/do_app/bb/CheckBbCalib.cxx
        brahms_app/do_app/c1/C1Pedestal.C
        brahms_app/do_app/db/BbCommitOldAscii.cxx
        brahms_app/do_app/db/BbDbBrowser.cxx
        brahms_app/do_app/db/ChkvDbBrowser.cxx
        brahms_app/do_app/db/RunInfo.cxx
        brahms_app/do_app/db/TofDbBrowser.cxx
        brahms_app/do_app/db/TpcDbBrowser.cxx
        brahms_app/do_app/dc/bfsMatch.C
        brahms_app/fv_app/Prog/greco/SpecReco.C
        brahms_app/fv_app/Prog/reco/BramSelectMRS.cxx
        brahms_app/fv_app/util/ScalerConfig.C
        brahms_app/jij_app/reco/FfsReco.C
        brahms_app/jij_app/reco/FullReco.C
        brahms_app/jij_app/reco/Reduce1.C
        brahms_app/kh_app/reco/MrsRecoConfig.C
        brahms_app/kh_app/scripts/AddVolumeMap.C
        brahms_app/kh_app/scripts/MakeGeometryDBRun2000.C
        brahms_app/kh_app/scripts/TestDCTrack.C
        brahms_app/kh_app/scripts/TestGeometryDB.C
        brahms_app/kh_app/utils/GeoDbBrowser.cxx
        brahms_app/pc_app/dst/Reco.C
        brahms_app/pc_app/tpc/H1calib/totree.C
        brahms_app/pc_app/tpc/calTPC/calibrateFibDrift.C
        brahms_app/pc_app/tpc/calTPC/calibratePadStatus.C
        brahms_app/pc_app/tpc/calTPC/calibrateTime.C
        brahms_app/pc_app/tpc/calTPC/commitFibDrift.C
        brahms_app/pc_app/tpc/calTPC/commitPadStatus.C
        brahms_app/pc_app/tpc/calTPC/commitTime.C
        brahms_app/pc_app/tpc/dvvsrun/TpcDriftVsTime.cxx
        brahms_app/ps_app/dc/match/T2bfsMatch.C
        brahms_app/ps_app/dc/match/T3bfsMatch.C
        brahms_app/ps_app/dc/receff/dcRecEff.C
        brahms_app/ps_app/dc/reduce/DcRed.C
        brahms_app/ps_app/dc/t2vst3/DetMatch.C
        brahms_app/ps_app/dc/track/DcTrack.C
        brahms_app/ps_app/fs/acce/fsAcce.C
        brahms_app/ps_app/fs/pid/fsPid.C
        brahms_app/ps_app/fs/receff/fsRecEff.C
        brahms_app/sjs_app/macros/CentMacro.C
        brahms_app/sjs_app/macros/MultCalibration.C
        brahms_app/sjs_app/multCalib/src/multCalib.cxx
    
    * and probably similar in brdbbrowser and other packages (I didn't
      bother to check  them out, as AFS is really _really_ slow these
      days). 
    
    The easiest way to change these things, is to checkout the package in
    question, cd to the top directory, and then do in a term: 
    
       find . -name "*.cxx" -or -name "*.h" -or -name "*.C" | xargs etags 
    
    Then fire up Emacs, and do 
    
       M-x tags-query-replace RET rcas0005 RET brahms-db RET ! 
       C-x s ! 
       C-x C-c 
    
    One can also use `sed' though that requires a bit more 
    
       list=`find . -name "*.cxx" -or -name "*.h" -or -name "*.C"` 
       for i in $list ; do sed 's/rcas0005/brahms-db/g' < $i > tmp ; \
           mv  tmp $i ; done 
         
    
    Hope that helps a bit. 
    
    Yours, 
    
     ___  |  Christian Holm Christensen 
      |_| |	 -------------------------------------------------------------
        | |	 Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
         _|	          DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
        _|	          Denmark                    Office: (+45) 353  25 305
     ____|	 Email:   cholm@nbi.dk               Web:    www.nbi.dk/~cholm
     | |
    


    This archive was generated by hypermail 2.1.5 : Fri Apr 25 2003 - 12:03:14 EDT