code: def setGamma(self, x):
          
          if x != self.gamma:
              self.gamma = x
              self.refresh = True
docs: set electron energy, gamma value
  
          :param x: new energy, gamma value
          :return: None