Stepping through the Code: Day2

Morning of Code:

Started out the day by looking at rdEztMuSmdCal.C and attempted to rework it into a more understandable format. Doing so I hoped to better see all the pieces of code falling together. I also had a secondary goal to this, which is to rewrite the code in a well commented and planned out format. Sadly i didnt not get very far as some sections of the code are still a mystery to me.

One such section is when it constructs the chain, which i assume is all the events in a run. It seems to me that all the work is done in this chain, ie all the other files are called through it, and the histograms are produced at the end. But, i do not see where all the other files are being pulled in, I see evidance of them, but not the function calls to them. Hopeful this mystery will be solved or at least have more light shed on it this Friday when we meet with Alice.

 

Phone meeting between Alice, Scott, Bob, and I:

It was helpful to hear from Alice and Scott about the calibration project and where it stands. Scott was able to provide a 'big picture' on the whole thing which filled in a few of the knowledge gabs I had. Alice gave an update on her progress and plans for what to do next. On running the code im not to far behind, but on understanding it, i need to catch up.

It was agreed that more phone meets would be arranged as needed in the come weeks.

 

Afternoon of Code:

Sat down with Alice's blog on running the code to see if i could get the scrips to run. I was able to get all the files in the right spot and i think I edited them correctly, but I can't seem to get it to produce histograms. When I run submit.pl with a run number and iteration number it outputs this:

You are in directory /star/u/znault/aliceFiles/2010-may-18/Sched!
But your parent directory is /star/u/znault/aliceFiles/2010-may-18/!
Results will be stored in existing directory ../EEMC_cal/iter-1
Directory contents:
histo log ps table
star-submit-template -template sub.xml -entities 'RUN=10136009,ITER=1,PARENT=/star/u/znault/aliceFiles/2010-may-18/'
STAR Template Scheduler 0.1 (/afs/rhic.bnl.gov/star/packages/scripts/star-submit)

STAR Scheduler 1.10.1
*** Note: The default directory in which jobs start has be fix to $SCRATCH ***
Your Log file can be found at: /afs/rhic.bnl.gov/star/doc/www/html/tmp/pub/scheduler/znault.log
Reading request description file : schedTemplateExp.xml
Analyzing XML...XML OK
Testing queue (bnl_condor_short@STAR - Local Access Method) ...Done(passed)
Testing queue (BNL_condor_medium@STAR - Local Access Method) ...(passed)
Testing queue (bnl_condor_rcas_long@STAR - Local Access Method) ...(passed)
Dispatching process 2D234B6DF076A3BDE1C886511F57B72D_0. done.
Wrote scheduling report to : /star/u/znault/aliceFiles/2010-may-18/Sched/sched2D234B6DF076A3BDE1C886511F57B72D.report
Reporting statistics... done.

Running UCM logger member...done.
Scheduling successful

The first two lines almost seem like errors, but im not sure. When i check the files i get nothing in the histo/ folder, but i do get one .log file.

I then edited the hadd.C file as stated in the blog and ran bigSectloop.sh with the interation number passed in. This then looped through multiple times, but each time i got a can not find file doSmdCal.C error. That file is there, and i think i pointed everything in the right direction, but im not totally sure. After i run this i should have a bunch of .hist.root files, but i don't.

My goals for tomorrow are to work on these script files to see if I can get them to run correctly for me and to work more on the rdEztMuSmdCal.C file that i started earlier.