RotatingVectorModel.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005-2009 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/RotatingVectorModel.h
10 
11 #ifndef __RotatingVectorModel_H
12 #define __RotatingVectorModel_H
13 
14 #include "MEAL/RVM.h"
15 #include "MEAL/SumRule.h"
16 
17 namespace MEAL {
18 
19  class ScalarParameter;
20 
22 
23  class RotatingVectorModel : public RVM
24  {
25 
26  public:
27 
30 
33 
36 
39 
42 
45 
48 
50  void use_impact (bool flag = true);
51 
52  // ///////////////////////////////////////////////////////////////////
53  //
54  // Function implementation
55  //
56  // ///////////////////////////////////////////////////////////////////
57 
59  std::string get_name () const;
60 
61  private:
62 
63  void calculate (double&, std::vector<double>*) {}
64  void init ();
65 
66  // the sum rule used to switch between zeta and beta
68 
69  };
70 
71 }
72 
73 #endif
void use_impact(bool flag=true)
Switch to using impact as a free parameter.
Definition: RotatingVectorModel.C:51
Abstract template base class of univariate Function implementations.
Definition: Univariate.h:26
const ScalarMath sin(const ScalarMath &x)
Return a ScalarMath instance representing sin(x)
Definition: ScalarMath.C:160
The Rotating Vector Model (RVM) of Radhakrishnan & Cooke.
Definition: RotatingVectorModel.h:28
Reference::To< ScalarParameter > magnetic_axis
alpha: colatitude of magnetic axis with respect to spin axis
Definition: RotatingVectorModel.h:49
Reference::To< ScalarParameter > line_of_sight
zeta: colatitude of line of sight with respect to spin axis
Definition: RotatingVectorModel.h:46
RotatingVectorModel & operator=(const RotatingVectorModel &copy)
Assignment operator.
Definition: RotatingVectorModel.C:101
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
Reference::To< ScalarParameter > impact
beta: colatitude of line of sight with respect to magnetic axis
Definition: RotatingVectorModel.h:52
std::string get_name() const
Return the name of the class.
Definition: RotatingVectorModel.C:112
~RotatingVectorModel()
Destructor.
Definition: RotatingVectorModel.C:107
RotatingVectorModel()
Default constructor.
Definition: RotatingVectorModel.C:87
const ScalarMath cos(const ScalarMath &x)
Return a ScalarMath instance representing cos(x)
Definition: ScalarMath.C:168
virtual void copy(const Function *model)
Does the work for operator =.
Definition: Function.C:58

Generated using doxygen 1.8.17