Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4ConditionsBase/TGo4WinCond.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
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 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:52 2005 for Go4-v2.10-5 by doxygen1.2.15