32 #include "GSkyMap.hpp"
37 #define CTFINDVAR_NAME "ctfindvar"
76 std::vector<double>
get_alphas(
const int& ipix)
const;
77 double gti_overlap(
const GGti& gti1,
const GGti& gti2)
const;
80 GModelSky
sky_model(
const GSkyDir& dir)
const;
82 int time2inx(
const GTime& time)
const;
Time variability search tool.
std::vector< double > get_alphas(const int &ipix) const
Get alpha vector.
GTime m_tstart
Start time for variability study.
GNdarray m_pixsigsrc
Store distributions of the source significances.
int time2inx(const GTime &time) const
Get the map index associated with a given time.
ctfindvar(void)
Void constructor.
void save(void)
Save peak significance map and significance distributions.
GTime get_tstart(void)
Get start time.
const GObservations & obs(void) const
Return observation container.
void process(void)
Process time variability search tool.
void analyse_cube(void)
Analyse all pixels of counts cube.
void clear(void)
Clear time variability search tool.
ctfindvar & operator=(const ctfindvar &app)
Assignment operator.
GNdarray m_pixsigmax
Store distribution for pixel with max significance.
GEnergy m_emin
Minimum energy for events.
GModelSky sky_model(const GSkyDir &dir) const
Return sky model for a given sky direction.
void copy_members(const ctfindvar &app)
Copy class members.
GTime get_tstop(void)
Get stop time.
GSkyMap m_peaksigmap
Skymap holding the maximum significance.
void init_gtis(void)
Initialize Good Time Intervals.
Observation tool base class interface definition.
Base class for observation tools.
GModels m_model_above_thr
Model storing position with significance above thr.
virtual ~ctfindvar(void)
Destructor.
void init_members(void)
Initialise class members.
double m_sig_threshold
Minimum significance required to set source as variable.
void create_cube(void)
Create counts cube.
void free_members(void)
Delete class members.
std::vector< int > get_pixels(void)
Return pixel vector.
std::vector< GGti > m_gti
List of time intervals.
GTime m_tstop
Stop time for variability study.
GSkyMap m_counts
Counts for each time interval.
GNdarray get_variability_sig(const int &ipix)
Get the significance of variability for a given skymap pixel.
double m_minoff
Minimum counts for use in significance calculation.
double gti_overlap(const GGti >i1, const GGti >i2) const
Returns number of seconds that two GTIs overlap.
void get_parameters(void)
Get application parameters.
void fill_cube(GCTAObservation *obs)
Fill the cube from the events in an observation.
void write_source_histograms(GFits &fits)
Write source histograms in FITS format.
GSkyDir m_max_sig_dir
Sky direction associated with maximum significance.
GModels m_inmodel
List of models for source positions.
GEnergy m_emax
Maximum energy for events.