00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef TGO4WINCOND_H
00019 #define TGO4WINCOND_H
00020 #include "TGo4Condition.h"
00021
00022 class TGo4WinCond : public TGo4Condition {
00023 public:
00024 TGo4WinCond();
00025 virtual ~TGo4WinCond();
00026 TGo4WinCond(const Text_t * name);
00027 TGo4WinCond(const Text_t * name, const Text_t * title);
00028
00030 virtual TGo4ConditionPainter* CreatePainter();
00031
00035 virtual void SetPainter(TGo4ConditionPainter* painter);
00036
00040 void SetValues(Double_t low1, Double_t up1);
00044 void SetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2);
00048 Bool_t Test(Double_t v1);
00053 Bool_t Test(Double_t v1, Double_t v2);
00057 virtual void GetValues(Int_t & dim, Double_t & x1, Double_t & y1, Double_t & x2, Double_t & y2);
00058
00059 virtual Double_t GetXLow();
00060 virtual Double_t GetXUp();
00061 virtual Double_t GetYLow();
00062 virtual Double_t GetYUp();
00066 void PrintCondition(Bool_t limits);
00067
00071 Bool_t UpdateFrom(TGo4Condition * cond, Bool_t counts);
00072
00073
00074
00076 virtual Double_t GetIntegral(TH1* histo, Option_t* opt="");
00077
00079 virtual Double_t GetMean(TH1* histo, Int_t axis=1);
00080
00082 virtual Double_t GetRMS(TH1* histo, Int_t axis=1);
00083
00085 virtual Double_t GetXMax(TH1* histo);
00086
00088 virtual Double_t GetYMax(TH1* histo);
00089
00091 virtual Double_t GetCMax(TH1* histo);
00092
00093 virtual Bool_t IsPolygonType();
00094
00095 private:
00099 Double_t fLow1;
00103 Double_t fUp1;
00107 Double_t fLow2;
00111 Double_t fUp2;
00112
00113
00115 Int_t fiSaveXMin;
00116
00118 Int_t fiSaveXMax;
00119
00121 Int_t fiSaveYMin;
00122
00124 Int_t fiSaveYMax;
00125
00127 void SetHistogramRanges(TH1* histo);
00128
00130 void RestoreHistogramRanges(TH1* histo);
00131
00132 ClassDef(TGo4WinCond,6)
00133 };
00134 #endif //TGO4WINCOND_H
00135
00136
00137
00138