ChannelWeightsPlot.h
1 /***************************************************************************
2  *
3  * Copyright (C) 2007 by David Smith
4  * Licensed under the Academic Free License version 2.1
5  *
6  ***************************************************************************/
7 
8 
9 
10 
11 #ifndef CHANNEL_WEIGHTS_H_
12 #define CHANNEL_WEIGHTS_H_
13 
14 
15 
16 #include "Pulsar/FrequencyPlot.h"
17 
18 
19 
20 namespace Pulsar
21 {
22 
24  class ChannelWeightsPlot : public FrequencyPlot
25  {
26  public:
27  ChannelWeightsPlot();
28  ~ChannelWeightsPlot();
29 
30  class Interface : public TextInterface::To<ChannelWeightsPlot>
31  {
32  public:
33  Interface( ChannelWeightsPlot *s_instance = 0 );
34  };
35 
37 
38  void prepare( const Archive *data );
39  virtual void preprocess( Archive *data ) {}
40  void draw( const Archive *data );
41  private:
42 
43  std::vector<float> weights;
44  std::pair<float,float> weights_minmax;
45  };
46 
47 
48 }
49 
50 
51 
52 #endif
void draw(const Archive *data)
Derived classes must draw in the current viewport.
Definition: ChannelWeightsPlot.C:84
virtual void preprocess(Archive *data)
Process the Archive as needed before calling plot.
Definition: ChannelWeightsPlot.h:49
float get_weight() const
get the weight of the profile
Definition: Profile.h:207
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
The primary interface to pulsar observational data.
Definition: Archive.h:45
virtual unsigned get_nchan() const =0
Get the number of frequency channels used.
virtual double get_centre_frequency() const =0
Get the centre frequency of the observation.
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: ChannelWeightsPlot.C:33
virtual double get_bandwidth() const =0
Get the overall bandwidth of the observation.
void prepare(const Archive *data)
Derived classes must prepare to draw.
Definition: ChannelWeightsPlot.C:40
virtual Archive * clone() const =0
Return a new copy constructed instance equal to this.
Plot of data weight vs frequency.
Definition: ChannelWeightsPlot.h:29
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17