Manages arrival time estimation. More...

#include <ArrivalTime.h>

Inheritance diagram for Pulsar::ArrivalTime:
Pulsar::Algorithm Reference::Able Reference::HeapTracked Pulsar::MatrixTemplateMatching

Public Member Functions

 ArrivalTime ()
 Default constructor.
 
 ~ArrivalTime ()
 Destructor.
 
virtual void preprocess (Archive *archive)
 Prepare the data for use.
 
virtual void set_observation (const Archive *)
 Set the observation from which the arrival times will be derived.
 
virtual void set_standard (const Archive *)
 Set the standard/template used by some phase shift estimators.
 
void set_shift_estimator (ShiftEstimator *)
 Set the algorithm used to estimate the phase shift.
 
ShiftEstimatorget_shift_estimator () const
 Get the algorithm used to estimate the phase shift.
 
void set_format (Tempo::toa::Format)
 Set the format of the output time-of-arrival estimates.
 
void set_format (const std::string &)
 Set the format as a string.
 
void set_format_flags (const std::string &)
 Set additional format flags.
 
void set_attributes (const std::vector< std::string > &)
 Set additional attributes. More...
 
void set_extra_text (const std::string &)
 Set additional TOA text (only used in tempo2 format) More...
 
void set_skip_bad (bool flag)
 Skip data with zero weight.
 
void set_positive_shifts (bool flag)
 Output only arrival times that are greater than reference time.
 
void get_toas (std::vector< Tempo::toa > &)
 Add to the vector of time-of-arrival estimates.
 
std::string get_value (const std::string &key, const Tempo::toa &)
 Get auxilliary information.
 
void set_residual (Archive *res)
 Set the archive that will store residual profiles.
 
Archiveget_residual ()
 Get the archive of residual profiles.
 
void set_flux_estimator (Flux *)
 Set method for computing flux density of profiles. More...
 
Fluxget_flux_estimator () const
 Get flux density esimtaor.
 
- 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

std::string get_tempo2_aux_txt (const Tempo::toa &)
 
std::string get_ipta_aux_txt (const Tempo::toa &)
 
virtual void get_toas (unsigned subint, std::vector< Tempo::toa > &toas)
 get the arrival times for the specified sub-integration
 
virtual void dress_toas (unsigned subint, std::vector< Tempo::toa > &toas)
 add any additional information as requested
 
Tempo::toa get_toa (Estimate< double > &shift, const Pulsar::Integration *, unsigned ichan)
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Protected Attributes

Reference::To< const Archiveobservation
 The observation to be fit to the standard.
 
Reference::To< const Archivestandard
 The standard to which observations are fit.
 
Reference::To< Archiveresidual
 The residual pulse profiles (transformed observation minus standard)
 
Reference::To< ShiftEstimatorshift_estimator
 
Reference::To< Fluxflux_estimator
 
Tempo::toa::Format format
 the output TOA format
 
std::string format_flags
 additional format-specific flags
 
std::string extra_text
 additional TOA line text
 
std::vector< std::string > attributes
 for formats that support it, a list of attributes to add
 
unsigned toa_subint
 
unsigned toa_chan
 
bool skip_bad
 when true, skip data with zero weight
 
bool positive_shifts {false}
 when true, output arrival times that are always later than phase bin zero
 

Static Protected Attributes

static Option< std::string > default_format
 default TOA output format
 

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 arrival time estimation.

This class manages the observation, template, shift estimator, output format, etc. thereby replacing the old Archive::toas method as well as parts of code from pat.

Member Function Documentation

◆ set_attributes()

void Pulsar::ArrivalTime::set_attributes ( const std::vector< std::string > &  attr)

Set additional attributes.

Set additional format flags.

◆ set_extra_text()

void Pulsar::ArrivalTime::set_extra_text ( const std::string &  text)

Set additional TOA text (only used in tempo2 format)

Set additional TOA line text.

◆ set_flux_estimator()

void Pulsar::ArrivalTime::set_flux_estimator ( Flux flux)

Set method for computing flux density of profiles.

Set the algorithm used to estimate the flux density.


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

Generated using doxygen 1.8.17