GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4WinCond.h
Go to the documentation of this file.
1 // $Id: TGo4WinCond.h 2836 2020-05-15 14:49:44Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4WINCOND_H
15 #define TGO4WINCOND_H
16 
17 #include "TGo4Condition.h"
18 
19 class TH1;
20 
21 class TGo4WinCond : public TGo4Condition {
22  public:
23  TGo4WinCond();
24 
25  TGo4WinCond(const char* name, const char* title = "Go4 window condition");
26 
27  virtual ~TGo4WinCond();
28 
31 
35  virtual void SetPainter(TGo4ConditionPainter* painter);
36 
38 
40  virtual void SetValues(Double_t low1, Double_t up1);
41 
43  virtual void SetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2);
44 
45  using TGo4Condition::Test;
46 
48  virtual Bool_t Test(Double_t v1);
49 
52  virtual Bool_t Test(Double_t v1, Double_t v2);
53 
55  virtual void GetValues(Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2);
56 
57  inline virtual Double_t GetXLow() { return fLow1; }
58  inline virtual Double_t GetXUp() { return fUp1; }
59  inline virtual Double_t GetYLow() { return fLow2; }
60  inline virtual Double_t GetYUp() { return fUp2; }
61 
62  void SetXLow(Double_t v) { fLow1 = v; }
63  void SetXUp(Double_t v) { fUp1 = v; }
64  void SetYLow(Double_t v) { fLow2 = v; }
65  void SetYUp(Double_t v) { fUp2 = v; }
66 
67 
69  virtual void PrintCondition(Bool_t full = kTRUE);
70 
72  Bool_t UpdateFrom(TGo4Condition * cond, Bool_t counts);
73 
75  virtual Bool_t UpdateFromUrl(const char* rest_url_opt);
76 
78  virtual Double_t GetIntegral(TH1* histo, Option_t* opt="");
79 
81  virtual Double_t GetMean(TH1* histo, Int_t axis=1);
82 
84  virtual Double_t GetRMS(TH1* histo, Int_t axis=1);
85 
87  virtual Double_t GetSkewness(TH1* histo, Int_t axis=1);
88 
90  virtual Double_t GetCurtosis(TH1* histo, Int_t axis=1);
91 
93  virtual Double_t GetXMax(TH1* histo);
94 
96  virtual Double_t GetYMax(TH1* histo);
97 
99  virtual Double_t GetCMax(TH1* histo);
100 
101  virtual Bool_t IsPolygonType() { return kFALSE; }
102 
103  virtual Int_t GetMemorySize();
104 
106  virtual void SavePrimitive(std::ostream& fs, Option_t* = "");
107 
109  static TString fgxURL_XLOW;
111  static TString fgxURL_XUP;
113  static TString fgxURL_YLOW;
115  static TString fgxURL_YUP;
116 
117  private:
118 
120  Double_t fLow1;
121 
123  Double_t fUp1;
124 
126  Double_t fLow2;
127 
129  Double_t fUp2;
130 
132  Int_t fiSaveXMin;
133 
135  Int_t fiSaveXMax;
136 
138  Int_t fiSaveYMin;
139 
141  Int_t fiSaveYMax;
142 
144  void SetHistogramRanges(TH1* histo);
145 
147  void RestoreHistogramRanges(TH1* histo);
148 
149  ClassDef(TGo4WinCond,7)
150 };
151 
152 #endif //TGO4WINCOND_H
static TString fgxURL_YLOW
Definition: TGo4WinCond.h:113
virtual Double_t GetYLow()
Definition: TGo4WinCond.h:59
virtual Double_t GetIntegral(TH1 *histo, Option_t *opt="")
Int_t fiSaveYMax
Definition: TGo4WinCond.h:141
virtual void SavePrimitive(std::ostream &fs, Option_t *="")
Int_t fiSaveXMin
Definition: TGo4WinCond.h:132
virtual void PrintCondition(Bool_t full=kTRUE)
Double_t fUp2
Definition: TGo4WinCond.h:129
virtual Double_t GetYMax(TH1 *histo)
virtual Double_t GetSkewness(TH1 *histo, Int_t axis=1)
void SetYLow(Double_t v)
Definition: TGo4WinCond.h:64
virtual Double_t GetCMax(TH1 *histo)
virtual Double_t GetCurtosis(TH1 *histo, Int_t axis=1)
virtual Double_t GetXUp()
Definition: TGo4WinCond.h:58
virtual void GetValues(Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
virtual void SetValues()
Definition: TGo4Condition.h:93
virtual TGo4ConditionPainter * CreatePainter()
Int_t fiSaveYMin
Definition: TGo4WinCond.h:138
static TString fgxURL_XUP
Definition: TGo4WinCond.h:111
void SetHistogramRanges(TH1 *histo)
virtual Double_t GetMean(TH1 *histo, Int_t axis=1)
Int_t fiSaveXMax
Definition: TGo4WinCond.h:135
Double_t fLow1
Definition: TGo4WinCond.h:120
void SetXLow(Double_t v)
Definition: TGo4WinCond.h:62
Double_t fLow2
Definition: TGo4WinCond.h:126
static TString fgxURL_XLOW
Definition: TGo4WinCond.h:109
virtual void SetPainter(TGo4ConditionPainter *painter)
void SetXUp(Double_t v)
Definition: TGo4WinCond.h:63
static TString fgxURL_YUP
Definition: TGo4WinCond.h:115
void SetYUp(Double_t v)
Definition: TGo4WinCond.h:65
virtual Int_t GetMemorySize()
Double_t fUp1
Definition: TGo4WinCond.h:123
virtual Double_t GetXLow()
Definition: TGo4WinCond.h:57
virtual Double_t GetYUp()
Definition: TGo4WinCond.h:60
virtual Bool_t Test()
virtual Bool_t IsPolygonType()
Definition: TGo4WinCond.h:101
virtual Double_t GetXMax(TH1 *histo)
void RestoreHistogramRanges(TH1 *histo)
Bool_t UpdateFrom(TGo4Condition *cond, Bool_t counts)
virtual Double_t GetRMS(TH1 *histo, Int_t axis=1)
virtual ~TGo4WinCond()
Definition: TGo4WinCond.cxx:59
virtual Bool_t UpdateFromUrl(const char *rest_url_opt)