Manages sets of data from multiple sources and a calibrator database. More...

#include <DataSetManager.h>

Inheritance diagram for Pulsar::DataSetManager:
Reference::Able Reference::HeapTracked

Public Member Functions

 DataSetManager ()
 Default constructor.
void manage (DataSet *)
 Add to the array of system calibrators.
unsigned get_nset () const
 Get the number of data sets.
DataSetget (const Archive *data)
 Get the data set that matches the archive.
DataSetget_set (unsigned i)
 Get the ith data set.
void set_database (Pulsar::Database *db)
 Set the calibrator database.
MJD get_epoch () const
 Return the reference epoch of the calibration experiment.
void add (const Archive *data)
 Append archive to the appropriate data set.
void integrate (const Archive *data)
 Integra archive into the appropriate data set.
void load (std::vector< std::string > &filenames)
 Load empty archives from filenames.
MJD get_start_epoch () const
 Get the epoch of the first observation.
MJD get_end_epoch () const
 Get the epoch of the last observation.
double get_integration_length () const
void add_polncals (DataSet *)
 Add filenames of polarization reference source observations.
void set_polncal_hours (float hours)
 hours from mid-time within which PolnCal observations will be selected
void set_fluxcal_days (float days)
void set_check_coordinates (bool f)
void find_poln_calibrators ()
void find_on_flux_calibrators ()
void find_off_flux_calibrators ()
unsigned get_polncal_count () const
Public Member Functions inherited from Reference::Able
 Able (const Able &)
Ableoperator= (const Able &)
unsigned get_reference_count () const
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
HeapTrackedoperator= (const HeapTracked &)
bool __is_on_heap () const

Protected Member Functions

void find_flux_calibrators (Signal::Source, const char *short_names)
template<class Method>
void incorporate (const Archive *data, Method method)
 Add archive to the appropriate data set.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Protected Attributes

std::vector< Reference::To< DataSet > > datasets
 The data sets.
Reference::To< Pulsar::Databasedatabase
 The database from which PolnCal and FluxCal.
float polncal_hours
float fluxcal_days
bool check_coordinates
MJD start_time
MJD end_time
double total_integration_length
unsigned npolncal

Additional Inherited Members

Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
static void operator delete (void *location, void *ptr)
static void operator delete (void *location)
static size_t get_heap_queue_size ()

Detailed Description

Manages sets of data from multiple sources and a calibrator database.

Each DataSet contains a list of input data from a single pulsar. This class manages input data from multiple pulsars using multiple DataSet instances that share a common calibrator database.

Member Function Documentation

◆ add()

void DataSetManager::add ( const Archive * data)

Append archive to the appropriate data set.

Add a new dataset if needed

References Pulsar::DataSet::add(), and incorporate().

Referenced by load().

◆ integrate()

void DataSetManager::integrate ( const Archive * data)

Integra archive into the appropriate data set.

Add a new dataset if needed

References incorporate(), and Pulsar::DataSet::integrate().


The documentation for this class was generated from the following files:

Generated using doxygen 1.14.0