     fileprivate var CycleTime: Int?
     fileprivate var AlphaWell = Set<Int>()
     fileprivate var alphaWellMaxEventId: Int = 0
+    fileprivate var AlphaWellBack = Set<Int>()
+    fileprivate var alphaWellBackMaxEventId: Int = 0
     fileprivate var AlphaMotherFront = Set<Int>()
     fileprivate var AlphaDaughterFront = Set<Int>()
     fileprivate var AlphaFront = Set<Int>()

    
    func isAlphaWellEvent(_ eventId: Int) -> Bool {
        return AlphaWell.contains(eventId)
    }
    
    func isGammaEvent(_ eventId: Int) -> Bool {

            BeamIntegral = dict["IntegralHi"]
            AlphaWell = getValues(ofTypes: ["AWel"])
            alphaWellMaxEventId = AlphaWell.max() ?? 0
            AlphaWellBack = getValues(ofTypes: ["AWBk"])
            alphaWellBackMaxEventId = AlphaWellBack.max() ?? 0
            AlphaMotherFront = getValues(ofTypes: ["AFr"])
            AlphaDaughterFront = getValues(ofTypes: ["AdFr"])
            AlphaFront = AlphaMotherFront.union(AlphaDaughterFront)
