34 #ifndef PEAKANAPAINTER_H
35 #define PEAKANAPAINTER_H
45 #include "TPaveText.h"
48 #include "PeakWindow.h"
58 virtual void Paint(Option_t *opt=
"");
72 virtual Color_t GetBaseLineColor();
73 virtual Style_t GetBaseLineStyle();
74 virtual Width_t GetBaseLineWidth();
76 virtual Color_t GetHitLineColor();
77 virtual Style_t GetHitLineStyle();
78 virtual Width_t GetHitLineWidth();
80 virtual void SetBaseLineColor(Color_t color);
81 virtual void SetBaseLineColorAlpha(Color_t color,Float_t alpha);
82 virtual void SetBaseLineStyle(Style_t style);
83 virtual void SetBaseLineWidth(Width_t width);
85 virtual void SetHitLineColor(Color_t color);
86 virtual void SetHitLineColorAlpha(Color_t color,Float_t alpha);
87 virtual void SetHitLineStyle(Style_t style);
88 virtual void SetHitLineWidth(Width_t width);
98 virtual TPaveText*
MakePaveText(Double_t xmin=0.7,Double_t ymin=0.5, Double_t xmax=1.0, Double_t ymax=1.0);
virtual void CleanPainter()
Clean up internal objects.
TString mPeakOption
option for drawing the peaks
bool ValidGraph()
Check if PeakAna object loaded and has a non-zero TGraph.
TLine * mTheHitLine
threshold for a peak PeakAna::mBaseline + PeakAna::mBaselineSigma*PeakAna::mBaselineSigmaScale ...
TString mGraphOption
option for drawing the TGraph
virtual void SetPeakAna(PeakAna *ana)
virtual void PaintFoundPeakRange()
Just draw the found peak on the current pad.
virtual void PaintPeakRanges()
Draw all found peaks on the current pad except the found peak.
TLine * mTheBaseLine
line for the PeakAna::mBaseline
virtual void PaintRawData()
Raw data with no modifications.
TString mStatsOption
option for what to put in stats box
virtual void PaintFoundMarker()
Draw the marker indicating the found peak.
PeakAna * mPA
pointer to PeakAna for drawing (PA=PeakAna)
virtual void PaintBaselines()
Just draw the baseline and hitlines.
virtual void PaintPeakMarkers()
Draw markers indicating all peaks except the found peak marker.
virtual void PaintStats()
Draw Stats box for peak finding.
TPaveText * mPaveT_PA
for custom stats box
virtual TPaveText * MakePaveText(Double_t xmin=0.7, Double_t ymin=0.5, Double_t xmax=1.0, Double_t ymax=1.0)
Makes the stats box to show peak infomation.
virtual void PaintFoundPeak()
Raw data inside zoomed in on found signal region.
void Init()
Initialize internal variables to null.