GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4WinCond.h>
Public Member Functions | |
TGo4WinCond () | |
TGo4WinCond (const char *name, const char *title="Go4 window condition") | |
virtual | ~TGo4WinCond () |
virtual TGo4ConditionPainter * | CreatePainter () |
virtual void | SetPainter (TGo4ConditionPainter *painter) |
virtual void | SetValues (Double_t low1, Double_t up1) |
virtual void | SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2) |
virtual Bool_t | Test (Double_t v1) |
virtual Bool_t | Test (Double_t v1, Double_t v2) |
virtual void | GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) |
virtual Double_t | GetXLow () |
virtual Double_t | GetXUp () |
virtual Double_t | GetYLow () |
virtual Double_t | GetYUp () |
virtual void | PrintCondition (Bool_t full=kTRUE) |
Bool_t | UpdateFrom (TGo4Condition *cond, Bool_t counts) |
virtual Bool_t | UpdateFromUrl (const char *rest_url_opt) |
virtual Double_t | GetIntegral (TH1 *histo, Option_t *opt="") |
virtual Double_t | GetMean (TH1 *histo, Int_t axis=1) |
virtual Double_t | GetRMS (TH1 *histo, Int_t axis=1) |
virtual Double_t | GetSkewness (TH1 *histo, Int_t axis=1) |
virtual Double_t | GetCurtosis (TH1 *histo, Int_t axis=1) |
virtual Double_t | GetXMax (TH1 *histo) |
virtual Double_t | GetYMax (TH1 *histo) |
virtual Double_t | GetCMax (TH1 *histo) |
virtual Bool_t | IsPolygonType () |
virtual Int_t | GetMemorySize () |
virtual void | SavePrimitive (std::ostream &fs, Option_t *="") |
Public Member Functions inherited from TGo4Condition | |
TGo4Condition () | |
TGo4Condition (const char *name, const char *title="Go4 Condition") | |
virtual | ~TGo4Condition () |
virtual void | Paint (Option_t *opt="") |
virtual void | Draw (Option_t *opt="") |
virtual void | UnDraw (Option_t *opt="") |
virtual void | Pop () |
virtual Int_t | Counts () |
virtual Int_t | TrueCounts () |
virtual void | ResetCounts () |
virtual void | SetCounts (Int_t truecounts, Int_t counts) |
virtual void | Disable (Bool_t result) |
virtual void | Enable () |
Bool_t | IsEnabled () const |
virtual Bool_t | Test () |
virtual Bool_t | Test (Bool_t result) |
virtual void | SetValues () |
virtual void | SetValues (TCutG *newcut) |
virtual void | SetValues (Double_t *x, Double_t *y, Int_t len) |
virtual void | AddCondition (TGo4Condition *next) |
void | IncCounts () |
void | IncTrueCounts () |
Bool_t | IsTrue () const |
Bool_t | IsFalse () const |
Bool_t | FixedResult () const |
virtual void | Invert (Bool_t on) |
virtual void | PrintBar () |
virtual void | Print (Option_t *opt="") const |
void | SetLast (Bool_t value) |
Bool_t | GetLast () |
virtual TCutG * | GetCut (Bool_t owner) |
virtual TGo4Condition * | GetActiveCondition () |
virtual void | MarkReset (Bool_t on) |
virtual void | Clear (Option_t *opt="") |
virtual void | SetFlags (Bool_t enabled, Bool_t lastresult, Bool_t markreset, Bool_t result, Bool_t truevalue, Bool_t falsevalue) |
virtual void | GetFlags (Bool_t *enabled, Bool_t *lastresult, Bool_t *markreset, Bool_t *result, Bool_t *truevalue, Bool_t *falsevalue) |
virtual void | SetVisible (Bool_t on) |
virtual Bool_t | IsVisible () |
void | SetHistogramLink (Bool_t on) |
Bool_t | IsHistogramLink () |
void | SetHistogram (const char *name) |
const char * | GetLinkedHistogram () |
void | SetWorkHistogram (TH1 *histo) |
TH1 * | GetWorkHistogram () |
void | SetUpdateEpsilon (Double_t val) |
Double_t | GetUpdateEpsilon () |
void | SaveLabelStyle () |
void | InitLabelStyle () |
void | ResetLabel (Option_t *opt="reset") |
virtual void | SetLabelDraw (Bool_t on) |
virtual Bool_t | IsLabelDraw () |
virtual void | SetLimitsDraw (Bool_t on) |
virtual Bool_t | IsLimitsDraw () |
virtual void | SetIntDraw (Bool_t on) |
virtual Bool_t | IsIntDraw () |
virtual void | SetXMeanDraw (Bool_t on) |
virtual Bool_t | IsXMeanDraw () |
virtual void | SetXRMSDraw (Bool_t on) |
virtual Bool_t | IsXRMSDraw () |
virtual void | SetYMeanDraw (Bool_t on) |
virtual Bool_t | IsYMeanDraw () |
virtual void | SetYRMSDraw (Bool_t on) |
virtual Bool_t | IsYRMSDraw () |
virtual void | SetXMaxDraw (Bool_t on) |
virtual Bool_t | IsXMaxDraw () |
virtual void | SetYMaxDraw (Bool_t on) |
virtual Bool_t | IsYMaxDraw () |
virtual void | SetCMaxDraw (Bool_t on) |
virtual Bool_t | IsCMaxDraw () |
virtual const char * | GetLabelNumFormat () |
virtual void | SetLabelNumFormat (const char *fmt) |
virtual void | SetChanged (Bool_t on) |
virtual Int_t | IsChanged () |
void | SetMultiEdit (Bool_t on) |
virtual Bool_t | IsMultiEdit () |
void | SetDimension (Int_t d) |
Int_t | GetDimension () |
void | SetOwnedByEditor (Bool_t on) |
Bool_t | IsOwnedByEditor () |
virtual void | SetCurrentIndex (Int_t ix) |
virtual Int_t | GetCurrentIndex () |
virtual Int_t | GetNumberOfConditions () |
virtual Bool_t | IsArrayType () |
void | DeletePainter () |
Static Public Attributes | |
static TString | fgxURL_XLOW ="xmin" |
static TString | fgxURL_XUP ="xmax" |
static TString | fgxURL_YLOW ="ymin" |
static TString | fgxURL_YUP ="ymax" |
Static Public Attributes inherited from TGo4Condition | |
static const Double_t | fgdUPDATEEPSILON =0.01 |
static Bool_t | fgbLABELDRAW =kTRUE |
static Bool_t | fgbLIMITSDRAW =kTRUE |
static Bool_t | fgbINTDRAW =kTRUE |
static Bool_t | fgbXMEANDRAW =kTRUE |
static Bool_t | fgbXRMSDRAW =kTRUE |
static Bool_t | fgbYMEANDRAW =kFALSE |
static Bool_t | fgbYRMSDRAW =kFALSE |
static Bool_t | fgbXMAXDRAW =kTRUE |
static Bool_t | fgbYMAXDRAW =kFALSE |
static Bool_t | fgbCMAXDRAW =kTRUE |
static TString | fgxNUMFORMAT ="%.4E" |
static TString | fgxURL_RESET ="resetcounters" |
static TString | fgxURL_RESULT ="resultmode" |
static TString | fgxURL_INVERT ="invertmode" |
static TString | fgxURL_VISIBLE ="visible" |
static TString | fgxURL_LABEL ="labeldraw" |
static TString | fgxURL_LIMITS ="limitsdraw" |
static TString | fgxURL_INTEGRAL ="intdraw" |
static TString | fgxURL_XMEAN ="xmeandraw" |
static TString | fgxURL_XRMS ="xrmsdraw" |
static TString | fgxURL_YMEAN ="ymeandraw" |
static TString | fgxURL_YRMS ="yrmsdraw" |
static TString | fgxURL_XMAX ="xmaxdraw" |
static TString | fgxURL_YMAX ="ymaxdraw" |
static TString | fgxURL_CMAX ="cmaxdraw" |
Private Member Functions | |
void | SetHistogramRanges (TH1 *histo) |
void | RestoreHistogramRanges (TH1 *histo) |
Private Attributes | |
Double_t | fLow1 |
Double_t | fUp1 |
Double_t | fLow2 |
Double_t | fUp2 |
Int_t | fiSaveXMin |
Int_t | fiSaveXMax |
Int_t | fiSaveYMin |
Int_t | fiSaveYMax |
Additional Inherited Members | |
Protected Member Functions inherited from TGo4Condition | |
void | BuildUrlOptionArray (const char *rest_url_opt) |
Bool_t | UrlOptionHasKey (const char *key) |
TString | GetUrlOptionAsString (const char *key, TString def_value) |
Int_t | GetUrlOptionAsInt (const char *key, Int_t def_value) |
Double_t | GetUrlOptionAsDouble (const char *key, Double_t def_value) |
void | SetPainted (Bool_t on) |
Bool_t | IsPainted () const |
const char * | MakeScript (std::ostream &out, const char *varname, Option_t *opt="", const char *arrextraargs=0) |
Protected Attributes inherited from TGo4Condition | |
TGo4ConditionPainter * | fxPainter |
TH1 * | fxCutHis |
TObjArray * | fxUrlOptionArray |
Definition at line 21 of file TGo4WinCond.h.
TGo4WinCond::TGo4WinCond | ( | ) |
Definition at line 34 of file TGo4WinCond.cxx.
References GO4TRACE.
TGo4WinCond::TGo4WinCond | ( | const char * | name, |
const char * | title = "Go4 window condition" |
||
) |
Definition at line 48 of file TGo4WinCond.cxx.
References GO4TRACE.
|
virtual |
Definition at line 63 of file TGo4WinCond.cxx.
References GO4TRACE.
|
virtual |
Factory method to generate the subclass implementation for painter
Reimplemented from TGo4Condition.
Definition at line 360 of file TGo4WinCond.cxx.
References TGo4ConditionPainter::SetCondition().
|
virtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 235 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
|
virtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 177 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
|
virtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 137 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
|
virtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 147 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
|
virtual |
Reimplemented from TGo4Condition.
Definition at line 367 of file TGo4WinCond.cxx.
|
virtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 157 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
|
virtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 167 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
|
virtual |
Returns limits.
Reimplemented from TGo4Condition.
Definition at line 111 of file TGo4WinCond.cxx.
References fLow1, fLow2, fUp1, fUp2, and TGo4Condition::GetDimension().
Referenced by TGo4WinCondView::ExecuteEvent(), TGo4WinCondPainter::PaintCondition(), TGo4ConditionPainter::PaintLabel(), TGo4ConditionInfo::RefreshWidget(), and SavePrimitive().
|
inlinevirtual |
Reimplemented from TGo4Condition.
Definition at line 60 of file TGo4WinCond.h.
References fLow1.
Referenced by TGo4ViewPanel::PadClickedSlot(), and UpdateFromUrl().
|
virtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 187 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
|
inlinevirtual |
Reimplemented from TGo4Condition.
Definition at line 61 of file TGo4WinCond.h.
References fUp1.
Referenced by UpdateFromUrl().
|
inlinevirtual |
Reimplemented from TGo4Condition.
Definition at line 62 of file TGo4WinCond.h.
References fLow2.
Referenced by TGo4ViewPanel::PadClickedSlot(), and UpdateFromUrl().
|
virtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 211 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
|
inlinevirtual |
Reimplemented from TGo4Condition.
Definition at line 63 of file TGo4WinCond.h.
References fUp2.
Referenced by UpdateFromUrl().
|
virtual |
Reimplemented from TGo4Condition.
Definition at line 120 of file TGo4WinCond.cxx.
|
virtual |
Printout. If limits is true, print limits too.
Reimplemented from TGo4Condition.
Definition at line 125 of file TGo4WinCond.cxx.
References fLow1, fLow2, fUp1, fUp2, TGo4Condition::GetDimension(), and TGo4Condition::PrintCondition().
Referenced by TXXXAnlProc::TXXXAnlProc(), TXXXUnpackProc::TXXXUnpackProc(), TYYYUnpackProc::TYYYUnpackProc(), TXXXAnlProc::~TXXXAnlProc(), TXXXUnpackProc::~TXXXUnpackProc(), and TYYYUnpackProc::~TYYYUnpackProc().
|
private |
Restore original ranges of current histo.
Definition at line 273 of file TGo4WinCond.cxx.
References fiSaveXMax, fiSaveXMin, fiSaveYMax, and fiSaveYMin.
Referenced by GetCMax(), GetCurtosis(), GetIntegral(), GetMean(), GetRMS(), GetSkewness(), GetXMax(), and GetYMax().
|
virtual |
Standard way to store parameter in form of macro
Definition at line 375 of file TGo4WinCond.cxx.
References GetValues(), and TGo4Condition::MakeScript().
|
private |
Remember ranges of current histo and set range to active window.
Definition at line 245 of file TGo4WinCond.cxx.
References fiSaveXMax, fiSaveXMin, fiSaveYMax, fiSaveYMin, fLow1, fLow2, fUp1, and fUp2.
Referenced by GetCMax(), GetCurtosis(), GetIntegral(), GetMean(), GetRMS(), GetSkewness(), GetXMax(), and GetYMax().
|
virtual |
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.
Reimplemented from TGo4Condition.
Definition at line 342 of file TGo4WinCond.cxx.
References TGo4Condition::fxPainter, TGo4ConditionPainter::SetCondition(), and TGo4Log::Warn().
|
virtual |
Set limits and internal dimension to 1
Reimplemented from TGo4Condition.
Definition at line 104 of file TGo4WinCond.cxx.
References fLow1, fUp1, and TGo4Condition::SetDimension().
Referenced by TGo4WinCondView::ExecuteEvent(), TGo4CreateNewCondition::MakeCondition(), TGo4Analysis::MakeWinCond(), TGo4AnalysisObjectManager::MakeWindowCond(), TGo4ViewPanel::PadClickedSlot(), TGo4WinCondPainter::PaintCondition(), and TGo4WinCondView::SetToLimits().
|
virtual |
Set limits and internal dimension to 2
Reimplemented from TGo4Condition.
Definition at line 95 of file TGo4WinCond.cxx.
References fLow1, fLow2, fUp1, fUp2, and TGo4Condition::SetDimension().
|
virtual |
Test v1 versus first limits: includes lower, excludes upper.
Reimplemented from TGo4Condition.
Definition at line 83 of file TGo4WinCond.cxx.
References TGo4Condition::FixedResult(), fLow1, fUp1, TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsEnabled(), TGo4Condition::IsFalse(), and TGo4Condition::IsTrue().
Referenced by TXXXProc::BuildEvent(), TXXXAnlProc::BuildEvent(), TYYYUnpackProc::BuildEvent(), and TXXXUnpackProc::BuildEvent().
|
virtual |
Test v1 versus first limits and v2 versus second limits Includes lower, excludes upper.
Reimplemented from TGo4Condition.
Definition at line 69 of file TGo4WinCond.cxx.
References TGo4Condition::FixedResult(), fLow1, fLow2, fUp1, fUp2, TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsEnabled(), TGo4Condition::IsFalse(), and TGo4Condition::IsTrue().
|
virtual |
Copy values from cond to this. When counts is true, copy also counters.
Reimplemented from TGo4Condition.
Definition at line 288 of file TGo4WinCond.cxx.
References fLow1, fLow2, fUp1, fUp2, TGo4Condition::GetValues(), TGo4Condition::SetDimension(), and TGo4Condition::UpdateFrom().
|
virtual |
Method used by HTTP server to update some fields, specified in URL syntax
Reimplemented from TGo4Condition.
Definition at line 301 of file TGo4WinCond.cxx.
References fgxURL_XLOW, fgxURL_XUP, fgxURL_YLOW, fgxURL_YUP, TGo4Condition::GetDimension(), TGo4Condition::GetUrlOptionAsDouble(), GetXLow(), GetXUp(), GetYLow(), GetYUp(), TGo4Log::Message(), TGo4Condition::SetValues(), TGo4Condition::UpdateFromUrl(), and TGo4Condition::UrlOptionHasKey().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 108 of file TGo4WinCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 110 of file TGo4WinCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 113 of file TGo4WinCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 115 of file TGo4WinCond.h.
Referenced by UpdateFromUrl().
|
private |
Saved maximum x-axis bin number for active histogram range.
Definition at line 136 of file TGo4WinCond.h.
Referenced by RestoreHistogramRanges(), and SetHistogramRanges().
|
private |
Saved minimum x-axis bin number for active histogram range.
Definition at line 133 of file TGo4WinCond.h.
Referenced by RestoreHistogramRanges(), and SetHistogramRanges().
|
private |
Saved maximum y-axis bin number for active histogram range.
Definition at line 142 of file TGo4WinCond.h.
Referenced by RestoreHistogramRanges(), and SetHistogramRanges().
|
private |
Saved minimum y-axis bin number for active histogram range.
Definition at line 139 of file TGo4WinCond.h.
Referenced by RestoreHistogramRanges(), and SetHistogramRanges().
|
private |
inclusive lower limit
Definition at line 121 of file TGo4WinCond.h.
Referenced by GetValues(), GetXLow(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().
|
private |
inclusive lower limit
Definition at line 127 of file TGo4WinCond.h.
Referenced by GetValues(), GetYLow(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().
|
private |
exclusive upper limit
Definition at line 124 of file TGo4WinCond.h.
Referenced by GetValues(), GetXUp(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().
|
private |
exclusive upper limit
Definition at line 130 of file TGo4WinCond.h.
Referenced by GetValues(), GetYUp(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().