146 Telescope(
const int aNbits=14,
const int aNy=256,
const int aNz=256);
183 void TakePicture(
const ULong64_t aTimeStart);
192 void StartObservation(TFile *aRootFile);
199 void StopObservation(
void);
207 void SetName(
const string aName);
213 inline string GetName(
void){
return tel_name; };
227 void AddSource(
Source *aSource, TGraph *aEffectiveArea, TH2F *aAcceptance);
239 return tel_effarea[aSourceIndex];
250 double GetEffectiveArea(
const UInt_t aSourceIndex,
const double aEnergy);
262 double GetEffectiveArea(
const UInt_t aSourceIndex,
const double aEnergyMin,
const double aEnergyMax);
269 inline void SetFocalLength(
const int aFocalLength=1000){ tel_foclen=aFocalLength; };
285 bool SetPsfFile(
const string aFileName);
299 bool SetPsf(TH3F* aPsf);
315 bool SetPsf(TH2F* aPsf,
const double aEnergyMin=0.0,
const double aEnergyMax=1000000);
337 double SetPsfAiry(
const double aOpeningAngle,
338 const int aYN,
const int aZN,
339 const int aEnergyN,
const double aEnergyMin,
const double aEnergyMax);
346 inline TH3F*
GetPsf(
void){
return tel_psf; };
354 TH2F* GetPsf(
const double aEnergy);
363 TH2F* GetPsf(
const UInt_t aEnergyBinIndex);
392 void ApplyPsf(
double& aYf,
double& aZf,
const double aY0,
const double aZ0,
const double aEnergy);
This module is used to describe a CCD camera.
This module is used to describe astrophysical sources.
CCD camera.
Definition: Camera.h:97
Describe astrophysical sources.
Definition: Source.h:62
Telescope.
Definition: Telescope.h:123
TFile * tel_file
current TFile.
Definition: Telescope.h:376
TArrayD * tel_psf_ebins
energy bins for the PSF.
Definition: Telescope.h:370
Telescope(const int aNbits=14, const int aNy=256, const int aNz=256)
Telescope class constuctor.
TH2F ** tel_psfe
telescope optical point spread function at one energy.
Definition: Telescope.h:372
string GetName(void)
Returns the telescope name.
Definition: Telescope.h:213
int GetFocalLength(void)
Returns the telescope focal length .
Definition: Telescope.h:275
vector< TGraph * > tel_effarea
telescope on-axis effective area to sources.
Definition: Telescope.h:373
vector< Source * > tel_src
vector of sources.
Definition: Telescope.h:375
int tel_psf_nebins
number of energy bins for the PSF.
Definition: Telescope.h:369
TGraph * GetEffectiveArea(const UInt_t aSourceIndex)
Returns the telescope on-axis effective area as a function of energy.
Definition: Telescope.h:238
vector< TH2F * > tel_acc
telescope acceptance to sources.
Definition: Telescope.h:374
int tel_foclen
telescope focal length .
Definition: Telescope.h:368
TH3F * tel_psf
telescope optical point spread function (PSF).
Definition: Telescope.h:371
TH3F * GetPsf(void)
Returns the point spread function.
Definition: Telescope.h:346
string tel_name
telescope name.
Definition: Telescope.h:367
void SetFocalLength(const int aFocalLength=1000)
Sets the telescope focal length.
Definition: Telescope.h:269