Often, values are formed inside loops. Inside loop over events
This code can get rather tedious. ADIFOR formally differentiates ``existing'' FORTRAN code and uses ``chain rule'' to generate derivative calculations.