<!-- Title: 17:41:09  Mon May  5 2003 -->
<!-- Crewchief: Karen Gibson -->
<!-- Op1: Joao Guimaraes -->
<!-- Op2: Andy Foland -->
<!-- Op3: Bo Jayatilaka -->
<!-- Op4: Manfred Paulini -->
<!-- Op5: &nbsp; -->
<!-- Op6: &nbsp; -->
<!-- Notes: -->
<pre>continuing beam operations 
</pre>


<!-- Date: Mon May 5 17:44:27 2003 -->
<pre>Testing updateBeamlinePass.sh script.  Tried  
 
cdfopr&gt; Alignment/scripts/updateBeamlinePass.sh 08 onotl_prd 19 160409 160540 nocot nowrite  
| & tee updateBeamlinePass_160409_160540.log 
 
Discovered that 160537-160540 are in store 2343 and had interpolated entries made from 160541 (one of 2 runs which needs new HC19 entries.)  Hence 160537-160539 will have 2 interpolated entries once 160541 is processed correctly.  </pre>
<!-- Author: Karen -->
<!-- Comment: Mon May  5 17;59;23 comment by...Karen -->
<pre>Instead ran 

Alignment/scripts/updateBeamlinePass.sh 08 onotl_prd 19 160409 160537 nocot nowrite 
| & tee updateBeamlinePass_160409_160537.log

and everything looks okay.  Next step is to write.</pre>

<!-- Comment: Mon May  5 18;07;20 comment by...Karen -->
<pre>Oops... I lied.  The previous command also interpolated an svx beam entry for 160536 & 160537 b/c they somehow bridged from store 2342 -&gt; 2343.  To write I will run thru 160534.</pre>


<!-- Date: Mon May 5 19:43:35 2003 -->
<pre>Wrote runs 160410 - 160534 to PAD_PHYSICS_SVXBEAM 08.  Now run 
 
Alignment/scripts/updateBeamlinePass.sh 07 onotl_prd 19 160409 160534 nosvx nowrite  
| & tee updateBeamlinePass_cot_160409_160534.log 
 
for COT.</pre>
<!-- Author: Karen -->
<!-- Comment: Mon May  5 19;46;13 comment by...Karen -->
<pre>Everything looks good, so writing runs 160410 - 160534 to PAD_PHYSICS_COTBEAM 07:

Alignment/scripts/updateBeamlinePass.sh 07 onotl_prd 19 160409 160534 nosvx write 
|& tee updateBeamlinePass_cot_160409_160534.log</pre>


<!-- Date: Mon May 5 21:53:47 2003 -->
<pre>Wrote 160410 - 160540 to PAD_PHYSICS_COTBEAM 07 successfully.</pre>
<!-- Author: Karen -->
<!-- Comment: Mon May  5 22;05;58 comment by...Karen -->
<pre>Oops again...  the run range should be 160410 - 160534!</pre>


<!-- Date: Mon May 5 22:29:25 2003 -->
<pre>Ran checkBeamlinePass.sh for cot & svx in run range 160410 - 160540.  Everything looks as we expect, so write it off as good?</pre>
<!-- Author: Karen -->


<!-- Date: Wed May 7 11:44:07 2003 -->
<pre>Last night discovered that after HC17 COT entry had been copied onto HC19 COT entry (on 04/29/03), a new HC19 SVX + COT entry was made (on 05/02/03.)  This means that we have to  
 
1) retire the current PAD_PHYSICS_COTBEAM pass 07 (index 49) 
2) make a new one 
3) copy the entries from 122621 - 160408 into the new 
   PAD_PHYSICS_COTBEAM pass 07 (index &gt; 49) 
4) recopy HC17 entries onto HC19 entries for COTBEAM for runs 
   160410 - 160540  
5) add the new COTBEAM entries to PAD_PHYSICS_COTBEAM pass 07 
   (index &gt; 49)</pre>
<!-- Author: Karen -->


<!-- Date: Wed May 7 14:50:43 2003 -->
<pre>Retiring old PAD_PHYSICS_COTBEAM 
 
[fcdflnx3:cdfopr/beamlines/4.9.1hpt3_beam] cdfopr&gt; ~cdfsoft/dist/releases/development/CalibDB/bin/PassTool.pl -c /@cdfonprd -p PAD_PHYSICS_COTBEAM -n 07 -w 
49 
success:index=50 process_name=PAD_PHYSICS_COTBEAM stream=A passname=07 
 
To find the first run in old pass 07: 
 
${CDFSOFT2_DIR}/CalibDB/bin/PassCalibTool.pl -c cdf_reader/reader@cdfofprd -i 49 -d -f dbcontent.txt 
 
 
Copying entries from 122621 - 160408 into new table, index 50: 
 
Alignment/scripts/copyBeamlinePass.sh 50 49 122621 160408 | & tee copyBeamlinePass_122621_160408.log 
 
 
Checked again w/PassCalibTool.pl: 
 
${CDFSOFT2_DIR}/CalibDB/bin/PassCalibTool.pl -c cdf_reader/reader@cdfofprd -i 50 -d -f dbcontent2.txt  
 
and everything looks fine (i.e. same # of entries in pass_output21905.txt & dbcontent2.txt, both of which show entries in PAD_PHYSICS_COTBEAM i=50 
 
</pre>
<!-- Author: Karen -->


<!-- Date: Thu May 8 13:31:17 2003 -->
<pre>updateBeamlinePass only allowed writing to the production database, so, for testing purposes, a version named updateBeamlinePass_dev (in 4.9.1hpt3_beam/Alignment/scripts) has been created that can use onotl_dev as the database name.</pre>
<!-- Author: Bo -->


<!-- Date: Thu May 8 15:24:11 2003 -->
<table border=0><td><tr><td bgcolor=#e0e030><pre>Made a new tag for the Alignment package with all the scripts that we use for history code 19. The tag is history_19_v02. 
The updated files relative to the history_19 tag are: 
 
# A "*" means locally modified 
cvs checkout -r 1.22 Alignment/test/GNUmakefile  
cvs checkout -r 1.4 Alignment/test/UsedSetVersion.cc 
cvs checkout -r 1.7 Alignment/test/SvxBeamFillDB.cc  
cvs checkout -r 1.9 Alignment/test/SvxBeamReadDB.cc 
cvs checkout -r 1.8 Alignment/test/FillMissingCotEntry.cc 
cvs checkout -r 1.9 Alignment/test/FillMissingSvxEntry.cc 
cvs checkout -r 1.2 Alignment/test/RunStatus.cc    
#*small difference locally 
cvs checkout -r 1.1 Alignment/scripts/copyBeamlinePass.sh  
cvs checkout -r 1.9 Alignment/scripts/MakeUsedValidSet 
cvs checkout -r 1.2 Alignment/scripts/checkForMissingEntries 
#*small difference locally 
cvs checkout -r 1.5 Alignment/scripts/updateBeamlinePass.sh 
cvs checkout -r 1.10 Alignment/scripts/mergefiles   
*Alignment/scripts/fitbeam      --&gt; need to move to Beamline 
*Alignment/scripts/fitbeam_refit --&gt; need to move to Beamline</pre></td></tr></td></table>
<!-- Author: Joao -->


<!-- Date: Tue May 13 16:50:32 2003 -->
<pre>Made new (SVX/COT)BEAM passes for HC20: 
 
[cdfopr@fcdflnx3 4.10.4]$ ~cdfsoft/dist/releases/development/CalibDB/bin/PassTool.pl -c /@cdfonprd -p PAD_PHYSICS_SVXBEAM -n 09 -w 
50 
success:index=51 process_name=PAD_PHYSICS_SVXBEAM stream=A passname=09 
 
[cdfopr@fcdflnx3 4.10.4]$ ~cdfsoft/dist/releases/development/CalibDB/bin/PassTool.pl -c /@cdfonprd -p PAD_PHYSICS_COTBEAM -n 09 -w 
51 
success:index=52 process_name=PAD_PHYSICS_COTBEAM stream=A passname=09 
 
Checked w/PassTool.pl that both passes are there: 
 
INDEX   PASS    PROCESS_NAME            STREAM  RETIRED 
-------------------------------------------------------------------------- 
1       01      PROD_PHYSICS_CDF        A       YES 
2       01      TEST            A       YES 
3       01      PROD_PHYSICS_CDF        A       YES 
4       01      PROD_PHYSICS_CDF        A 
5       A       PROD_PHYSICS_CDF        A 
6       02      PROD_PHYSICS_CDF        A       YES 
7       02      PROD_PHYSICS_CDF        A       YES 
8       02      PROD_PHYSICS_CDF        A       YES 
9       02      PROD_PHYSICS_CDF        A 
10      03      PROD_PHYSICS_CDF        A 
11      01      PAD_PHYSICS_COTBEAM             A 
12      01      PAD_PHYSICS_SVXBEAM             A 
13      01      PAD_PHYSICS_CDF         A 
14      04      PROD_PHYSICS_CDF        A       YES 
15      04      PROD_PHYSICS_CDF        A 
16      05      PROD_PHYSICS_CDF        A 
17      06      PROD_PHYSICS_CDF        A       YES 
18      06      PROD_PHYSICS_CDF        A       YES 
19      07      PROD_PHYSICS_CDF        A       YES 
20      07      PROD_PHYSICS_CDF        A       YES 
21      07      PROD_PHYSICS_CDF        A       YES 
22      07      PROD_PHYSICS_CDF        A       YES 
23      02      PAD_PHYSICS_COTBEAM             A 
24      02      PAD_PHYSICS_SVXBEAM             A 
25      07      PROD_PHYSICS_CDF        A       YES 
26      07      PROD_PHYSICS_CDF        A       YES 
27      07      PROD_PHYSICS_CDF        A       YES 
28      06      PAD_PHYSICS_COTBEAM             A 
29      06      PAD_PHYSICS_SVXBEAM             A 
30      07      PAD_PHYSICS_SVXBEAM             A 
31      07      PAD_PHYSICS_COTBEAM             A       YES 
32      07      PAD_PHYSICS_CDF         A 
33      08      PAD_PHYSICS_SVXBEAM             A       YES 
34      08      PAD_PHYSICS_SVXBEAM             A       YES 
35      08      PAD_PHYSICS_SVXBEAM             A       YES 
36      08      PAD_PHYSICS_CDF         A       YES 
37      08      PAD_PHYSICS_SVXBEAM             A       YES 
38      07      PAD_PHYSICS_COTBEAM             A       YES 
39      08      PAD_PHYSICS_SVXBEAM             A 
40      07      PAD_PHYSICS_COTBEAM             A       YES 
41      07      PAD_PHYSICS_COTBEAM             A       YES 
42      08      PAD_PHYSICS_CDF         A 
43      08      PROD_PHYSICS_CDF        A       YES 
44      08      PROD_PHYSICS_CDF        A       YES 
45      07      PROD_PHYSICS_CDF        A 
46      06      PROD_PHYSICS_CDF        A 
47      08      PROD_PHYSICS_CDF        A       YES 
48      08      PROD_PHYSICS_CDF        A 
49      07      PAD_PHYSICS_COTBEAM             A       YES 
50      07      PAD_PHYSICS_COTBEAM             A 
51      09      PAD_PHYSICS_SVXBEAM             A 
52      09      PAD_PHYSICS_COTBEAM             A 
   
 
Note that PAD_PHYSICS_SVXBEAM + PAD_PHYSICS_COTBEAM both have pass name 09 (previously SVX was 08 + COT was 07.) 
 </pre>
<!-- Author: Karen -->


<!-- Date: Tue May 13 21:12:10 2003 -->
<center><a href='/cgi/elog/det-system-elog.pl?nb=beamline&action=view&page=-19&button=yes' target='xxx' onclick='jswindow()'><img src='/cgi/elog/det-system-elog.pl?nb=beamline&action=view&page=-19' width='300'></a><a href='/cgi/elog/det-system-elog.pl?nb=beamline&action=view&page=-20&button=yes' target='xxx' onclick='jswindow()'><img src='/cgi/elog/det-system-elog.pl?nb=beamline&action=view&page=-20' width='300'></a></center>
<!-- Author: Karen -->
<!-- Comment: Tue May 13 21;14;57 comment by...Karen -->
<pre>COT validation for 160410 - 160541.  Note that copying of HC17 onto HC19 was successful for these runs. Everything looks okay here. </pre>
<!-- Date: Tue May 13 21:13:00 2003 -->
<center><a href='/cgi/elog/det-system-elog.pl?nb=beamline&action=view&page=-21&button=yes' target='xxx' onclick='jswindow()'><img src='/cgi/elog/det-system-elog.pl?nb=beamline&action=view&page=-21' width='300'></a><a href='/cgi/elog/det-system-elog.pl?nb=beamline&action=view&page=-22&button=yes' target='xxx' onclick='jswindow()'><img src='/cgi/elog/det-system-elog.pl?nb=beamline&action=view&page=-22' width='300'></a></center>
<!-- Author: Karen -->
<!-- Comment: Tue May 13 21;20;07 comment by...Karen -->
<pre>On the left is HC19 COT - SVX, which looks okay; no suspicious outlyers. On the right is the time dependence of the runs; the run w/40um diff in x0 + 80 um diff in y0 is run 160541.  These time differences are what we had previously observed for this run in the AcNet SVT beam, so it looks like our offline time dependent beamline is consistent with the time dependence of the SVT beamline.</pre>


<!-- Date: Wed May 14 16:58:43 2003 -->
<pre>Making new SVXBEAM 08 table to copy entries up to 160408 (analagous to what was done in COTBEAM 07) so as to keep both tables consistent w/each other.  Made a mistake while making a new table and made table PAD_PHYSICS_SVXBEAM 07 (index 53) before making PAD_PHYSICS_SVXBEAM 08 (index 54)... helping cement the beamline group's legacy of useless DB tables.  
 
[cdfopr@fcdflnx3 4.9.1hpt3_beam]$ ~cdfsoft/dist/releases/development/CalibDB/bin/PassTool.pl -c /@cdfonprd -p PAD_PHYSICS_SVXBEAM -n 08 -w 
53 
success:index=54 process_name=PAD_PHYSICS_SVXBEAM stream=A passname=08 
 
Now copy the runs up to 160408 to the new table(i=54) from the old one (i=39): 
 
Alignment/scripts/copyBeamlinePass.sh 54 39 122621 160408 | & tee copyBeamlinePass_122621_160408.log 
 
 
</pre>
<!-- Author: Karen -->
<!-- Comment: Wed May 14 17;51;56 comment by...Karen -->
<pre>Everything looks good... #lines in SVXBEAM table i=54 matches #lines in COTBEAM table i=50 (the new one,) so it's all good. </pre>


<!-- Date: Wed May 14 18:22:48 2003 -->
<pre>Updating beamline pass, nowite first: 
 
Alignment/scripts/updateBeamlinePass.sh 08 onotl_prd 19 160409 160541 nocot nowrite &gt; & updateBeamlinePass_160409_160541.log & 
 
No obvious problems here, so write entries to DB: 
 
Alignment/scripts/updateBeamlinePass.sh 08 onotl_prd 19 160409 160541 nocot write &gt; & updateBeamlinePass_160409_160541_write.log</pre>
<!-- Author: Karen -->
<!-- Comment: Wed May 14 18;45;52 comment by...Karen -->
<pre>Write looks to be successful; now on to COTBEAM.</pre>


<!-- Date: Wed May 14 19:28:48 2003 -->
<pre>Now doing COTBEAM: 
 
Alignment/scripts/updateBeamlinePass.sh 07 onotl_prd 19 160409 160541 nosvx nowrite &gt; & updateCotBeamlinePass_160409_160541.log & 
 
Looks good too, so write this one also: 
 
Alignment/scripts/updateBeamlinePass.sh 07 onotl_prd 19 160409 160541 nosvx write &gt; & updateCotBeamlinePass_160409_160541_write.log &</pre>
<!-- Author: Karen -->
<!-- Comment: Wed May 14 20;08;25 comment by...Karen -->
<pre>Writing COTBEAM successful.</pre>


<!-- Date: Wed May 14 22:18:11 2003 -->
<pre>Checked SVX + COT passes w/checkBeamlinePass.sh: 
 
[cdfopr@fcdflnx3 4.9.1hpt3_beam]$ Alignment/scripts/checkBeamlinePass.sh 160410 160541 19 svx 08 & 
 
[cdfopr@fcdflnx3 4.9.1hpt3_beam]$ Alignment/scripts/checkBeamlinePass.sh 160410 160541 19 cot 07 & 
 
and everything looks okay, so I asked Rob Snihur and Dustin Something to add 160410-160541 to PAD_PHYSICS_CDF.</pre>
<!-- Author: Karen -->