[d2n-analysis-talk] DB/, analyzer, and replay/ updated on d2n and in CVS

Brad Sawatzky brads at jlab.org
Tue Mar 23 22:26:15 EDT 2010


You should all switch back to using the analyzer (and DB) in
/usr/local/d2n/ now.  (ie. Change $d2n_root back to
  export d2n_root="/usr/local/d2n_analysis"
in your root-setup.sh file.  See /home/brads/.bash_root-setup
if this is unclear.

The bulk of the changes are Matt's update to accommodate the pedestal
changes in the BigBite Cerenkov ADCs.  There are also a couple of
corrections where the DB had old/incorrect information.  See
$DB_DIR/changelog_BB for more details.

I patched the working version of THaDecData (in
  /usr/local/d2n_analysis/analyzer
to omit the VDC generation that was ballooning the root files under some
circumstances.  The above changes should all work automatically if you
environment vars are set correctly.  There are also a few changes
that should be made to files in your replay directory -- you need to
make these changes yourself.  See below:

*** NOTE *** 
Please read and follow the rest of these instructions:

replay_*_BB.C have been updated to use THaDecData instead of BBDecData.
The replay_det_BB.C file will also out put scaler data (uses the changes
in replay_det_BB.odef too).  I would encourage you to update these files
in your replay directory if you haven't already done so:
  replay_det_BB.C
  replay_phys_BB.C
  replay_det_BB.odef

You must also update these files:
  ReplayCore.C
  StartType.pl

The StartType.pl file has been updated to accommodate the new files.
Please note that this script has also been reworked to generate symlinks
to the necessary DB files rather than the 'copy everything' approach'.

Since StartType.pl is so tightly coupled to proper operation of the DB,
I moved the canonical version into the $DB_DIR directory.  The new
script
  /usr/local/d2n_analysis/d2n/replay/StartType.pl
will call the correct StartType script automatically.

ReplayCore.C was updated to automatically run ./StartType.pl with the
run number passed to your replay script.  After you copy it to your
replay directory you will /not/ have to remember to run StartType.pl
manually every time.  Watch the output immediately after you start your
replay_foo.C script to see what StartType is doing.


If you're comfortable with CVS, you can run these commands to update
files in your replay directory:
  % export CVSROOT=cvs.jlab.org:/group/halla/analysis/cvs
  % alias cvs="cvs -d $CVSROOT"
  % cd <your path>/d2n
  ## Make a backup of your replay directory unless you're suitably
     confident/crazy and know what you're doing.
  % tar cvfz $HOME/replay_backup_`date +%d%b%Y`.tar.gz replay
  ## Move into the replay directory
  % cd replay
  % cvs -n update
      This will tell you what will be updated and where any merge
      conflicts may arise, but will *not* do anything (that's the "-n"
      switch).
  % cvs update <file>
      This will update a specific <file>

If you don't want to use CVS, then you can copy the files mentioned
above from
  /usr/local/d2n_analysis/d2n/replay/

Just make sure you don't blow away any changes you want to keep.  If you
do, there are also backups in /BACKUP/

-- Brad

-- 
Brad Sawatzky, PhD <brads at jlab.org>  -<>-  Jefferson Lab / Hall C / C111
        Ph: 757-269-5947        -<>-        Fax: 757-269-5235
The most exciting phrase to hear in science, the one that heralds new
  discoveries, is not "Eureka!" but "That's funny..."   -- Isaac Asimov


More information about the d2n-analysis-talk mailing list