SatAndLight  2.2.2-hubble
Simulation toolkit for space telescopes
snl-spectime.cc File Reference

This program is designed to produce a source SpecTime object. More...

#include "Options.h"
#include "SpecTime.h"
#include <TROOT.h>
#include <TFile.h>
#include <TKey.h>
Include dependency graph for snl-spectime.cc:

Functions

int main (int argc, char *argv[])
 Produce a source SpecTime object. More...
 

Detailed Description

This program is designed to produce a source SpecTime object.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Produce a source SpecTime object.

A SpecTime object captures both the light curve and the energy spectrum of an astrophysical source. It is a 2-dimensional function \({\cal{F}}(E,t)\) which measures the particle "on-axis" flux as a function of energy and time. This program generates the SpecTime object as a TH2F object saved in a ROOT file. The horizontal axis is binned in time \([\mathrm{ms}]\). The vertical axis is binned in energy \([\mathrm{keV}]\). Each bin is given the flux value in \([\mathrm{keV}^{-1}\mathrm{ms}^{-1}\mathrm{mm}^{-2}]\).

Parameters
[in]argcNumber of arguments.
[in]argvList of arguments.