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

This program is designed to produce a telescope acceptance as a TH2F object. More...

#include "Options.h"
#include <TMath.h>
#include <TH2F.h>
#include <TFile.h>
Include dependency graph for snl-acceptance.cc:

Functions

int main (int argc, char *argv[])
 Produce the telescope acceptance object. More...
 

Detailed Description

This program is designed to produce a telescope acceptance as a TH2F object.

Function Documentation

◆ main()

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

Produce the telescope acceptance object.

The telescope acceptance measures the probability for a particle with a given incoming direction to reach the camera. This program generates the acceptance as a TH2F object saved in a ROOT file. The horizontal axis is binned in \(-1\le\cos\theta\le 1\), where \(\theta\) is measured from the telescope x-axis. The vertical axis is binned in \(0\le\varphi<2\pi\), where \(\varphi\) is measured from the telescope y-axis \([\mathrm{rad}]\). Each bin is given the acceptance value of the telescope (between 0 and 1).

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