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
17namespace Pulsar
18{
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
ProfileWeightFunction()
Default constructor.
Definition ProfileWeightFunction.C:15
Set the Profile weights to a user-specified value.
Definition ProfileWeightStatic.h:21
void set_Profile(const Profile *)
Set the Profile from which the PhaseWeight will be derived.
Definition ProfileWeightStatic.C:21
ProfileWeightStatic * clone() const
Return a copy constructed instance of self.
Definition ProfileWeightStatic.C:15
void set_range(const Phase::Ranges &r)
Set the profile phase bins.
Definition ProfileWeightStatic.h:38
void calculate(PhaseWeight *weight)
Calculate the PhaseWeight.
Definition ProfileWeightStatic.C:27
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition ProfileWeightStatic.C:59
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0