MagicDisplayConventions.h
1 
10 
11 #ifndef MAGICDISPLAYCONVENTIONS_H
12 #define MAGICDISPLAYCONVENTIONS_H
13 
14 #ifndef ROOT_Rtypes
15 #if !defined(__CINT__) || defined(__MAKECINT__)
16 #include "Rtypes.h"
17 #endif
18 #endif
19 
21 
31  kInterferometry,
32  kUCorrelator
34 
35  static const char * toString(MagicDisplayCanvasLayoutOption_t option)
36  {
37  return option == kPhiVerticalOnly ? "vpol" :
38  option == kPhiHorizontalOnly ? "hpol" :
39  option == kPhiCombined ? "allpol" :
40  option == kSurfOnly ? "surf" :
41  option == kPayloadView ? "payload" :
42  option == kInterferometry ? "int" :
43  option == kInterferometry ? "UCorr" :
44  0;
45  }
46 };
47 
48 
50 
55  kWaveform = 0,
57  kFFT = 1,
61 
62  static const char * toString(MagicDisplayFormatOption_t opt)
63  {
64  return opt == kWaveform ? "wf" :
65  opt == kPowerSpectralDensity ? "psd" :
66  opt == kFFT ? "psd" :
67  opt == kHilbertEnvelope ? "hilbert" :
68  opt == kAveragedFFT ? "avgpsd" :
69  0;
70  }
71 };
72 
74 
78  typedef enum EMagicDisplaySurfHkDisplay {
79  kSurfView = 0,
80  kPhiView = 1,
81  kTimeView = 2,
82  kNotAView = 3
84 };
85 
87 
91  typedef enum EMagicDisplayGpsDisplay {
92  kMapView = 0,
93  kSatView = 1,
94  kTimeView = 2,
95  kNotAView = 3
97 };
98 
99 namespace MagicDisplayFileType {
100  typedef enum EMagicDisplayFileType {
101  kRawEvent = 0,
102  kCalEvent = 1,
103  kMcEvent = 2
104  } MagicDisplayFileType_t;
105 };
106 
107 int getNiceColour(int ind);
108 int getMarker(int ind);
109 
110 #endif //MAGICDISPLAYCONVENTIONS_H
enum MagicDisplayCanvasLayoutOption::EMagicDisplayCanvasLayoutOption MagicDisplayCanvasLayoutOption_t
Enumeration for canvas layout.
enum MagicDisplayFormatOption::EMagicDisplayFormatOption MagicDisplayFormatOption_t
Enumeration for plot style.
View of both polarisations arranged by phi.
GPS display format option.
enum MagicDisplaySurfHkDisplay::EMagicDisplaySurfHkDisplay MagicDisplaySurfHkDisplay_t
Enumeration for plot style.
Waveform display format option.
View of vertical polarisation arranged by phi.
View of all channels arranged by SURF.
enum MagicDisplayGpsDisplay::EMagicDisplayGpsDisplay MagicDisplayGpsDisplay_t
Enumeration for plot style.
View of horizontal polarisation arranged by phi.
View of Jiwoo's pretty 3-d payload.
SURF hk display format option.