35#define CTSKYMAP_NAME "ctskymap"
62 void publish(
const std::string& name =
"");
63 const GSkyMap&
skymap(
void)
const;
64 const GFits&
fits(
void)
const;
86 const GSkyMap& counts,
87 const GSkyMap& background,
93 int& iy1,
int& iy2)
const;
95 const double& rmax)
const;
96 GNdarray
ring_kernel(
const double& rmin,
const double& rmax)
const;
99 const double& alpha)
const;
102 const std::string& extname)
const;
Base class for observation tools.
const GObservations & obs(void) const
Return observation container.
double m_threshold
Threshold for RING background.
void compute_maps(void)
Compute sky map, background map and significance map.
GSkyMap ring_convolve(const GSkyMap &map, const double &rmin, const double &rmax) const
Return FFT kernel for background ring.
void fill_maps_counts(GCTAObservation *obs)
Fill events into counts map.
void write_map(GFits &fits, const GSkyMap &map, const std::string &extname) const
Write sky map into FITS file.
void publish(const std::string &name="")
Publish sky map.
void fill_maps_acceptance(GCTAObservation *obs)
Compute background acceptance sky map based on IRF template.
void clear(void)
Clear sky mapping tool.
bool m_has_inmap
Has valid input map.
double m_cos_inradius
Cosine of inner ring radius.
void compute_maps_ring_fft(void)
Compute the maps for RING background using a FFT.
GSkyMap m_counts
Counts map.
GSkyMap m_exclmap
Exclusion map for RING background.
double m_roiradius
Region of interest radius for RING bkg.
void write_hdu_keywords(GFitsHDU *hdu) const
Write keywords in FITS HDU.
void fill_maps(void)
Fill maps from observation container.
GFilename m_outmap
Output file name.
GSkyMap m_bkgmap
Background map.
void copy_members(const ctskymap &app)
Copy class members.
virtual ~ctskymap(void)
Destructor.
std::string m_bkgsubtract
Background subtraction method.
double m_inradius
Inner ring radius for RING background.
void ring_bounding_box(const int &ipixel, int &ix1, int &ix2, int &iy1, int &iy2) const
Computes bounding box for RING background computation.
void save(void)
Save sky map.
void adjust_exclusion_map(void)
Verifys that exclusion map points in fov of counts.
GNdarray ring_kernel(const double &rmin, const double &rmax) const
Return FFT kernel for background ring.
void compute_maps_ring_direct(void)
Compute the pixel significance for RING background.
void setup_exclusion_map_region(const GFilename &filename)
Fills exclusions map from DS9 region file.
double m_emin
Minimum energy (TeV)
void setup_exclusion_map(void)
Generates map of pixel exclusions.
int m_iterations
Number of iterations for RING background.
std::vector< double > m_solidangle
Cached pixel solid angles.
bool m_publish
Publish sky map?
GSkyRegionMap exclusion_map(void) const
Return exclusion region map.
void get_parameters(void)
Get application parameters.
void free_members(void)
Delete class members.
double m_cos_outradius
Cosine of outer ring radius.
std::vector< GSkyDir > m_dirs
Cached pixel directions.
ctskymap & operator=(const ctskymap &app)
Assignment operator.
bool m_usefft
Use FFT for RING background.
void compute_ring_values(const int &ipixel, const GSkyMap &counts, const GSkyMap &background, double &non, double &noff, double &alpha)
Computes Non, Noff and alpha for a counts map and sensitivity map.
void setup_maps(void)
Setup maps.
GChatter m_chatter
Chattiness.
double m_outradius
Outer ring radius for RING background.
void process(void)
Process the sky mapping tool.
void setup_exclusion_map_fits(const GFilename &filename)
Fills exclusions map from FITS image.
void init_members(void)
Initialise class members.
GFits m_fits
Output GFits object.
double m_emax
Maximum energy (TeV)
const GSkyMap & skymap(void) const
Return observation container.
GFilename m_inexclusion
Exclusion map file name.
void construct_fits(void)
Construct GFits object consisting of all maps.
GSkyMap m_sigmap
Significance map.
double m_cos_roiradius
Cosine of RoI radius.
GSkyMap m_acceptance
Acceptance map.
double sigma_li_ma(const double &n_on, const double &n_off, const double &alpha) const
Compute significance following Li & Ma.
ctskymap(void)
Void constructor.
const GFits & fits(void) const
Return fits container.
Observation tool base class interface definition.