275 double exposure =
m_exposure(dir, energy, aeff);
289 exposure = f1 * exposure + f2 * correction;
324 const double& offset,
const GLATPsf& psf,
328 double exposure =
m_exposure(dir, energy, offset, psf, aeff);
342 exposure = f1 * exposure + f2 * correction;
395 GFits fits(filename);
425 fits.
saveto(filename, clobber);
510 result.append(
"=== GLATLtCube ===");
514 if (reduced_chatter >
SILENT) {
517 result.append(
"\n"+
m_gti.
print(reduced_chatter));
double(* _ltcube_ctheta_phi)(const double &costheta, const double &phi)
GFitsTable * table(const int &extno)
Get pointer to table HDU.
void read(const GFits &file)
Read livetime cube from FITS file.
Energy value class definition.
double operator()(const GSkyDir &dir, const GEnergy &energy, _ltcube_ctheta fct) const
Sum function multiplied by efficiency corrected livetime over zenith angle.
void load(const GFilename &filename)
Load livetime cube from FITS file.
Sky direction class interface definition.
void write(GFits &file) const
Write livetime cube into FITS file.
GLATLtCubeMap m_weighted_exposure
const std::string extname_gti
GLATLtCube * clone(void) const
Clone livetime cube.
std::string print(const GChatter &chatter=NORMAL) const
Print livetime cube information.
std::string print(const GChatter &chatter=NORMAL) const
Print Good Time Intervals.
void saveto(const GFilename &filename, const bool &clobber=false)
Saves to specified FITS file.
const std::string extname_lat_exposure
void clear(void)
Clear Good Time Intervals.
Interface for the Fermi LAT point spread function.
void write(GFits &fits, const std::string &extname=gammalib::extname_lat_ltcubemap) const
Write livetime cube map into FITS file.
Fermi/LAT livetime cube class definition.
void save(const GFilename &filename, const bool &clobber=false) const
Save livetime cube into FITS file.
virtual ~GLATLtCube(void)
Destructor.
Abstract interface for FITS table.
Interface for the Fermi/LAT effective area.
Fermi LAT point spread function class definition.
void init_members(void)
Initialise class members.
double efficiency_factor1(const GEnergy &srcEng) const
Returns efficiency factor 1.
GLATLtCube(void)
Void constructor.
void clear(void)
Clear livetime cube map.
void free_members(void)
Delete class members.
void read(const GFitsTable &table)
Read Good Time Intervals and time reference from FITS table.
GChatter reduce(const GChatter &chatter)
Reduce chattiness by one level.
void copy_members(const GLATLtCube &cube)
Copy class members.
const std::string extname_lat_wgtexposure
double(* _ltcube_ctheta)(const double &costheta)
Fermi LAT effective area class definition.
GLATLtCube & operator=(const GLATLtCube &cube)
Assignment operator.
void write(GFits &fits, const std::string &extname=gammalib::extname_gti) const
Write Good Time Intervals and time reference into FITS object.
void close(void)
Close FITS file.
void clear(void)
Clear livetime cube.
void read(const GFitsTable &table)
Load livetime cube from FITS file.
bool has_efficiency(void) const
Signals whether efficiency factors are present.
Interface for the Fermi LAT livetime cube.
Filename class interface definition.
std::string print(const GChatter &chatter=NORMAL) const
Print livetime cube map information.
Class that handles energies in a unit independent way.
double efficiency_factor2(const GEnergy &srcEng) const
Returns efficiency factor 2.