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

Diana Parno dseymour at andrew.cmu.edu
Thu Mar 25 12:06:43 EDT 2010


Hi Brad,

Thanks for these changes. Unfortunately, I'm running into a problem with 
the new StartType.pl, which I'm not sure how to fix. (I don't believe I'd 
ever run the old StartType.pl.) There seems to be an error message arising 
from the symlinking, which is killing the replay. (Details below.)

On Tue, 23 Mar 2010, Brad Sawatzky wrote:

> 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.

I've done this, and my analyzer and $DB_DIR are definitely pointing to the 
right place.

> 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

All my copies of these files have been updated (by hand) from the copies 
in /usr/local/d2n_analysis/d2n/replay/

> 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'.

This is where there seems to be a problem. I tried the command 
replay_det_BB(2060,-1) -- the analyzer loaded correctly, and I definitely 
have the updated ReplayCore since it ran StartType.pl. Unfortunately, 
StartType.pl dies in fairly short order, killing the rest of the replay. 
Here's what's printed:

analyzer [0] replay_det_BB(2060,-1)
replay: Adding Scalar ...

------------------------------------------------------
Running: ./StartType.pl 2060
   Found run 2060    from date 20090308 at 00:30:24
   Link run 2060 DB from date 20090306
ERROR:  'db_L.cer.dat' is not a symlink, will not delete it.  Exiting
ERROR:  '(null)' failed

It's dying in the dolink function, at line 66 in StartType.pl. The dolink 
call involving db_L.cer.dat is on line 131, I think. The script is correct 
that db_L.cer.dat is not a symlink, and it would probably be a bad idea to 
delete it, so this is a good failure mode -- but something clearly needs 
to be fixed!

I am a DB novice, here, and am pretty unclear both on how StartType.pl 
used to work ("the 'copy everything' approach'") and on how it's supposed 
to be working now (the "generate symlinks to the necessary DB files" 
approach), so I'm not sure how this should be fixed. I'd be really 
grateful for a quick explanation along with the fix!

I am curious whether anyone else has tried replaying with the new build -- 
this problem shouldn't be unique to me, or else I'm doing something wrong 
too...

Diana


More information about the d2n-analysis-talk mailing list