v2.10-0 (21000JUN2005)

Go4ConditionsBase
Class TGo4WinCond


class TGo4WinCond
derived from TGo4Condition


Field Summary
 private Int_tfiSaveXMax
          Saved maximum x-axis bin number for active histogram range.
 private Int_tfiSaveXMin
          Saved minimum x-axis bin number for active histogram range.
 private Int_tfiSaveYMax
          Saved maximum y-axis bin number for active histogram range.
 private Int_tfiSaveYMin
          Saved minimum y-axis bin number for active histogram range.
 private Double_tfLow1
          inclusive lower limit
 private Double_tfLow2
          inclusive lower limit
 private Double_tfUp1
          exclusive upper limit
 private Double_tfUp2
          exclusive upper limit

Fields inherited from class Go4ConditionsBase.TGo4Condition
fgbCMAXDRAW, fgbINTDRAW, fgbLABELDRAW, fgbLIMITSDRAW, fgbXMAXDRAW, fgbXMEANDRAW, fgbXRMSDRAW, fgbYMAXDRAW, fgbYMEANDRAW, fgbYRMSDRAW, fgdUPDATEEPSILON, fxCutHis, fxPainter

Fields inherited from class TAttFill
fFillColor, fFillStyle

Fields inherited from class TAttLine
fLineColor, fLineStyle, fLineWidth

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4WinCond()
           
TGo4WinCond(const Text_t* name)
           
TGo4WinCond(const Text_t* name, const Text_t* title)
           

Destructor Summary
 virtual synchronized ~TGo4WinCond()
           

Method Summary
 virtual TGo4ConditionPainter*CreatePainter()
          Factory method to generate the subclass implentation for painter
 virtual Double_tGetCMax(TH1* histo)
          Calculate value for histogram inside condition limits.
 virtual Double_tGetIntegral(TH1* histo, Option_t* opt)
          Calculate value for histogram inside condition limits.
 virtual Double_tGetMean(TH1* histo, Int_t axis)
          Calculate value for histogram inside condition limits.
 virtual Double_tGetRMS(TH1* histo, Int_t axis)
          Calculate value for histogram inside condition limits.
 virtual voidGetValues(Int_t& dim, Double_t& x1, Double_t& y1, Double_t& x2, Double_t& y2)
          Returns limits.
 virtual Double_tGetXLow()
           
 virtual Double_tGetXMax(TH1* histo)
          Calculate value for histogram inside condition limits.
 virtual Double_tGetXUp()
           
 virtual Double_tGetYLow()
           
 virtual Double_tGetYMax(TH1* histo)
          Calculate value for histogram inside condition limits.
 virtual Double_tGetYUp()
           
 virtual Bool_tIsPolygonType()
           
 voidPrintCondition(Bool_t limits)
          Printout.
 private voidRestoreHistogramRanges(TH1* histo)
          Restore original ranges of current histo.
 private voidSetHistogramRanges(TH1* histo)
          Remember ranges of current histo and set range to active window.
 virtual voidSetPainter(TGo4ConditionPainter* painter)
          Replace default painter of this condition by external one.
if different views of this condition shall exist for different TPads,
the painter (i.e. view) can be exchanged before pad is updated.
 voidSetValues(Double_t low1, Double_t up1)
          Set limits and internal dimension to 1
 voidSetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2)
          Set limits and internal dimension to 2
 Bool_tTest(Double_t v1)
          Test v1 versus first limits: includes lower, excludes upper.
 Bool_tTest(Double_t v1, Double_t v2)
          Test v1 versus first limits and v2 versus second limits
Includes lower, excludes upper.
 Bool_tUpdateFrom(TGo4Condition* cond, Bool_t counts)
          Copy values from cond to this.

Methods inherited from class Go4ConditionsBase.TGo4Condition
AddCondition, CheckWorkHistogram, Clear, Counts, Disable, Draw, Enable, FixedResult, GetActiveCondition, GetCurrentIndex, GetCut, GetDimension, GetDrawPad, GetFlags, GetLast, GetLinkedHistogram, GetNumberOfConditions, GetUpdateEpsilon, GetWorkHistogram, IncCounts, IncTrueCounts, InitLabelStyle, Invert, IsArrayType, IsChanged, IsCMaxDraw, IsEnabled, IsFalse, IsHistogramLink, IsIntDraw, IsLabelDraw, IsLimitsDraw, IsMultiEdit, IsOwnedByEditor, IsPainted, IsTrue, IsVisible, IsXMaxDraw, IsXMeanDraw, IsXRMSDraw, IsYMaxDraw, IsYMeanDraw, IsYRMSDraw, MarkReset, Paint, Print, PrintBar, ResetCounts, ResetLabel, SaveLabelStyle, SetChanged, SetCMaxDraw, SetCounts, SetCurrentIndex, SetDimension, SetDrawPad, SetFlags, SetHistogram, SetHistogramLink, SetIntDraw, SetLabelDraw, SetLast, SetLimitsDraw, SetMultiEdit, SetOwnedByEditor, SetPadHistogram, SetPainted, SetUpdateEpsilon, SetValues, SetValues, SetValues, SetVisible, SetWorkHistogram, SetXMaxDraw, SetXMeanDraw, SetXRMSDraw, SetYMaxDraw, SetYMeanDraw, SetYRMSDraw, Test, Test, TrueCounts, UnDraw

Methods inherited from class TAttFill
Copy, GetFillColor, GetFillStyle, IsTransparent, Modify, ResetAttFill, SaveFillAttributes, SetFillAttributes, SetFillColor, SetFillStyle, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Methods inherited from class TAttLine
Copy, DistancetoLine, GetLineColor, GetLineStyle, GetLineWidth, ResetAttLine, SaveLineAttributes, SetLineAttributes, SetLineColor, SetLineStyle, SetLineWidth

Methods inherited from class TNamed
operator=, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Sizeof

Field Detail

fiSaveXMax

private Int_t fiSaveXMax
Saved maximum x-axis bin number for active histogram range.

fiSaveXMin

private Int_t fiSaveXMin
Saved minimum x-axis bin number for active histogram range.

fiSaveYMax

private Int_t fiSaveYMax
Saved maximum y-axis bin number for active histogram range.

fiSaveYMin

private Int_t fiSaveYMin
Saved minimum y-axis bin number for active histogram range.

fLow1

private Double_t fLow1
inclusive lower limit

fLow2

private Double_t fLow2
inclusive lower limit

fUp1

private Double_t fUp1
exclusive upper limit

fUp2

private Double_t fUp2
exclusive upper limit
Constructor Detail

TGo4WinCond

public TGo4WinCond()

TGo4WinCond

public TGo4WinCond(const Text_t* name)

TGo4WinCond

public TGo4WinCond(const Text_t* name, const Text_t* title)
Method Detail

~TGo4WinCond

public virtual synchronized ~TGo4WinCond()
Method Detail

CreatePainter

public virtual TGo4ConditionPainter* CreatePainter()
Factory method to generate the subclass implentation for painter

GetCMax

public virtual Double_t GetCMax(TH1* histo)
Calculate value for histogram inside condition limits.

GetIntegral

public virtual Double_t GetIntegral(TH1* histo, Option_t* opt)
Calculate value for histogram inside condition limits.

GetMean

public virtual Double_t GetMean(TH1* histo, Int_t axis)
Calculate value for histogram inside condition limits.

GetRMS

public virtual Double_t GetRMS(TH1* histo, Int_t axis)
Calculate value for histogram inside condition limits.

GetValues

public virtual void GetValues(Int_t& dim, Double_t& x1, Double_t& y1, Double_t& x2, Double_t& y2)
Returns limits.

GetXLow

public virtual Double_t GetXLow()

GetXMax

public virtual Double_t GetXMax(TH1* histo)
Calculate value for histogram inside condition limits.

GetXUp

public virtual Double_t GetXUp()

GetYLow

public virtual Double_t GetYLow()

GetYMax

public virtual Double_t GetYMax(TH1* histo)
Calculate value for histogram inside condition limits.

GetYUp

public virtual Double_t GetYUp()

IsPolygonType

public virtual Bool_t IsPolygonType()

PrintCondition

public void PrintCondition(Bool_t limits)
Printout. If limits is true, print limits too.

RestoreHistogramRanges

private void RestoreHistogramRanges(TH1* histo)
Restore original ranges of current histo.

SetHistogramRanges

private void SetHistogramRanges(TH1* histo)
Remember ranges of current histo and set range to active window.

SetPainter

public virtual void SetPainter(TGo4ConditionPainter* painter)
Replace default painter of this condition by external one.
if different views of this condition shall exist for different TPads,
the painter (i.e. view) can be exchanged before pad is updated.

SetValues

public void SetValues(Double_t low1, Double_t up1)
Set limits and internal dimension to 1

SetValues

public void SetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2)
Set limits and internal dimension to 2

Test

public Bool_t Test(Double_t v1)
Test v1 versus first limits: includes lower, excludes upper.

Test

public Bool_t Test(Double_t v1, Double_t v2)
Test v1 versus first limits and v2 versus second limits
Includes lower, excludes upper.

UpdateFrom

public Bool_t UpdateFrom(TGo4Condition* cond, Bool_t counts)
Copy values from cond to this. When counts is true, copy also counters.

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005