53 #include "St_base/StMessMgr.h"
67 virtual void Copy(TObject& obj)
const;
68 virtual TObject*
Clone(
const char* newname=
"")
const;
80 void GetWindow(Double_t &s, Double_t &e)
const;
126 Double_t
MidPoint(TGraph* graph=0)
const;
127 virtual Double_t SlopeChirality(Double_t scale)
const;
128 virtual Double_t PeakChirality(Double_t slopescale, Double_t peakscale)
const;
129 virtual Double_t PeakChiralityProb(Double_t probscale, Double_t chirality)
const;
130 virtual Double_t PeakChiralityProb(Double_t probscale, Double_t peakscale, Double_t chirscale)
const;
145 virtual Double_t
PeakTunnelProb(TGraph* graph, Double_t scale=1.0, Double_t sigma=1.0 )
const;
148 virtual void Reset(Double_t start, Double_t end);
149 virtual void Print(Option_t* opt=
"")
const;
159 virtual void Draw(Option_t* opt=
"");
160 virtual void Paint(Option_t* opt=
"");
164 Color_t GetStartLineColor()
const;
165 Style_t GetStartLineStyle()
const;
166 Width_t GetStartLineWidth()
const;
167 void SetStartLineColor(Color_t color);
168 void SetStartLineColorAlpha(Color_t color,Float_t alpha);
169 void SetStartLineStyle(Style_t style);
170 void SetStartLineWidth(Width_t width);
173 Color_t GetPeakMarkerColor()
const;
174 Style_t GetPeakMarkerStyle()
const;
175 Size_t GetPeakMarkerSize()
const;
176 void SetPeakMarkerColor(Color_t color);
177 void SetPeakMarkerColorAlpha(Color_t color, Float_t alpha);
178 void SetPeakMarkerStyle(Style_t style);
179 void SetPeakMarkerSize(Size_t size);
181 TLine*
GetEndLine(Double_t ymin=0, Double_t ymax=0);
182 Color_t GetEndLineColor()
const;
183 Style_t GetEndLineStyle()
const;
184 Width_t GetEndLineWidth()
const;
185 void SetEndLineColor(Color_t color);
186 void SetEndLineColorAlpha(Color_t color,Float_t alpha);
187 void SetEndLineStyle(Style_t style);
188 void SetEndLineWidth(Width_t width);
static PeakWindow Combine(const PeakWindow &leftpeak, const PeakWindow &rightpeak, bool keepleft=true)
combine two PeakWindow objects
PeakWindow & operator=(const PeakWindow &rhs)
Assignment operator.
TLine * GetStartLine(Double_t ymin=0, Double_t ymax=0)
Create and return a TLine for the start of the peak window.
TLine * mStartLine
TLine for drawing the start of the peak window.
void SetWindow(Double_t s, Double_t e)
PeakWindow()
Default Constructor.
Double_t StartEndLineYint() const
Computes the y-intercept of the line formed by the points (mStartX,mStartY) and (mEndX,mEndY)
virtual void Copy(TObject &obj) const
Only copies variables, to copy TLines use Clone()
Double_t StartEndLineSlope() const
Computes the slope of the line formed by the points (mStartX,mStartY) and (mEndX,mEndY) ...
TMarker * GetPeakMarker()
Create and return a TMarker to mark the location of the peak.
Double_t mPeakX
x-value of peak position as determined by SetPeak()
virtual ~PeakWindow()
Destructor.
virtual TObject * Clone(const char *newname="") const
Clone whole object, name is irrelevant.
Int_t mP_Peak
Point Number of peak in a TGraph object (P for point), point is such that slope with previous point w...
virtual void Print(Option_t *opt="") const
Prints information about PeakWindow.
void GetWindow(Double_t &s, Double_t &e) const
Double_t StartEndSlopeUncertainty(Double_t sigma) const
Uncertainty int the slope of the line formed by the points (mStartX,mStartY) and (mEndX,mEndY)
TLine * mEndLine
TLine for drawing the end of the peak window.
virtual void Reset(Double_t start, Double_t end)
Reset PeakWindow to constructor state.
Double_t mStartY
y value associated with mStartX
Double_t MidPoint(TGraph *graph=0) const
Computes the the line formed by the points (mStartX,mStartY) and (mEndX,mEndY) and evaluates that lin...
Double_t mStartX
x value for start of the peak window
void SetPeak(TGraph *gdata)
sets mPeakX based on mP_Peak using line of slopes from points (mP_Peak-1,mP_Peak) and (mP_Peak...
virtual void Paint(Option_t *opt="")
paint method see Draw() for options
virtual UShort_t CompareTo(const PeakWindow &other) const
compare two PeakWindow objects
Double_t mEndX
x value for end of the peak window
virtual void Draw(Option_t *opt="")
Draw the PeakWindow.
Double_t mEndY
y value associated with mEndX
Double_t mPeakY
y-value at mP_Peak
TLine * GetEndLine(Double_t ymin=0, Double_t ymax=0)
Create and return a TLine for the end of the peak window.
virtual Double_t PeakTunnelProb(TGraph *graph, Double_t scale=1.0, Double_t sigma=1.0) const
Compute probablity that a given PeakWindow is a real peak.
TMarker * mPeakMarker
TMarker for drawing the peak location.