GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4PolyCond.h
Go to the documentation of this file.
1 // $Id: TGo4PolyCond.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 TGO4POLYCOND_H
15 #define TGO4POLYCOND_H
16 
17 #include "TGo4Condition.h"
18 
19 class TH1;
20 class TH2;
21 
22 class TGo4PolyCond : public TGo4Condition {
23  public:
24  TGo4PolyCond();
25 
26  TGo4PolyCond(const char* name, const char* title = "Go4 polygon condition");
27 
28  virtual ~TGo4PolyCond();
29 
31  virtual void SetWorkHistogram(TH1* histo);
32 
35 
39  virtual void SetPainter(TGo4ConditionPainter* painter);
40 
42 
44  virtual void SetValues(Double_t * x, Double_t * y, Int_t len);
45 
47  virtual void SetValues(TCutG * newcut);
48 
50  void SetValuesDirect(TCutG * newcut);
51 
52  using TGo4Condition::Test;
53 
55  virtual Bool_t Test(Double_t x, Double_t y);
56 
58  virtual Double_t GetXLow();
59 
61  virtual Double_t GetXUp();
62 
64  virtual Double_t GetYLow();
65 
67  virtual Double_t GetYUp();
68 
75  TCutG* GetCut(Bool_t changeowner);
76 
78  virtual void PrintCondition(Bool_t points = kTRUE);
79 
82  Bool_t UpdateFrom(TGo4Condition * cond, Bool_t counts);
83 
85  virtual Bool_t UpdateFromUrl(const char* rest_url_opt);
86 
88  virtual Double_t GetIntegral(TH1* histo, Option_t* opt="");
89 
91  virtual Double_t GetMean(TH1* histo, Int_t axis=1);
92 
94  virtual Double_t GetRMS(TH1* histo, Int_t axis=1);
95 
97  virtual Double_t GetSkewness(TH1* histo, Int_t axis=1);
98 
100  virtual Double_t GetCurtosis(TH1* histo, Int_t axis=1);
101 
103  virtual Double_t GetXMax(TH1* histo);
104 
106  virtual Double_t GetYMax(TH1* histo);
107 
109  virtual Double_t GetCMax(TH1* histo);
110 
111  virtual Bool_t IsPolygonType();
112 
113  virtual Int_t GetMemorySize();
114 
116  virtual void SavePrimitive(std::ostream& fs, Option_t* = "");
117 
120  static void CleanupSpecials();
121 
122  static TString NextAvailableName();
123 
124 
126  static TString fgxURL_NPOINTS;
128  static TString fgxURL_XPRE;
130  static TString fgxURL_YPRE;
131 
132  private:
136  TCutG * CloneCut(TGo4PolyCond * source);
137 
139  void ClearCutHis();
140 
142  Bool_t IsCutHis(TH1* source);
143 
145  TCutG* fxCut;
146 
150  TH2* fxCutHis;
151 
152 
153  ClassDef(TGo4PolyCond,7)
154 };
155 
156 #endif //TGO4POLYCOND_H
virtual void PrintCondition(Bool_t points=kTRUE)
void ClearCutHis()
static TString fgxURL_XPRE
Definition: TGo4PolyCond.h:128
virtual Double_t GetXUp()
virtual Double_t GetIntegral(TH1 *histo, Option_t *opt="")
virtual Int_t GetMemorySize()
static TString NextAvailableName()
virtual Bool_t IsPolygonType()
TCutG * CloneCut(TGo4PolyCond *source)
void SetValuesDirect(TCutG *newcut)
Bool_t IsCutHis(TH1 *source)
virtual Double_t GetYMax(TH1 *histo)
TCutG * fxCut
Definition: TGo4PolyCond.h:145
static void CleanupSpecials()
virtual void SetValues()
Definition: TGo4Condition.h:93
virtual void SetWorkHistogram(TH1 *histo)
virtual Double_t GetXMax(TH1 *histo)
virtual Double_t GetRMS(TH1 *histo, Int_t axis=1)
TCutG * GetCut(Bool_t changeowner)
static TString fgxURL_YPRE
Definition: TGo4PolyCond.h:130
virtual Double_t GetYUp()
virtual Double_t GetSkewness(TH1 *histo, Int_t axis=1)
virtual Bool_t UpdateFromUrl(const char *rest_url_opt)
virtual void SetPainter(TGo4ConditionPainter *painter)
virtual Double_t GetCurtosis(TH1 *histo, Int_t axis=1)
virtual ~TGo4PolyCond()
virtual void SavePrimitive(std::ostream &fs, Option_t *="")
virtual Bool_t Test()
Bool_t UpdateFrom(TGo4Condition *cond, Bool_t counts)
virtual TGo4ConditionPainter * CreatePainter()
virtual Double_t GetCMax(TH1 *histo)
static TString fgxURL_NPOINTS
Definition: TGo4PolyCond.h:126
virtual Double_t GetXLow()
virtual Double_t GetYLow()
virtual Double_t GetMean(TH1 *histo, Int_t axis=1)