Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Point detector delay scan

  • Code Block
    none
    none
    titleFetching the ControlPV information
    
        def begincalibcycle( self, evt, env ) :
    
            # get updated configuration object at each calibcycle. 
            ctrl_config = env.getConfig(TypeId.Type.Id_ControlConfig)
    
            for ic in range (0, ctrl_config.npvControls() ):
                cpv = ctrl_config.pvControl(ic)
                if cpv.name()=="fs2:ramp_angsft_target":
    
                    # store the value in a class variable (visible in every class method)
                    self.current_pv_value = cpv.value() )
    
  • Code Block
    none
    none
    titleFetching the IPIMB information
    
        def event( self, evt, env ) :
    
            # Use "XppSb3Ipm-1|Ipimb-0" (a.k.a. IPM3) for normalization and filtering
    
            ipmN_raw = evt.get(TypeId.Type.Id_IpimbData, "XppSb3Ipm-1|Ipimb-0")
            ipmN_fex = evt.get(TypeId.Type.Id_IpmFex, "XppSb3Ipm-1|Ipimb-0")
    
            # we use the IpmFex information, and choose to use the sum 
            # of all channel values for normalization and filtering 
            ipmN_norm = ipmN_fex.sum
    
            # Use "XppSb3Pim-1|Ipimb-0" (a.k.a. PIM3) channel 1 as signal
    
            ipmS_raw = evt.get(TypeId.Type.Id_IpimbData, "XppSb3Pim-1|Ipimb-0" )
            ipmS_fex = evt.get(TypeId.Type.Id_IpmFex, "XppSb3Pim-1|Ipimb-0" )
    
            # Here, we use IpmFex channel 1 (counting from 0) as the signal
            ipm_sig = ipmS_fex.channel[1]
    

*

Code Block
none
none
titleFetching the Phase Cavity information

    def event(self, evt, env):

        pc = evt.getPhaseCavity()
        phasecav1 = pc.fFitTime1
        phasecav2 = pc.fFitTime2
        charge1 = pc.fCharge1
        charge2 = pc.fCharge2

*

Code Block
none
none
titleComputing the delay time

        delaytime = self.current_pv_value + phasecav1*1e3    

Image peak finding

CSPad images and tile arangements

...