VConditionFormula


class description - source file - inheritance tree

class VConditionFormula : public TFormula

    private:
Int_t CheckStandardVar(const Text_t* name) public:
VConditionFormula VConditionFormula() VConditionFormula VConditionFormula(const char* name, const char* expression, VVirtualFrameInfoDB* db) VConditionFormula VConditionFormula(const VConditionFormula& cformula) virtual void ~VConditionFormula() static TClass* Class() virtual void Copy(TObject& obj) virtual Int_t DefinedVariable(TString& variable) virtual Double_t EvalInstance(VFrCondition** condarray, Int_t ncond) virtual Double_t EvalInstance(VConditionSet* condset) virtual Double_t EvalInstance(TObjArray* lcond) virtual Int_t GetConditionNumber(Int_t code) virtual Double_t GetLastResult() virtual Int_t GetNcodes() virtual Int_t GetNConditions() virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
VVirtualFrameInfoDB* mDataBase Pointer to parent database Short_t mCodes[100] List of condition numbers referenced in formula Int_t mNCodes Number of conditions referenced in formula Int_t mVarCodes[100] List of variable numbers corresponding to conditions Double_t mLastResult Result of the last evaluation

Class Description

                                                                      
 VConditionFormula                                                    
                                                                      
 The Frame conditions formula class                                   
                                                                      


void Copy(TObject &obj)
*-*-*-*-*-*-*-*-*-*- Copy this condition formula -*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===========================

Int_t DefinedVariable(TString &name)
*-*-*-*-*-*  Check if name is in the list of conditions      *-*-*-*-*
*-*        ==================================================

   This member function redefines the function in TFormula
   If a condition has a name corresponding to the argument name, then
   returns a new code.
   A VConditionFormula may contain more than one variable.

   name can be :
      - Condition_Name
      - Condition_Name.Variable_Name

   Variable name can be a standard name like "amplitude" or any of
   the var names defined for the condition. The standard names
   are defined in VConditionFormula::CheckStandardVar
   If variable name is omitted, it is assumed to be "amplitude"


Int_t CheckStandardVar(const Text_t* name)
 Checks that the name of the condition variable is a standard one.
 Accepts a name that is not complete, provided it is not ambiguous
 Returns a number indicating the variable :
   1 = "timeBefore",
   2 = "timeAfter",
   3 = "triggerStatus",
   4 = "amplitude",
   5 = "probability"
   6 = "boolean, trigger exists or not" used in DefinedVariable()
   0 = no match

Double_t EvalInstance(VFrCondition** condarray, Int_t ncond)
*-*-*-*-*-*-*-*-*-*-*Evaluate this condition formula*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===============================
 The formula applies to the conditions last loaded by the database


Double_t EvalInstance(VConditionSet* condset)
*-*-*-*-*-*-*-*-*-*-*Evaluate this condition formula*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===============================
 The formula applies to the current conditions in the condition set "condset"


Double_t EvalInstance(TObjArray* lcond)
*-*-*-*-*-*-*-*-*-*-*Evaluate this condition formula*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===============================
 It is supposed that the formula applies to the array of conditions "lcond"




Inline Functions


        VConditionFormula VConditionFormula()
        VConditionFormula VConditionFormula(const char* name, const char* expression, VVirtualFrameInfoDB* db)
        VConditionFormula VConditionFormula(const VConditionFormula& cformula)
                    Int_t GetConditionNumber(Int_t code)
                    Int_t GetNConditions()
                 Double_t GetLastResult()
                    Int_t GetNcodes()
                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
                     void ~VConditionFormula()
Last update: Tue Jul 1 17:27:36 2003


- ROOT page - VEGA page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to , or contact with any questions or problems regarding ROOT or VEGA.