code: def setParams(self, bend_length, bend_field, drift_length, gamma):
          
          if None in (bend_length, bend_field, drift_length, gamma):
              print("warning: 'bend_length', 'bend_field', 'drift_length', 'gamma' should be positive float numbers.")
              self.mflag = False
          else:
              self._setDriftList(drift_length)
              self.gamma = gamma
              self.bend_length = bend_length
              self.bend_field = bend_field
docs: set chicane parameters
  
          :param bend_length: bend length, [m]
          :param bend_field: bend field, [T]
          :param drift_length: drift length, [m], list
          :param gamma: electron energy, gamma
          :return: None