To generate a simulated diffraction signal, one or more values of one or
more photoresist parameters, which characterize behavior of photoresist
when the photoresist undergoes processing steps in a wafer application,
are obtained. One or more values of one or more profile parameters are
derived using the one or more values of the one or more photoresist
parameters. The one or more profile parameters characterize one or more
geometric features of the structure. A simulated diffraction signal is
generated using the one or more values of the one or more profile
parameters. The simulated diffraction signal characterizes behavior of
light diffracted from the structure. The generated simulated diffraction
signal is associated with the one or more values of the one or more
photoresist parameters. The generated simulated diffraction signal, the
one or more values of the one or more photoresist parameters, and the
association between the generated simulated diffraction signal and the
one or more values of the one or more photoresist parameters are stored.