{
  "ProtocolNumber": 1,
  "ProtocolVersion": 1,
  "Modes": {
    "None": {
      "id": 0,
      "events": "None",
      "description":"No Beam"
    },
    "Conditioning": {
      "id": 10,
      "events": [
        "ION_ST",
        "ION_END",
        "DATA"
      ],
      "description":"Plasma production, magnetron allowed but no extraction HV"
    },
    "Probe Beam": {
      "id": 20,
      "events": [
        "ION_ST",
        "ION_END",
        "DATA"
      ],
      "description": "First beam through a particular section; non-damaging even in the case of total beam loss (even repeated); used to verify that machine configuration is not grossly incorrect"
    },
    "Fast Commissioning": {
      "id": 30,
      "events": [
        "ION_ST",
        "ION_END",
        "DATA"
      ],
      "description" : "Limited beam loading; used for fast scans to rapidly determine/verify RF setpoints"
    },
    "RF Test": {
      "id": 40,
      "events": [
        "ION_ST",
        "ION_END",
        "DATA"
      ],
      "description" : "To perform an initial RF test with a longer pulse"
    },
    "Stability Test": {
      "id": 50,
      "events": [
        "ION_ST",
        "ION_END",
        "DATA"
      ],
      "description" : "To be used mostly for beam stability test"
    },
    "Slow Commissioning": {
      "id": 60,
      "events": [
        "ION_ST",
        "ION_END",
        "DATA"
      ],
      "description" : "Very short pulse planned to be used used during Normal Conducting Linac commissioning. It would allow installation of the rest of the Linac in parallel to Beam Commissioning."
    },
    "Fast Tuning": {
      "id": 70,
      "events": [
        "ION_ST",
        "ION_END",
        "DATA"
      ],
      "description" : "Limited beam loading; used for fast scans to rapidly determine/verify RF setpoints and measure beam profiles with wire scanners"
    },
    "Slow Tuning": {
      "id": 80,
      "events": [
        "ION_ST",
        "ION_END",
        "BPULSE_CM",
        "BPULSE_ST",
        "BPULSE_END",
        "DATA"
      ],
      "description" : "Largest charge per pulse that allow operation of invasive proton beam instrumentation devices like wire scanners; long enough beam pulses to diagnose and monitor RF feedback and the onset of beam loading; used to perform more precise single-pulse measurements"
    },
    "Long Pulse Verification": {
      "id": 90,
      "events": [
        "ION_ST",
        "ION_END",
        "DATA"
      ],
      "description" : "Only used when machine reasonably tuned to the tuning dump or the target; slowly-increasing pulse lengths are used to tune RF feedforward, verify beam loading and Lorentz force detuning compensation, and tune for low beam losses. Iintermediate short pulses at 1Hz could be supplied to monitor stability between long pulses."
    },
    "Shielding Verification": {
      "id": 100,
      "events": [
        "ION_ST",
        "ION_END",
        "BPULSE_CM",
        "BPULSE_ST",
        "BPULSE_END",
        "DATA"
      ],
      "description" : "To be defined better once the exact requirements for the shielding verification (power, pulse length) are known."
    },
    "Production": {
      "id": 110,
      "events": [
        "ION_ST",
        "ION_END",
        "BPULSE_CM",
        "BPULSE_ST",
        "BPULSE_END",
        "DATA"
      ],
      "description" : "Normal mode for NSS experiments during operation"
    },
    "Global": {
      "pv": "PBMod"
    }
  },
  "Destination": {
    "None": {
      "id": 0
    },
    "ISrc": {
      "id": 10,
      "type" : "Virtual destination for plasma conditioning",
      "limits" : "Only for conditioning mode/0/0/0"
    },
    "LEBT": {
      "id": 20,
      "type" : "Faraday Cup",
      "limits" : "Full beam"
    },
    "MEBT": {
      "id": 30,
      "type" : "Faraday Cup",
      "limits" : "(1Hz, 50us)/(14Hz, 5us), 62.5 mA"
    },
    "DTL2": {
      "id": 40,
      "type" : "Faraday Cup",
      "limits" : "(1Hz, 50us)/(14Hz, 5us), 62.5 mA"
    },
    "DTL4": {
      "id": 50,
      "type" : "Faraday Cup",
      "limits" : "(1 Hz, 50us)/(14 Hz, 5us), 62.5 mA"
    },
    "Spokes": {
      "id": 60,
      "type" : "Beam Stop",
      "limits" : "To be defined"
    },
    "MBL": {
      "id": 70,
      "type" : "Beam Stop",
      "limits" : "To be defined"
    },
    "Tuning Dump": {
      "id": 80,
      "type" : "Dump",
      "limits" : "12kW"
    },
    "Target": {
      "id": 90,
      "type" : "Target",
      "limits" : "5MW"
    },
    "Global": {
      "pv": "PBDest"
    }
  },
  "Target": {
    "Global": {
      "pv": "TgSeg"
    }
  }
}