VConditionSet


class description - source file - inheritance tree

class VConditionSet


    public:
VConditionSet VConditionSet(const VConditionSet&) VConditionSet VConditionSet(VVirtualFrameInfoDB* infodb, const char* condfs, const char* selfs = "0") VConditionSet VConditionSet(VVirtualFrameChannel* fc, const char* condfs, const char* selfs = "0") VConditionSet VConditionSet() virtual void ~VConditionSet() void Build(VVirtualFrameInfoDB* infodb, const char* condfs, const char* selfs) static TClass* Class() virtual Double_t Eval(const char* formula) virtual const char* GetCondFormula() const TObjArray* GetCurConditions() virtual VVirtualFrameInfoDB* GetInfoDB() virtual Double_t GetIntersectionEnd() virtual Double_t GetIntersectionStart() virtual Double_t GetIntersectSelectEnd() virtual Double_t GetIntersectSelectStart() virtual Double_t GetLastConditionResult() virtual Double_t GetLastSelectionResult() virtual const char* GetSelFormula() const virtual TClass* IsA() const virtual Int_t NearestGEFormSet(Double_t time) virtual Int_t NearestGESet(Double_t time) virtual Int_t NextFormSet() virtual Int_t NextSet() virtual void SetActive(Int_t conditionnumber) virtual void SetSelection(Int_t conditionnumber) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
VVirtualFrameInfoDB* mInfoDB Database associated to this condition set string mCondFormulaString Formula applied on the conditions string mSelFormulaString Selection formula TObjArray* mCurConditions Current set of conditions TArrayC* mActiveConditions Active/Inactive flag for this set TArrayC* mSelectionConditions Conditions activated for selection TArrayD* mCurConditionStart Start time of the current conditions TArrayD* mCurConditionEnd End time of the current conditions TArrayD* mFolConditionStart Start time of the conditions following the current ones VConditionFormula* mCondFormula Formula applied on the conditions VConditionFormula* mSelFormula Selection formula


See also

VConditionSetFMDB

Class Description

                                                                      
 VConditionSet                                                        
                                                                      
 Class for managing sets of conditions, i.e. conditions               
 that may have overlap(s) in time.                                    
 A condition set is used as a selection and a pointer to a particular 
 point in time where the selection expression is verified.            
 It is used in sequential access of frames or vectors satisfying some 
 conditions. Suppose for example that one wants to access all the     
 frames that have triggered the condition "Trig3.amplitude>3", where  
 Trig3 is a condition (or trigger) defined in the frames.             
 If vd is a pointer to a valid info database containing               
 the information, one would do :                                      
                                                                      
 vega[] co = new VConditionSet(vd,"Trig3.amp>3")                      
 vega[] fr = frchannel->GetNextFrame(co)                              
                                                                      
 that would return him the first frame satisfying the condition.      
 Issueing fr = frchannel->GetNextFrame(co) repeatedly will return     
 sequentialy all the frames that satisfy the condition.               
                                                                      


void Build(VVirtualFrameInfoDB* infodb, const char* condfs, const char* selfs)
   Condition set building method. Used by the constructors
   "infodb" is the parent infodatabase
   "condf"  is a condition expression used to determine the active conditions
   "selfs"  is a selection expression. Used in case one wants to follow a set
            of conditions, given another set is present.

Int_t NearestGESet(Double_t time)
  Jumps to the condition set that contains time "time" or the nearest
  next one. Loads the relevant conditions as current.
  returns 0 = error, 1 = OK

Int_t NearestGEFormSet(Double_t time)
  Jumps to the condition set that contains time "time" and satisfies recorded
 formula or the nearest next one. Loads the relevant conditions as current.
  returns 0 = error, 1 = OK

Int_t NextSet()
  Jumps to the next condition set in time (with respect to current)
  if a selection is present, will also require that the next set
  intersects with the conditions forming the selection.
  WARNING : if a selection is used, it may happen to return twice the same
  set for two consecutive calls to NextSet(), in case more than one
  selection is intersecting with that set.
  returns 0 = error, 1 = OK

Int_t NextFormSet()
  Jumps to the next condition set in time (with respect to current)
  that verifies the condition formula if present.
  if a selection is present, will also require that the set
  intersects with the conditions forming the selection.
  WARNING : if a selection is used, it may happen to return twice the same
  set for two consecutive calls to NextSet(), in case more than one
  selection is intersecting with that set.
  returns 0 = error, 1 = OK

Double_t GetIntersectionStart()
  Returns the start time of the overlap of this set of conditions

Double_t GetIntersectionEnd()
  Returns the end time of the overlap of this set of conditions

Double_t GetIntersectSelectStart()
  Returns the start time of the overlap of this set of conditions
 including the conditions used for selection

Double_t GetIntersectSelectEnd()
  Returns the end time of the overlap of this set of conditions
 including the conditions used for selection

Double_t GetLastConditionResult()
 Returns the result of the condition formula applied to the last condition set

Double_t GetLastSelectionResult()
 Returns the result of the selection formula applied to the last condition set

Double_t Eval(const char* formula)
 Evaluates the formula for the current condition set.
 Useful in case of interactive use.

void SetActive(Int_t conditionnumber)
 Sets the condition "conditionnumber" as active

void SetSelection(Int_t conditionnumber)
 Sets the condition "conditionnumber" as used for selection



Inline Functions


               VConditionSet VConditionSet()
               VConditionSet VConditionSet(VVirtualFrameInfoDB* infodb, const char* condfs, const char* selfs = "0")
               VConditionSet VConditionSet(VVirtualFrameChannel* fc, const char* condfs, const char* selfs = "0")
        VVirtualFrameInfoDB* GetInfoDB()
                  TObjArray* GetCurConditions()
                 const char* GetCondFormula() const
                 const char* GetSelFormula() const
                     TClass* Class()
                     TClass* IsA() const
                        void ShowMembers(TMemberInspector& insp, char* parent)
                        void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)
               VConditionSet VConditionSet(const VConditionSet&)
                        void ~VConditionSet()
Last update: Tue Jul 1 17:27:42 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.