ProfileWeightStatic.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2011 - 2016 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/ProfileWeightStatic.h
10 
11 #ifndef __Pulsar_ProfileWeightStatic_h
12 #define __Pulsar_ProfileWeightStatic_h
13 
14 #include "Pulsar/ProfileWeightFunction.h"
15 #include "PhaseRange.h"
16 
17 namespace Pulsar
18 {
20  class ProfileWeightStatic : public ProfileWeightFunction
21  {
22 
23  public:
24 
27 
29  class Interface;
30 
32  void set_Profile (const Profile*);
33 
35  ProfileWeightStatic* clone () const;
36 
38  void set_range (const Phase::Ranges& r) { range = r; }
39  Phase::Ranges get_range () const { return range; }
40 
41  protected:
42 
44  void calculate (PhaseWeight* weight);
45 
46  Phase::Ranges range;
47  };
48 
49 }
50 
51 #endif
void calculate(PhaseWeight *weight)
Calculate the PhaseWeight.
Definition: ProfileWeightStatic.C:27
Stores a weight for each Profile phase bin.
Definition: PhaseWeight.h:29
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
Set the Profile weights to a user-specified value.
Definition: ProfileWeightStatic.h:25
ProfileWeightStatic * clone() const
Return a copy constructed instance of self.
Definition: ProfileWeightStatic.C:15
void set_Profile(const Profile *)
Set the Profile from which the PhaseWeight will be derived.
Definition: ProfileWeightStatic.C:21
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition: ProfileWeightStatic.C:59
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void set_range(const Phase::Ranges &r)
Set the profile phase bins.
Definition: ProfileWeightStatic.h:48

Generated using doxygen 1.8.17