1 DEPOSIT
  Syntax: DEPOSIT parameter = expression
   where: parameter    is the parameter you want to change
          expression   is the expression for its new value

  The   expression can  be any  sort of   mathematical   calculation using
  numbers,  registers,  parameters,  errors, bin  contents,  errors on bin
  contents,  centre of bins  etc. See HELP Expressions  for more details.
  See HELP Numbers for details  on the  meaning  of all  the  parameters.
  The parameter can also be a character string that one can change (`CHAR',
  `CHTITLE', or `CHNAME'). 
  Use the  `EXAMINE'  command to look  at any of  the parameters described
  below. You can also use the `SHOW CHARACTER' command to look at the 
  character arrays and the usual `DIRECTORY', `INDEX', `DUMP' commands
  to look at titles and variable names. 

  The  parameter can be  any of the   possibilities given  below or a user
  variable.  User variables  are  alphanumeric strings  (including `_' and
  `$') up to 8 characters  long. They cannot have  the same name as any of
  the parameters listed below. User variables can be deleted using the
  `REMOVE' command. If you give a user variable with a length longer
  than 8 characters it will be truncated.

  There  are 100   registers  available  for  your use  numbered  0 to 99.
  Registers >=100 are  used by Mn_Fit and contain  numbers you may wish to
  access. See HELP Numbers  for what is in  them.  Registers >300 contain
  user variables in the order that they are defined. You can use the
  `SHOW REGISTER' command to list a range of registers.

  To change the contents of a register:
  DEPOSIT Rn      = expression
          where  n is the register number

  To change the value of a parameter or its error in a function:
  DEPOSIT Pn(m)     = expression
          ERRn(m)   = expression
          ERNn(m)   = expression
          ERPn(m)   = expression
          LOLIMn(m) = expression
          HILIMn(m) = expression
          where  n is the function number (as in FUNCTION INFO)
                 m is the parameter number (as in FUNCTION INFO)

  This command also changes the values of MINUIT parameters so can be used
  instead of `MODIFY'.  However, if you want to change a parameter and its
  error, for example, `MODIFY' is probably simpler to use. You can use the
  MINUIT parameter numbers when you  are fitting using the form `Pn' where
  `n' is the MINUIT parameter number.
!^

!\par\noindent
  To change the contents or errors of a bin in a plot:
  DEPOSIT Yn(m)   = expression
          Xn(m)   = expression
          DYn(m)  = expression
          DXn(m)  = expression
          DNXn(m) = expression
          DNYn(m) = expression
          DPXn(m) = expression
          DPYn(m) = expression
          where  n is the plot number (can include the secondary id)
                 m is the bin number

  Note that the x values and their errors can only be changed for a
  series of data points. For plots with asymmetric errors `DX' and
  `DY' are interpreted as the negative errors.

!^

!\par\noindent
  You can also change the contents of a 2-D histogram using the form:
  DEPOSIT Yn(l,m) = expression
          where n is the plot number (can include the secondary id)
                l,m are the bin numbers

!\par\noindent
  You can change a variable in an Ntuple, provided that the Ntuple is
  stored in memory (<50000 words long):
  DEPOSIT Xn(m,nvar) = expression
  or      Xn(m,tvar) = expression
          where n    is the plot number (can include the secondary id)
                m    is the event number
                nvar is the variable number
                tvar is the variable name

  If the histogram identifier is in a register use the syntax
  `PARSE DEPOSIT X{IRn,(I6.6)}(m,nvar)' etc. to convert the register
  to a number.

  You can change the value or set a value of a character array element using
  the command:
  DEPOSIT CHAR(i) = 'string'

  You can change the title of a histogram or Ntuple using the command:
  DEPOSIT CHTITLE(n) = 'string'

  You can change the variable name of an Ntuple using the command:
  DEPOSIT CHNAME(n,nvar) = 'string'
  or      CHNAME(n,tvar) = 'string'

  If the string should contain blanks enclose it in quotes.

2 Examples

!\begin{enumerate}
!\item
!^
  Example 1:
   Setting the initial values of parameters before fitting or plotting a
   function:
    DEPOSIT P1(2) = 1000
    DEPOSIT ERR1(2) = 500
    EXAMINE P1(2)
    FIT ...

!\item
!^
  Example 2:
   Using a register to calculate an upper limit and putting that in a plot.
   Store the upper limit in one plot and the result with asymmetric errors
   in another plot:
    DEPOSIT R10 = R10 + 0.4  !Set x value for which the limit applies
    DEP     R11 = P1(2) + 1.64*ERP1(2)
    FILL  10 R10 R11
    FILL  11 R10 P1(2) 0.2 ERN1(2) 0.2 ERP1(2)

!\item
!^
  Example 3:
   Evaluate some expression:
    dep pi = 3.14159
    DEP R1 = R1 + 0.3*(R2^2 + SQRT(P1(4) - P2(4))) - sin(pi/4)
    examine pi
    show register 1:10

!\item
!^
  Example 4:
   Change 2 histogram titles in 2 different ways:
    title 31 'A New Title'
    dep chtitle(32) = 'A Different New Title'

!\end{enumerate}

