GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
TGo4ShapedCond Class Reference

#include <TGo4ShapedCond.h>

+ Inheritance diagram for TGo4ShapedCond:

Public Member Functions

 TGo4ShapedCond ()
 
 TGo4ShapedCond (const char *name, const char *title="Go4 ellipse condition")
 
virtual ~TGo4ShapedCond ()
 
void SetEllipse (Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0, Int_t npoints=0)
 
void SetCircle (Double_t cx, Double_t cy, Double_t r, Int_t npoints=0)
 
void SetBox (Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0)
 
void SetCircle ()
 
Bool_t IsCircle ()
 
void SetEllipse ()
 
Bool_t IsEllipse ()
 
void SetBox ()
 
Bool_t IsBox ()
 
void SetFreeShape ()
 
Bool_t IsFreeShape ()
 
const char * GetShapeName ()
 
void GetCenter (Double_t &x, Double_t &y)
 
void SetCenter (Double_t x, Double_t y)
 
void GetRadius (Double_t &a1, Double_t &a2)
 
void SetRadius (Double_t a1, Double_t a2)
 
Double_t GetTheta ()
 
void SetTheta (Double_t angle)
 
virtual void PrintCondition (Bool_t points=kTRUE)
 
Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts)
 
virtual Bool_t UpdateFromUrl (const char *rest_url_opt)
 
Bool_t IsShapedType ()
 
void SetResolution (Int_t npoints)
 
Int_t GetResolution ()
 
- Public Member Functions inherited from TGo4PolyCond
 TGo4PolyCond ()
 
 TGo4PolyCond (const char *name, const char *title="Go4 polygon condition")
 
virtual ~TGo4PolyCond ()
 
virtual TGo4ConditionPainterCreatePainter ()
 
virtual void SetPainter (TGo4ConditionPainter *painter)
 
virtual void SetValues (Double_t *x, Double_t *y, Int_t len)
 
virtual void SetValues (TCutG *newcut)
 
void SetValuesDirect (TCutG *newcut)
 
virtual Bool_t Test (Double_t x, Double_t y)
 
virtual Double_t GetXLow ()
 
virtual Double_t GetXUp ()
 
virtual Double_t GetYLow ()
 
virtual Double_t GetYUp ()
 
TCutG * GetCut (Bool_t changeowner)
 
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 (Double_t x)
 
virtual Bool_t Test (Bool_t result)
 
virtual void SetValues ()
 
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 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 void GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
 
virtual TGo4ConditionGetActiveCondition ()
 
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_RESOLUTION ="ellinpts"
 
static TString fgxURL_CX ="ellicx"
 
static TString fgxURL_CY ="ellicy"
 
static TString fgxURL_A1 ="ellia1"
 
static TString fgxURL_A2 ="ellia2"
 
static TString fgxURL_TH ="ellith"
 
static TString fgxURL_SHAPE ="ellishape"
 
- Static Public Attributes inherited from TGo4PolyCond
static TString fgxURL_NPOINTS ="npolygon"
 
static TString fgxURL_XPRE ="x"
 
static TString fgxURL_YPRE ="y"
 
- 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"
 

Protected Member Functions

void ResetPolygon ()
 
void DefineEllipse (Double_t *x, Double_t *y, Int_t n)
 
void DefineBox (Double_t *x, Double_t *y, Int_t n)
 
- 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)
 

Private Attributes

Int_t fiResolution
 
Double_t fdCenterX
 
Double_t fdCenterY
 
Double_t fdRadius1
 
Double_t fdRadius2
 
Double_t fdTheta
 
Go4CondShape_t fiShapeType
 

Additional Inherited Members

- Static Public Member Functions inherited from TGo4PolyCond
static void CleanupSpecials ()
 
static TString NextAvailableName ()
 
- Protected Attributes inherited from TGo4Condition
TGo4ConditionPainterfxPainter
 
TH1 * fxCutHis
 
TObjArray * fxUrlOptionArray
 

Detailed Description

Definition at line 40 of file TGo4ShapedCond.h.

Constructor & Destructor Documentation

TGo4ShapedCond::TGo4ShapedCond ( )

Definition at line 39 of file TGo4ShapedCond.cxx.

TGo4ShapedCond::TGo4ShapedCond ( const char *  name,
const char *  title = "Go4 ellipse condition" 
)

Definition at line 44 of file TGo4ShapedCond.cxx.

TGo4ShapedCond::~TGo4ShapedCond ( )
virtual

Definition at line 49 of file TGo4ShapedCond.cxx.

Member Function Documentation

void TGo4ShapedCond::DefineBox ( Double_t *  x,
Double_t *  y,
Int_t  n 
)
protected

Definition at line 262 of file TGo4ShapedCond.cxx.

References fdCenterX, fdCenterY, fdRadius1, fdRadius2, and fdTheta.

Referenced by ResetPolygon().

void TGo4ShapedCond::DefineEllipse ( Double_t *  x,
Double_t *  y,
Int_t  n 
)
protected

Definition at line 230 of file TGo4ShapedCond.cxx.

References fdCenterX, fdCenterY, fdRadius1, fdRadius2, and fdTheta.

Referenced by ResetPolygon().

void TGo4ShapedCond::GetCenter ( Double_t &  x,
Double_t &  y 
)
inline

Definition at line 135 of file TGo4ShapedCond.h.

References fdCenterX, and fdCenterY.

Referenced by UpdateFromUrl().

void TGo4ShapedCond::GetRadius ( Double_t &  a1,
Double_t &  a2 
)
inline

Definition at line 145 of file TGo4ShapedCond.h.

References fdRadius1, and fdRadius2.

Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().

Int_t TGo4ShapedCond::GetResolution ( )
inline

Definition at line 183 of file TGo4ShapedCond.h.

References fiResolution.

Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().

const char* TGo4ShapedCond::GetShapeName ( )
inline
Double_t TGo4ShapedCond::GetTheta ( )
inline

Definition at line 155 of file TGo4ShapedCond.h.

References fdTheta.

Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().

Bool_t TGo4ShapedCond::IsBox ( )
inline
Bool_t TGo4ShapedCond::IsCircle ( )
inline
Bool_t TGo4ShapedCond::IsEllipse ( )
inline
Bool_t TGo4ShapedCond::IsFreeShape ( )
inline
Bool_t TGo4ShapedCond::IsShapedType ( )
inline

Definition at line 173 of file TGo4ShapedCond.h.

void TGo4ShapedCond::PrintCondition ( Bool_t  points = kTRUE)
virtual

Printout values. If points is true, printout polygon points.

Reimplemented from TGo4PolyCond.

Definition at line 58 of file TGo4ShapedCond.cxx.

References fdCenterX, fdCenterY, fdRadius1, fdRadius2, fdTheta, fiResolution, fiShapeType, GetShapeName(), and TGo4PolyCond::PrintCondition().

void TGo4ShapedCond::ResetPolygon ( )
protected
void TGo4ShapedCond::SetBox ( Double_t  cx,
Double_t  cy,
Double_t  a1,
Double_t  a2,
Double_t  theta = 0 
)
void TGo4ShapedCond::SetBox ( )
inline

Definition at line 91 of file TGo4ShapedCond.h.

References fiShapeType, and Go4Cond_Shape_Box.

Referenced by SetBox(), and UpdateFromUrl().

void TGo4ShapedCond::SetCenter ( Double_t  x,
Double_t  y 
)
void TGo4ShapedCond::SetCircle ( Double_t  cx,
Double_t  cy,
Double_t  r,
Int_t  npoints = 0 
)
void TGo4ShapedCond::SetCircle ( )
inline

Definition at line 74 of file TGo4ShapedCond.h.

References fiShapeType, and Go4Cond_Shape_Circle.

Referenced by SetCircle(), and UpdateFromUrl().

void TGo4ShapedCond::SetEllipse ( Double_t  cx,
Double_t  cy,
Double_t  a1,
Double_t  a2,
Double_t  theta = 0,
Int_t  npoints = 0 
)
void TGo4ShapedCond::SetEllipse ( )
inline

Definition at line 82 of file TGo4ShapedCond.h.

References fiShapeType, and Go4Cond_Shape_Ellipse.

Referenced by SetEllipse(), and UpdateFromUrl().

void TGo4ShapedCond::SetFreeShape ( )
inline
void TGo4ShapedCond::SetRadius ( Double_t  a1,
Double_t  a2 
)

Definition at line 192 of file TGo4ShapedCond.cxx.

References fdRadius1, fdRadius2, and ResetPolygon().

void TGo4ShapedCond::SetResolution ( Int_t  npoints)
inline

Definition at line 178 of file TGo4ShapedCond.h.

References fiResolution.

void TGo4ShapedCond::SetTheta ( Double_t  angle)

Definition at line 199 of file TGo4ShapedCond.cxx.

References fdTheta, and ResetPolygon().

Referenced by TGo4ConditionEditor::EllipseTheta_valueChanged().

Bool_t TGo4ShapedCond::UpdateFrom ( TGo4Condition cond,
Bool_t  counts 
)
virtual

Copy values from cond to this. Get a clone cut from cond by CloneCut as new cut. If counts is true, copy counters too.

Reimplemented from TGo4PolyCond.

Definition at line 71 of file TGo4ShapedCond.cxx.

References fdCenterX, fdCenterY, fdRadius1, fdRadius2, fdTheta, fiResolution, fiShapeType, and TGo4PolyCond::UpdateFrom().

Bool_t TGo4ShapedCond::UpdateFromUrl ( const char *  rest_url_opt)
virtual

Member Data Documentation

Double_t TGo4ShapedCond::fdCenterX
private
Double_t TGo4ShapedCond::fdCenterY
private
Double_t TGo4ShapedCond::fdRadius1
private
Double_t TGo4ShapedCond::fdRadius2
private
Double_t TGo4ShapedCond::fdTheta
private
TString TGo4ShapedCond::fgxURL_A1 ="ellia1"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 194 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

TString TGo4ShapedCond::fgxURL_A2 ="ellia2"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 196 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

TString TGo4ShapedCond::fgxURL_CX ="ellicx"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 190 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

TString TGo4ShapedCond::fgxURL_CY ="ellicy"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 192 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

TString TGo4ShapedCond::fgxURL_RESOLUTION ="ellinpts"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 188 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

TString TGo4ShapedCond::fgxURL_SHAPE ="ellishape"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 200 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

TString TGo4ShapedCond::fgxURL_TH ="ellith"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 198 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

Int_t TGo4ShapedCond::fiResolution
private
Go4CondShape_t TGo4ShapedCond::fiShapeType
private

The documentation for this class was generated from the following files: