2012 200GeV Spin QA: Fixing Bad Fills -- Part 1

Find attached all of the documents necessary to follow along with the outline below. The 200 GeV spin QA hasn't been as neat and clean as the 500 longitudinal data, there are several bad fills to try and fix. The original documents that result from the scripts are attached in this post. There will be several more posts outlining how the bad fills were examined as I get to them.

For the 200GeV data there were a total of 81 Fills picked up by the loopMainAll.tcl script. Of these 81 fills, 8 of them were flagged as bad in spinTime.txt by spbitSeeker.tcl with the error flag *fb meaning that the fill number doesn't match up with the cDev fill number for the beginning run in the fill. There were 12 more runs flagged by begEndComp.tcl meaning that there were differences in the V124 files from the beginning and ending runs in the fill.

To try to sort out these bad fills I first remove any fills that have two or less runs in them. From this we lose the following 6 fills:

 

Fill Number
Runs Lost
Trigger Setup Name
Status
16381 13039164 setup_2012_ht Successful
16425
 
13045080 setup_2012 Questionable
13045111 setup_2012 Successful
   16364 13038150 pp200_production_2012 Successful
16469 13056051 setup_2012_ht Successful
16482 13059059 fgtPedestals Bad
16542 13071056 setup_2012_ht Successful

 

After this we are left with the following fills to try and "fix". I will lay out the process to fixing these fills as well as the ones which couldn't be fixed. 

Fill Number
Number of Runs
16436 20
16439 9
16447 34
16452 22
16462 9
16484 18
16487 9
16509 18
16541 19
16543 20
16507 19
16523 11
16538 25

 

Working with Brian Page, the first fill we looked at was 16436. The problem with this fill was that CAD loaded a new spin pattern but didn't change the fill number for that cdev entry. Checking the cdev entry for the time when the fill ends (11:17:06 GMT 2/17/2012), we find that it returns fill 16437 and we have a spin pattern inconsistent with the middle of the fill. Then if we check the cdev entry for the time stamp according to the end of the final run (11:09:00 GMT) we return the correct fill number with the correct spin pattern. Thus we conclude that we should use fill 16436, only we change the ending time in testSummary.csv from 1329477426 to the time corresponding to the end of the final run (11:09 GMT on 2/17/2012) and remove it from the bad list.

 

The next fill examined was 16439. The polarization pattern given in spinTime.txt for this fill is B-+-++-+- Y++--++--, a P2 pattern. If we again examine the last run we find that we have a different polarization pattern than given in spinTime.txt, this gives B+-+--+-+ Y--++--++. So, if we look at the runs before this we get the same pattern, so we check the first run in the fill 13048074, ending at 20:15:14 GMT 2/17/2012, and I find that the pattern is a correct P2 spin pattern. But checking the RICH scalars, we find that this run was taken when there was no beam in the ring, so the measured fill pattern is zero. Thus this fill can be used if we throw away run 13048074 from testSummary.csv and change the spin pattern to a P3 pattern, which is what the other runs show (B-+-++-+- Y++--++--).

 

I will be posting more as I get time to look at the next fills, and I will summarize the findings as a whole when all the work is complete.