![]() |
SatAndLight
2.2.2-hubble
Simulation toolkit for space telescopes
|
This program generates an observation sequence. More...

Classes | |
| class | snl_sequence_parameters |
| List of parameters for snl-sequence. More... | |
Functions | |
| int | main (int argc, char *argv[]) |
| This program generates an observation sequence. | |
| void | snl_sequence_getparameters (snl_sequence_parameters *par, const string optfile) |
| Parses option file. | |
| void | snl_sequence_setsatseq (snl_sequence_parameters *par, Satellite *sat) |
| Programs the satellite flight sequence. | |
This program generates an observation sequence.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
This program generates an observation sequence.
This program expects exactly one argument which is the path to a text file listing the sequence parameters. If it is not the case or if the file path is invalid, the help message is printed (see printhelp()).
Here is the sequence of actions to generate the observation:
| [in] | argc | Number of arguments. |
| [in] | argv | List of arguments. |
| void snl_sequence_getparameters | ( | snl_sequence_parameters * | par, |
| const string | optfile | ||
| ) |
Parses option file.
snl-sequence parameters are identified with a set of tag/keyword:
[TAG] [KEYWORD] [list of parameters]
The option order does not matter and a line can be commented out with "//". If an option is missing or is invalid, default values are used. The option tag is used to separate option categories.
SATELLITE NAME [satellite name]By default, "SAT" is used.
SATELLITE OUTDIR [path to the output directory]The directory must exist. By default, the current directory is used.
SATELLITE TIMING [start time] [duration] [time periodicity]By default, start = 0 ms, duration = 1000 ms, periodicity = 100 ms.
SATELLITE ATTITUDE [satellite attitude file]By default, if the root file is not given or missing, or if the histogram is missing, the Euler angle is fixed to 0.0.
TELESCOPE NAME [telescope_1 name] [telescope_2 name] [telescope_3 name]By default, one telescope is used and the name "TEL" is given. The telescope names are used as a tag to configure each of them. Adapt the following syntax with the name of your telescopes. We will use "TEL".
TEL FOCALLENGTH [focal length]By default, the focal length is 1000 mm.
TEL PSFFILE [path to psf file]By default, there is no PSF file. A dirac function positioned at the center is used. The file must be a ROOT file with a PSF object (see the convention for point spread functions). The PSF object can be constructed with the snl-psf.cc application.
TEL EFFAREAPHOTON [Energy min] [Energy max] [Effective area]Energies are given in \(\mathrm{keV}\) and the effective area in \(\mathrm{mm}^2\).
TEL EFFAREAPHOTON [Path to root file] [TGraph name]
TEL EFFAREACOSMIC [Energy min] [Energy max] [Effective area]Energies are given in \(\mathrm{keV}\) and the effective area in \(\mathrm{mm}^2\).
TEL EFFAREACOSMIC [Path to root file] [TGraph name]
TEL ACCPHOTON [Half opening angle]The half opening angle should be given in \(\mathrm{rad}\).
TEL ACCPHOTON [Path to root file] [TH2F name]
TEL ACCBACKGROUND [Half opening angle]The half opening angle should be given in \(\mathrm{rad}\).
TEL ACCBACKGROUND [Path to root file] [TH2F name]
TEL ACCCOSMIC [Path to root file] [TH2F name]The acceptance function is given by a 2-dimensional histogram as described in the acceptance definition.
There is one camera for each telescope. To identify the telescope associated to a camera, the option tag is given by the name of telescope followed by "_CAM". For example, if the telescope name is "TEL", the tag for the corresponding camera options is "TEL_CAM". In the following, we will "TEL_CAM" as a tag.
TEL_CAM SIZE [x-size] [y-size] [z-size]By default, the camera size is 1 [mm] x 1 [mm] x 1 [mm].
TEL_CAM NPIXELS [N_y] [N_z]By default, the camera number of pixels is 64 x 64.
TEL_CAM NBITS [N bits]By default, the camera number of bits is 8.
TEL_CAM NDEADPIXELS [N]By default, the camera number of dead pixels is 0.
TEL_CAM NBRIGHTPIXELS [N]By default, the camera number of bright pixels is 0.
TEL_CAM TIMING [integration time] [time periodicity]By default, the camera integration time and time periodicity is 200 ms.
TEL_CAM PIXELDARKNOISE [noise 1] [noise 2] [noise 3] [noise 4]By default, the camera dark noise parameters are defined in Camera::SetPixelDistributions().
TEL_CAM PIXELDARKNOISE [Path to root file] [TH2S name]
TEL_CAM PIXELREADNOISE [noise 1] [noise 2] [noise 3] [noise 4]By default, the camera read noise parameters are defined in Camera::SetPixelDistributions().
TEL_CAM PIXELREADNOISE [Path to root file] [TH2S name]
TEL_CAM GAIN [gain]
TEL_CAM PHOTONRESY [sigma_y] TEL_CAM PHOTONRESZ [sigma_z]By default, \(\sigma_y=1\) and \(\sigma_z=1\)
TEL_CAM COSMICELOSS [energy loss]By default, energy loss = 1 keV per pixel.
SOURCE NAME [source_1 name] [source_2 name] [source_3 name]By default, no source is defined. The source names are used as a tag to configure each of them. Adapt the following syntax with the name of your source. We will use "SRC".
SRC TYPE [type]By default, the source type is "PHOTON".
SRC POSITION [declination angle] [right ascension angle] [cone angle]By default, the declination angle is +90 deg, the right ascension angle is 0 deg, and the cone angle is 0 deg = point-like source located at the North celestial pole.
SRC SPECTIME [path to ROOT file]This option is required for all sources. The SpecTime object is a TH2D object with name "sp_flux" saved in the ROOT file.
| void snl_sequence_setsatseq | ( | snl_sequence_parameters * | par, |
| Satellite * | sat | ||
| ) |
Programs the satellite flight sequence.
The attitude root file given in the option file is opened and 3 TGraph are extracted: "alpha", "beta" "gamma". These graphs provide the Euler angles \(\alpha\), \(\beta\), and \(\gamma\) as a function of time. Euler angles are defined in the Satellite class. If the root file is missing or graphs cannot be extracted, the Euler angles are taken to be 0.
| [in] | par | Parameter structure. |
| [in] | sat | Satellite structure. |