Example #1
0
            charge.append(sumadc)
          #    hpmp.Fill(peak-pedestal)
          #if index < 1500:
          countgood+=1
          deltats.append((htime-ctime)*15.625*10**-3)
          pedestal_v.append(pedestal)
          pedestal_rms_v.append(pedestal_rms)
          dt=(htime-ctime)*15.625*10**-3

          if printfile:
            fileout.write("%d %3.1f %5.1f %3.2f %3.1f %12.9f \n" % (chmap[channel],pedestal,peak-pedestal,dt,pedestal_rms,(filecount-1)*100+realtime))
            s.channel=chmap[channel]
            s.peak=peak-pedestal
            s.pedestal=pedestal
            s.pedrms=pedestal_rms
            s.deltat=dt
            s.time=realtime
            s.caltemp=float(run_settings[1]["calenv"][0])/100.
            s.hvtemp=float(run_settings[1]["hvenv"][0])/100.
            s.thr0=int(run_settings[0]["threshold"][0])
            s.thr1=int(run_settings[0]["threshold"][1])
            s.thr2=int(run_settings[0]["threshold"][2])
            s.thr3=int(run_settings[0]["threshold"][3])
            s.thr4=int(run_settings[0]["threshold"][4])
            s.thr5=int(run_settings[0]["threshold"][5])
            s.thr6=int(run_settings[0]["threshold"][6])
            s.thr7=int(run_settings[0]["threshold"][7])

            s.vthrcal0=float(run_settings[0]["threshmv"][1])
            s.vthrcal1=float(run_settings[0]["threshmv"][4])            
            s.vthrcal2=float(run_settings[0]["threshmv"][7])