The event display canvas maker. More...
#include <AnitaCanvasMaker.h>
Public Member Functions | |
void | setCanvasLayout (MagicDisplayCanvasLayoutOption::MagicDisplayCanvasLayoutOption_t canLay) |
void | setWaveformFormat (MagicDisplayFormatOption::MagicDisplayFormatOption_t waveOption) |
void | resetAverage () |
TPad * | getEventViewerCanvas (FilteredAnitaEvent *fEv, TPad *useCan=0, bool forceRedo=false) |
The main event view canvas getter. More... | |
TPad * | getInterferometryCanvas (const RawAnitaHeader *hdPtr, TPad *useCan=NULL) |
The interferometry canvas getter. More... | |
TPad * | getUCorrelatorCanvas (const RawAnitaHeader *hdPtr, TPad *useCan=NULL) |
TPad * | quickGetEventViewerCanvasForWebPlottter (const UsefulAnitaEvent *evPtr, const RawAnitaHeader *hdPtr, TPad *useCan=0) |
The main event view canvas getter used by QnDWBOM. More... | |
TPad * | getEventInfoCanvas (const UsefulAnitaEvent *evPtr, const RawAnitaHeader *hdPtr, const Adu5Pat *pat, TPad *useCan=0) |
The event info canvas getter. More... | |
void | setupPhiPadWithFrames (TPad *plotPad) |
Worker function to setup the phi view canvas. | |
void | setupInterfPadWithFrames (TPad *plotPad) |
Worker function to setup the phi view canvas. | |
void | setupSurfPadWithFrames (TPad *plotPad) |
Worker function to setup the surf view canvas. | |
void | setupPayloadViewWithFrames (TPad *plotPad) |
Worker function to setup the payload view canvas. | |
void | deleteTGraphsFromPad (TPad *paddy, int surf, int chan) |
Worker fucntion to delete a specific graph from a pad. | |
void | deleteTGraphsFromPad (TPad *paddy, int surf, int chan, int chan2) |
Worker fucntion to delete specific graphs from a pad. | |
AnitaCanvasMaker (WaveCalType::WaveCalType_t calType=WaveCalType::kVoltageTime) | |
The assignment constructor. More... | |
~AnitaCanvasMaker () | |
Destructor. | |
Acclaim::AnalysisReco & | getAnalysisReco () |
get command line access with a reference | |
void | setPassBandFilterFlag (int flag) |
Flags the pass band filter on or off. | |
void | setNotchFilterFlag (int flag) |
Flags the notch filter on or off. | |
void | setPassBandLimits (Double_t low, Double_t high) |
Sets the limits of the pass band (200-1200) in MHz. | |
void | setNotchBandLimits (Double_t low, Double_t high) |
Sets the limits of the notched band (235-500) in MHz. | |
Static Public Member Functions | |
static AnitaCanvasMaker * | Instance () |
The instance generator. | |
Public Attributes | |
Double_t | fMinVoltLimit |
The minimum voltage. | |
Double_t | fMaxVoltLimit |
The maximum voltage. | |
Double_t | fMinInterfLimit |
The minimum interferometry. | |
Double_t | fMaxInterfLimit |
The maximum interferometry. | |
Double_t | fMinVertVoltLimit |
The minimum voltage in vertical channels. | |
Double_t | fMaxVertVoltLimit |
The maximum voltage in vertical channels. | |
Int_t | fAutoScale |
Fixed or auto-scaling y-axis? | |
Int_t | fAutoScaleNeg |
Fixed or auto-scaling y-axis? | |
Double_t | fMinClockVoltLimit |
The minimum voltage in the clock channels. | |
Double_t | fMaxClockVoltLimit |
The maximum voltage in the clock channels. | |
Double_t | fMinTimeLimit |
The minimum time in the waveform (typically 0). | |
Double_t | fMaxTimeLimit |
The maximum time in the waveform (typically 100). | |
Double_t | fMinPowerLimit |
The minimum power in the PSDs. | |
Double_t | fMaxPowerLimit |
The maximum power in the PSDs. | |
Double_t | fMinFreqLimit |
The minimum frequency in the PSDs (typically 0). | |
Double_t | fMaxFreqLimit |
The maximum frequency in the PSDs (typically 1200). | |
MagicDisplayCanvasLayoutOption::MagicDisplayCanvasLayoutOption_t | fCanvasView |
Which canvas layout do we want? | |
MagicDisplayFormatOption::MagicDisplayFormatOption_t | fWaveformOption |
Are we viewing PSDs, waveforms or other stuff? | |
Int_t | fRedoEventCanvas |
Do we neeed to redraw the event canvas (eg. switching from phi to SURF)? | |
MagicDisplayCanvasLayoutOption::MagicDisplayCanvasLayoutOption_t | fLastCanvasView |
What was the last view (phi or SURF)? | |
MagicDisplayFormatOption::MagicDisplayFormatOption_t | fLastWaveformFormat |
What did we plot last time?? | |
Int_t | fNewEvent |
Is this a new event? | |
WaveCalType::WaveCalType_t | fCalType |
The calibration type. | |
Static Protected Attributes | |
static AnitaCanvasMaker * | fgInstance = 0 |
To protect against multiple instances. | |
The event display canvas maker.
This is where all the heavy lifting regarding the main event display canvas takes place. Lots of things are hard-coded and unchangeable in order to make the display look reasonable (on my computer at least).
Definition at line 32 of file AnitaCanvasMaker.h.
AnitaCanvasMaker::AnitaCanvasMaker | ( | WaveCalType::WaveCalType_t | calType = WaveCalType::kVoltageTime | ) |
The assignment constructor.
Creates an AnitaCanvasMaker object/ /param calType The calibration type used (only needed to set the time axis for ns vs samples).
Definition at line 83 of file AnitaCanvasMaker.cxx.
TPad * AnitaCanvasMaker::getEventInfoCanvas | ( | const UsefulAnitaEvent * | evPtr, |
const RawAnitaHeader * | hdPtr, | ||
const Adu5Pat * | pat, | ||
TPad * | useCan = 0 |
||
) |
The event info canvas getter.
Fills in run number and times and all those good things. /param hdPtr Pointer to the header of the event we want to draw /param useCan Optional pointer to a canvas to draw all the TPaveText's (if zero a canvas will be created).
Definition at line 160 of file AnitaCanvasMaker.cxx.
TPad * AnitaCanvasMaker::getEventViewerCanvas | ( | FilteredAnitaEvent * | fEv, |
TPad * | useCan = 0 , |
||
bool | forceRedo = false |
||
) |
The main event view canvas getter.
Actually draws all the little squiggly lines. /param evPtr Pointer to the UsefulAnitaEvent we want to draw. /param hdPtr Pointer to the header of the event we want to draw /param pat Pointer to the Adu5Pat matched most closely in time to the event we want to draw /param useCan Optional pointer to a canvas to draw the squiggly ines in (if zero a canvas will be created).
Definition at line 429 of file AnitaCanvasMaker.cxx.
TPad * AnitaCanvasMaker::getInterferometryCanvas | ( | const RawAnitaHeader * | hdPtr, |
TPad * | useCan = NULL |
||
) |
The interferometry canvas getter.
Puts histograms from the Cross Correlator onto the display /param evPtr Pointer to the UsefulAnitaEvent we want to draw. /param hdPtr Pointer to the header of the event we want to draw /param useCan Optional pointer to a canvas to draw in (if zero a canvas will be created).
Definition at line 1375 of file AnitaCanvasMaker.cxx.
TPad * AnitaCanvasMaker::quickGetEventViewerCanvasForWebPlottter | ( | const UsefulAnitaEvent * | evPtr, |
const RawAnitaHeader * | hdPtr, | ||
TPad * | useCan = 0 |
||
) |
The main event view canvas getter used by QnDWBOM.
Actually draws all the little squiggly lines. /param evPtr Pointer to the UsefulAnitaEvent we want to draw. /param hdPtr Pointer to the header of the event we want to draw /param useCan Optional pointer to a canvas to draw the squiggly ines in (if zero a canvas will be created).
Definition at line 318 of file AnitaCanvasMaker.cxx.