27 #ifndef GCTABACKGROUNDPERFTABLE_HPP
28 #define GCTABACKGROUNDPERFTABLE_HPP
59 const double& dety)
const;
82 const double&
sigma(
void)
const;
91 double rate(
const double& logE)
const;
98 double eval(
const double& x) {
100 double arg2 = arg * arg;
129 return (
"GCTABackgroundPerfTable");
GCTABackgroundPerfTable(void)
Void constructor.
CTA background model base class definition.
GCTABackgroundPerfTable & operator=(const GCTABackgroundPerfTable &bgd)
Assignment operator.
std::vector< double > m_log_background
log(background rate)
std::string classname(void) const
Return class name.
void init_members(void)
Initialise class members.
double solidangle(void) const
Returns integral over radial model (in steradians)
virtual ~GCTABackgroundPerfTable(void)
Destructor.
void free_members(void)
Delete class members.
Random number generator class.
Spectral nodes model class definition.
void load(const GFilename &filename)
Load background from performance table.
GFilename filename(void) const
Return filename.
integrand(const double &sigma)
void copy_members(const GCTABackgroundPerfTable &bgd)
Copy class members.
GCTABackgroundPerfTable * clone(void) const
Clone background.
Spectral nodes model class.
GNodeArray m_log10_energy
log10(E) nodes for background interpolation
Node array class interface definition.
GEnergies m_energy
Vector of energies.
const double & sigma(void) const
Return sigma for offset angle dependence.
double rate(const double &logE) const
Return background rate for a given energy (events/s/MeV/sr)
Single parameter function abstract base class definition.
Energy container class definition.
int size(void) const
Return number of energies in container.
void init_mc_cache(void) const
Initialise Monte Carlo cache.
int size(void) const
Return number of node energies in response.
virtual double operator()(const double &logE, const double &detx, const double &dety) const
Return background rate in units of events MeV s sr .
std::string print(const GChatter &chatter=NORMAL) const
Print background information.
GModelSpectralNodes m_mc_spectrum
Background spectrum.
GCTAInstDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const
Returns MC instrument direction.
int nodes(void) const
Return number of nodes.
Single parameter function abstract base class.
GVector sin(const GVector &vector)
Computes sine of vector elements.
void clear(void)
Clear background.
Abstract base class for the CTA background model.
double eval(const double &x)
const GModelSpectralNodes & spectrum(void) const
Get response cube spectrum.
CTA performance table background class.
GVector exp(const GVector &vector)
Computes exponential of vector elements.
double rate_ebin(const GCTAInstDir &dir, const GEnergy &emin, const GEnergy &emax) const
Returns background rate integrated over energy interval in units of events s sr .
CTA instrument direction class.
std::vector< double > m_background
Background rate.
double m_sigma
Sigma for offset angle computation (0=none)
GFilename m_filename
Name of background response file.
Filename class interface definition.
Class that handles energies in a unit independent way.