70 double operator()(
const double& logE,
const double& ctheta);
71 double operator()(
const double& logE,
const double& ctheta,
78 const std::string&
evtype(
void)
const;
80 const std::string& evtype);
82 const bool& clobber =
false);
83 void read(
const GFits& file,
const std::string& evtype);
GLATEfficiency * m_eff_func1
Efficiency functor 1.
int size(void) const
Return number of bins in effective area response.
void load(const GFilename &filename, const std::string &evtype)
Load effective area from FITS file.
GLATAeff & operator=(const GLATAeff &aeff)
Assignment operator.
void free_members(void)
Delete class members.
double m_min_ctheta
Minimum valid cos(theta)
const std::string extname_lat_aeff
Definition of interface for all GammaLib classes.
const std::string extname_lat_efficiency
Fermi-LAT response table class definition.
const double & costhetamin(void) const
Return cosine theta minimum.
Interface for the Fermi/LAT efficiency factor functor.
void write_efficiency(GFits &file) const
Write efficiency factors into FITS file.
std::string print(const GChatter &chatter=NORMAL) const
Print effective area information.
GLATAeff(void)
Void constructor.
Fermi/LAT IRF efficiency factor functor class definition.
const int & nenergies(void) const
Return number of energies in response table.
Interface class for all GammaLib classes.
Interface for the Fermi LAT Response table class.
void read_aeff(const GFitsTable &hdu)
Read effective area from FITS table.
void copy_members(const GLATAeff &aeff)
Copy class members.
void read_efficiency(const GFitsTable &hdu)
Read efficiency factor parameters from FITS table.
const int & ncostheta(void) const
Return number of cosine theta bins in response table.
Abstract interface for FITS table.
Interface for the Fermi/LAT effective area.
void write_aeff(GFits &file) const
Write effective area into FITS file.
double operator()(const double &logE, const double &ctheta)
Return effective area in units of cm2.
void write(GFits &file) const
Write effective area into FITS file.
bool has_phi(void) const
Signal that effective area has Phi dependence.
double efficiency_factor1(const GEnergy &srcEng) const
Returns efficiency factor 1.
int nenergies(void) const
Return number of energies in effective area response.
int ncostheta(void) const
Return number of cosine theta bins in effective area response.
GLATResponseTable m_aeff_bins
Aeff energy and cos theta binning.
void clear(void)
Clear effective area.
std::string classname(void) const
Return class name.
const std::string & evtype(void) const
Return event type.
std::vector< double > m_aeff
Aeff array.
GLATEfficiency * m_eff_func2
Efficiency functor 2.
void save(const GFilename &filename, const bool &clobber=false)
Save effective area into FITS file.
virtual ~GLATAeff(void)
Destructor.
void read(const GFits &file, const std::string &evtype)
Read effective area from FITS file.
void init_members(void)
Initialise class members.
std::string m_evtype
Event type.
GLATAeff * clone(void) const
Clone effective area.
bool has_efficiency(void) const
Signals whether efficiency factors are present.
Class that handles energies in a unit independent way.
double efficiency_factor2(const GEnergy &srcEng) const
Returns efficiency factor 2.