Simulate event list(s).
This tool simulates event list(s) using the instrument characteristics specified by the instrument response function(s) and an input model. The simulation includes photon events from astrophysical sources and background events from an instrumental background model.
By default, ctobssim creates a single event list. ctobssim queries a pointing direction, the radius of the simulation region, a time interval, an energy interval, an instrumental response function, and an input model. ctobssim uses a numerical random number generator for the simulations with a seed value provided by the hidden seed parameter. Changing this parameter for subsequent runs will lead to different event samples.
ctobssim performs a safety check on the maximum photon rate for all model components to avoid that the tool locks up and requests huge memory resources, which may happen if a mistake was made in setting up the input model (for example if an error in the flux units is made). The maximum allowed photon rate is controlled by the hidden maxrate parameter, which by default is set to 1e6.
ctobssim can also generate multiple event lists if an observation definition file is specified on input using the hidden inobs parameter. In that case, simulation information will be gathered from the file, and for each observation an event list will be created.
For each event file, the simulation parameters will be written as data selection keywords to the FITS header. These keywords are mandatory for any unbinned maximum likelihood analysis of the event data.
chatter = 0: no information will be logged
chatter = 1: only errors will be logged
chatter = 2: errors and actions will be logged
chatter = 3: report about the task execution
chatter = 4: detailed report about the task execution