                     if let energy = gammaPerAct.getValueAt(index: row, key: kEnergy) {
                         field = String(format: "%.7f", energy as! Double)
                     }
+                case keyColumnGammaEncoder:
+                    if let encoder = gammaPerAct.getValueAt(index: row, key: kEncoder) {
+                        field = String(format: "%hu", encoder as! CUnsignedShort)
+                    }
                 case keyColumnGammaDeltaTime:
                     if let deltaTime = gammaPerAct.getValueAt(index: row, key: kDeltaTime) {
                         field = String(format: "%lld", deltaTime as! CLongLong)

        let name = "\(position)\(encoder)"
        let energy = calibration.calibratedValueForAmplitude(Double(channel), eventName: name)
        let info = [kEnergy: energy,
                    kDeltaTime: deltaTime] as [String : Any]
        gammaPerAct.append(info)
    }

        }
        columns.append(contentsOf: [
            keyColumnGammaEnergy,
            keyColumnGammaEncoder,
            keyColumnGammaDeltaTime
            ])
        if criteria.searchSpecialEvents {
