def dcm_collimator(axis, coeff, nr)
      mode = self.send("field_#{axis}_mode")
      if mode && !mode.empty?
        target = self
      else
        target = @parent
      end
      target.send("collimator_#{axis}#{nr}").to_f * 10 * coeff
    end
def dcm_collimator(axis, coeff, nr)
      mode = self.send("field_#{axis}_mode")
      if mode && !mode.empty?
        target = self
      else
        target = @parent
      end
      target.send("collimator_#{axis}#{nr}").to_f * 10 * coeff
    end
Converts the collimator attribute to proper DICOM format.

 @param [Symbol] axis a representation for the axis of interest (x or y)
 @param [Integer] coeff a coeffecient (of -1 or 1) which the attribute is multiplied with
 @param [Integer] nr collimator side/index (1 or 2)
 @return [Float] the DICOM-formatted collimator attribute