40 #define G_COSTHETA "GLATLtCubeMap::costheta(int&)"
41 #define G_PHI "GLATLtCubeMap::phi(int&)"
201 double p =
phi(iphi);
202 for (
int itheta = 0; itheta <
m_num_ctheta; ++itheta, ++i) {
255 double p =
phi(iphi);
256 for (
int itheta = 0; itheta <
m_num_ctheta; ++itheta, ++i) {
298 const double& offset,
const GLATPsf& psf,
320 double p =
phi(iphi);
321 for (
int itheta = 0; itheta <
m_num_ctheta; ++itheta, ++i) {
455 #if defined(G_RANGE_CHECK)
493 #if defined(G_RANGE_CHECK)
516 std::string result = (
m_sqrt_bin) ?
"SQRT(1-COSTHETA)" :
"COSTHETA";
538 result.append(
"=== GLATLtCubeMap ===");
547 result.append(
"sqrt");
550 result.append(
"linear");
void free_members(void)
Delete class members.
GLATLtCubeMap * clone(void) const
Clone livetime cube map.
bool m_sqrt_bin
Square root binning?
double(* _ltcube_ctheta_phi)(const double &costheta, const double &phi)
bool contains(const int &extno) const
Check if HDU exists in FITS file.
Energy value class definition.
GLATLtCubeMap & operator=(const GLATLtCubeMap &cube)
Assignment operator.
Abstract FITS extension base class.
double m_min_ctheta
Minimum cos theta value.
double sum(const GVector &vector)
Computes vector sum.
bool has_phi(void) const
Signal if livetime cube map has phi dependence.
std::string strip_whitespace(const std::string &arg)
Strip leading and trailing whitespace from string.
void read(const GFitsHDU &hdu)
Read skymap from FITS HDU.
double log10MeV(void) const
Return log10 of energy in MeV.
int m_num_ctheta
Number of bins in cos theta.
const double & costhetamin(void) const
Return minimum of cosine theta.
std::string print(const GChatter &chatter=NORMAL) const
Print sky map.
double real(const std::string &keyname) const
Return card value as double precision.
Interface for the Fermi LAT point spread function.
void remove(const int &extno)
Remove HDU from FITS file.
virtual ~GLATLtCubeMap(void)
Destructor.
void write(GFits &fits, const std::string &extname=gammalib::extname_lat_ltcubemap) const
Write livetime cube map into FITS file.
std::string costhetabin(void) const
Return cos theta binning scheme.
GFitsHDU * write(GFits &file, const std::string &extname="") const
Write sky map into FITS file.
int m_num_phi
Number of bins in phi.
const int & nphi(void) const
Return number of phi bins.
Abstract interface for FITS table.
Interface for the Fermi/LAT effective area.
int integer(const std::string &keyname) const
Return card value as integer.
void clear(void)
Clear instance.
Fermi LAT point spread function class definition.
bool has_phi(void) const
Signal that effective area has Phi dependence.
void copy_members(const GLATLtCubeMap &cube)
Copy class members.
Fermi LAT livetime cube map class definition.
void clear(void)
Clear livetime cube map.
double phi(const int &index) const
Return phi value (in radians) for an index.
GSkyPixel dir2pix(const GSkyDir &dir) const
Returns sky map pixel for a given sky direction.
GSkyMap m_map
Lifetime cube map.
double operator()(const GSkyDir &dir, _ltcube_ctheta fct) const
Sum function multiplied by livetime over zenith angle.
GChatter reduce(const GChatter &chatter)
Reduce chattiness by one level.
std::string string(const std::string &keyname) const
Return card value as string.
std::string toupper(const std::string &s)
Convert string to upper case.
FITS binary table class definition.
const int & ncostheta(void) const
Return number of cosine theta bins.
GLATLtCubeMap(void)
Void constructor.
double(* _ltcube_ctheta)(const double &costheta)
Fermi LAT effective area class definition.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
GFitsHeaderCard & card(const int &cardno)
Return header card.
void init_members(void)
Initialise class members.
void read(const GFitsTable &table)
Load livetime cube from FITS file.
Fermi LAT livetime cube map class.
double costheta(const int &index) const
Return cos theta value for an index.
Mathematical function definitions.
std::string print(const GChatter &chatter=NORMAL) const
Print livetime cube map information.
Class that handles energies in a unit independent way.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.