[d2n-analysis-talk] replay_det_BB.C: error messages and scalers

Brad Sawatzky brads at jlab.org
Mon Mar 1 22:01:33 EST 2010


FWIW, run 1521 replayed cleanly for me using the central DB and a fresh
copy of the 'stock' replay scripts.  Histos and the root Tree look good.

I did get a crash when I tried to run two replay_BB_det.C() calls with
out quiting the analyzer in between...  Could be one of the modules
isn't cleaning up after itself correctly.

I haven't looked at the code, but I wouldn't be surprised if the
THaADCHe3Spin class pulled information from one of the raster classes.
Unadvertized inter-module dependencies do exist in the code.  Yes, that
does violate the object-oriented coding model.  Rather than use
conventional coding techniques like sanity checks on return values, and
proper error handling with informative error messages, enforcement is
imposed by exposing the student to bizarre crashes and "misleading"
error messages until s/he becomes an expert on the twisted internals of
the code.  Then you get to hack in your own unholy fixes to confound the
next generation of students.

My environment is set here:
  /home/brads/.bash_root-setup

The replay directory I used is here:
  /home/brads/d2n-replay/replay/

-- Brad

-- 
Brad Sawatzky, PhD <brads at jlab.org>  -<>-  Jefferson Lab / Hall C / C111
  Ph: 757-269-5947 -<>- Pager: 757-584-5947 -<>- Fax: 757-269-7848
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