DigitiserStatsPlot.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 #ifndef DIGITISER_STATS_H_
10 #define DIGITISER_STATS_H_
11 
12 
13 #include "Pulsar/SimplePlot.h"
14 #include <Pulsar/DigitiserStatistics.h>
15 #include <vector>
16 
17 
18 
19 using std::pair;
20 using std::vector;
21 
22 
23 
24 namespace Pulsar
25 {
26  class DigitiserStatsPlot : public SimplePlot
27  {
28  public:
29  DigitiserStatsPlot();
30 
31  class Interface : public TextInterface::To<DigitiserStatsPlot>
32  {
33  public:
34  Interface( DigitiserStatsPlot *s_instance = NULL );
35  };
36 
37  TextInterface::Parser *get_interface();
38 
39  std::string get_xlabel( const Archive * );
40  std::string get_ylabel( const Archive * );
41 
42  void AdjustSubRange( void );
43  bool CheckStats( Reference::To<DigitiserStatistics> ext );
44 
45  void prepare( const Archive * );
46  void draw( const Archive * );
47 
48  void set_subint( int s_subint ) { subint = s_subint; }
49  int get_subint() const { return subint; }
50 
51  pair<int,int> get_srange() const { return srange; }
52  void set_srange( const pair<int,int> &s_srange ) { srange = s_srange; }
53  private:
54  float y_min, y_max;
55  vector< vector< vector< float > > > profiles;
56  bool valid_archive;
57 
58  int subint;
59  pair<int,int> srange;
60 
61  int ncycsub;
62  int ndigr;
63  int npar;
64  int nsub;
65  };
66 }
67 
68 #endif
Type * get() const
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17