MatrixTemplateMatching.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2009 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Timing/Pulsar/MatrixTemplateMatching.h
10
11#ifndef __Pulsar_MatrixTemplateMatching_h
12#define __Pulsar_MatrixTemplateMatching_h
13
14#include "Pulsar/ArrivalTime.h"
15
16namespace Pulsar {
17
18 class PulsarCalibrator;
19
21 class MatrixTemplateMatching : public ArrivalTime
22 {
23
24 public:
25
26 MatrixTemplateMatching ();
27 ~MatrixTemplateMatching ();
28
30 void set_maximum_harmonic (unsigned max);
31
33 void set_choose_maximum_harmonic (bool flag = true);
34
36 void preprocess (Archive* archive);
37
39 void set_observation (const Archive*);
40
42 void set_standard (const Archive*);
43
45 void set_unload_matrix_model(bool flag=true) { unload_matrix_model = flag; }
46
47 protected:
48
51
53 void get_toas (unsigned subint, std::vector<Tempo::toa>& toas);
54
56 bool unload_matrix_model = false;
57 };
58
59}
60
61
62#endif // !defined __Pulsar_MatrixTemplateMatching_h
The primary interface to pulsar observational data.
Definition Archive.h:46
ArrivalTime()
Default constructor.
Definition ArrivalTime.C:38
void set_observation(const Archive *)
Set the observation from which the arrival times will be derived.
Definition MatrixTemplateMatching.C:60
void get_toas(unsigned subint, std::vector< Tempo::toa > &toas)
get the arrival times for the specified sub-integration
Definition MatrixTemplateMatching.C:67
void preprocess(Archive *archive)
Prepare the data for use.
Definition MatrixTemplateMatching.C:43
void set_choose_maximum_harmonic(bool flag=true)
Allow software to choose the maximum harmonic.
Definition MatrixTemplateMatching.C:38
Reference::To< PulsarCalibrator > engine
The PulsarCalibrator class takes care of many details.
Definition MatrixTemplateMatching.h:50
void set_maximum_harmonic(unsigned max)
Set the maximum number of harmonics to include in fit.
Definition MatrixTemplateMatching.C:32
void set_standard(const Archive *)
Set the standard/template to which observation will be matched.
Definition MatrixTemplateMatching.C:49
void set_unload_matrix_model(bool flag=true)
unload the best-fit Jones matrix model parameters for each sub-integration
Definition MatrixTemplateMatching.h:45
bool unload_matrix_model
unload the best-fit Jones matrix model parameters for each sub-integration
Definition MatrixTemplateMatching.h:56
Implements Measurement Equation Template Matching (van Straten 2013)
Definition PulsarCalibrator.h:38
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0