WaveformGraph.h
1 #ifndef WAVEFORMGRAPH_H
2 #define WAVEFORMGRAPH_H
3 #include "TGraph.h"
4 
5 #include "AnitaConventions.h"
6 
7 class TObject;
8 class TGaxis;
9 
11 
14 class WaveformGraph : public TGraph
15 {
16 
17  public:
18  WaveformGraph();
19  WaveformGraph(int n, const Int_t *x, const Int_t *y);
20  WaveformGraph(int n, const Float_t *x, const Float_t *y);
21  WaveformGraph(int n, const Double_t *x, const Double_t *y);
22  virtual ~WaveformGraph();
23 
25  void DrawFFT(); // *MENU*
26  void DrawHilbert(); // *MENU*
27  void AddToCorrelation(); // *MENU*
28  TGraph *getFFT();
29  TGraph *getHilbert();
30 
31  void setSurfChanPhiAntPolRing(Int_t surf, Int_t chan, Int_t phi,
32  Int_t ant, AnitaPol::AnitaPol_t pol,
34  {fSurf=surf; fChan=chan; fPhi=phi; fAnt=ant; fPol=pol; fRing=ring;}
35 
36 
37  Int_t fSurf;
38  Int_t fChan;
39  Int_t fPhi;
40  Int_t fAnt;
43 
44  private:
45 
46 
47  void ExecuteEvent(Int_t event, Int_t px, Int_t py);
48  void ClearSelection(void);
49  void ApplySelectionToButtons();
50  void drawInNewCanvas();
51 
52  Int_t fNewCanvas;
53 
54 
55  ClassDef(WaveformGraph,2)
56 }; // end of class WaveformGraph
57 
58 
59 #endif // WAVEFORMGRAPH_H
TGraph * getHilbert()
Returns a pointer to a TGraph containing the hilbert envelope of the waveform.
TGraph * getFFT()
Returns a pointer to a TGraph containing the PSD of the waveform.
AnitaPol::AnitaPol_t fPol
Used in labelling.
Definition: WaveformGraph.h:42
AnitaRing::AnitaRing_t fRing
Used in labelling.
Definition: WaveformGraph.h:41
enum AnitaRing::EAnitaRing AnitaRing_t
Ring enumeration.
Int_t fAnt
Used in labelling.
Definition: WaveformGraph.h:40
The graph class that inherits from ROOT's TGraph.
Definition: WaveformGraph.h:14
Int_t fChan
Used in labelling.
Definition: WaveformGraph.h:38
void DrawFFT()
Draws the PSD of the waveform in a new window (NB: It is the MENU desigination that ROOT uses to add ...
virtual ~WaveformGraph()
Destructor.
void setSurfChanPhiAntPolRing(Int_t surf, Int_t chan, Int_t phi, Int_t ant, AnitaPol::AnitaPol_t pol, AnitaRing::AnitaRing_t ring)
These are just used for labelling.
Definition: WaveformGraph.h:31
WaveformGraph()
Constructor.
Int_t fPhi
Used in labelling.
Definition: WaveformGraph.h:39
enum AnitaPol::EAnitaPol AnitaPol_t
Polarisation enumeration.
Int_t fSurf
Used in labelling.
Definition: WaveformGraph.h:37