PhaseWeightModifier.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/PhaseWeightModifier.h
10 
11 #ifndef __Pulsar_PhaseWeightModifier_h
12 #define __Pulsar_PhaseWeightModifier_h
13 
14 #include "Pulsar/PhaseWeightFunction.h"
15 
16 namespace Pulsar {
17 
18  class Profile;
19 
21  class PhaseWeightModifier : public PhaseWeightFunction {
22 
23  public:
24 
26  virtual void set_weight (const PhaseWeight*);
27 
29  virtual void get_weight (PhaseWeight* weight);
30 
33 
36 
37  protected:
38 
41 
43  virtual void calculate (PhaseWeight*) = 0;
44 
45  };
46 
47 }
48 
49 
50 #endif // !defined __Pulsar_PhaseWeightModifier_h
virtual void calculate(PhaseWeight *)=0
Derived classes implement the PhaseWeight calculation.
Stores a weight for each Profile phase bin.
Definition: PhaseWeight.h:29
virtual void set_weight(const PhaseWeight *)
Set the PhaseWeight from which the PhaseWeight will be derived.
Definition: PhaseWeightModifier.C:20
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition: PhaseWeightModifier.C:56
virtual void get_weight(PhaseWeight *weight)
Returns a PhaseWeight.
Definition: PhaseWeightModifier.C:26
void operator()(PhaseWeight *)
Inplace operator.
Definition: PhaseWeightModifier.C:13
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Reference::To< const PhaseWeight > input_weight
The PhaseWeight from which the PhaseWeight will be derived.
Definition: PhaseWeightModifier.h:45

Generated using doxygen 1.8.17