1
# Author: Christopher Tunnell <tunnell@hep.uchicago.edu>
6
from src.ReadGenericCalibration import *
7
from src.region import *
9
class ScanRMSvsScan(ReadGenericCalibration):
10
"See the comparison between errors on CIS scans with error on mean verus rms"
12
def ProcessRegion(self, region):
13
for event in region.GetEvents():
14
if event.runType == 'CIS':
15
if event.data.has_key('scan') and event.data['scan'] and\
16
event.data.has_key('scan_rms') and event.data['scan_rms']:
17
gscan = event.data['scan']
18
gscan_rms = event.data['scan_rms']
20
for i in range(gscan.GetN()):
22
if not 7.74 < gscan_rms.GetErrorY(i)/gscan.GetErrorY(i) < 7.75:
23
print gscan_rms.GetErrorY(i), gscan.GetErrorY(i), gscan_rms.GetErrorY(i)/gscan.GetErrorY(i)