VFrameChannelPlayer


class description - source file - inheritance tree

class VFrameChannelPlayer : public VVirtualFrameChannelPlayer


    public:
VFrameChannelPlayer VFrameChannelPlayer(const VFrameChannelPlayer&) VFrameChannelPlayer VFrameChannelPlayer() virtual void ~VFrameChannelPlayer() static TClass* Class() virtual TClass* IsA() const virtual Int_t MakeClass(const char* classname, const char* cond, Option_t* option) virtual Int_t Process(VSelector* selector, double starttime, double length, const char* cond, Option_t* option) virtual Int_t Process(const char* filename, double starttime, double length, const char* cond, Option_t* option) virtual void SetFrameChannel(VVirtualFrameChannel* fc) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void StartViewer(int mode = 0) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
VVirtualFrameChannel* mFrameChannel Pointer to current frame channel

Class Description

                                                                      
 VFrameChannelPlayer                                                  
                                                                      
                                                                      


Int_t MakeClass(const char *classname, const char* cond, Option_t *option)
*-*-*-*-*Generate skeleton analysis class for this FrameChannel*-*-*-*-*-*
*-*      ======================================================

   The following files are produced: classname.h and classname.C
   if classname is NULL, classname will be "MyFrameAnalysis".

   When the option "selector" is specified, the function generates the
   selector class described in VFrameChannel::MakeSelector.

   The generated code in classname.h includes the following:
      - Identification of the original frame channel and input conditions
      - Definition of analysis class (data and functions)
      - the following class functions:
         -constructor (connecting by default the frame channel)
         -Init(VFrameChannel *fc) to initialize a new VFrameChannel

   The generated code in classname.C includes only the main
   analysis function Loop.

   To use this function:
      - connect your frame channel (eg: fc = new VFrameChannel("infoDB.root");)
      - fc->MakeClass("MyClass");
    Where MyClass.h, MyClass.C the name of the files created by this function.
   In a vega session, you can do:
      Root > .L MyClass.C
      Root > MyClass t
      Root > t.Loop();       // Loop on the frames in the frame channel


Int_t Process(const char *filename, double starttime, double length, const char* cond,Option_t *option)
   The code in filename is loaded (interpreted or compiled , see below)
   filename must contain a valid class implementation derived from VSelector.
   where VSelector has the following member functions:

    void VSelector::Begin():       called everytime a loop on the frame channel starts,
                   a convenient place to create your histograms.
    Bool_t VSelector::ProcessCut():  called at the beginning of each frame processing to return a flag,
                   true if the entry must be analyzed.
    void VSelector::ProcessFrame(): called in the frame loop for all frames accepted
                   by ProcessCut.
    void VSelector::ProcessVect(): called in the loop for specific vectors requested
    void VSelector::Terminate():   called at the end of a loop on the frame channel,
                   a convenient place to draw/fit your histograms.

   if filename is of the form file.C, the file will be interpreted.
   if filename is of the form file.C++, the file file.C will be compiled
      and dynamically loaded. The corresponding binary file and shared library
      will be deleted at the end of the function.
   if filename is of the form file.C+, the file file.C will be compiled
      and dynamically loaded. At next call, if file.C is older than file.o
      and file.so, the file.C is not compiled, only file.so is loaded.

Int_t Process(VSelector *selector, double starttime, double length, const char* cond,Option_t *option)
 Process the data provided by the frame channel associated to this player
 using the provided selector

 The VSelector class has the following member functions

    void VSelector::Begin():       called everytime a loop on the frame channel starts,
                   a convenient place to create your histograms.
    Bool_t VSelector::ProcessCut():  called at the beginning of each frame processing to return a flag,
                   true if the entry must be analyzed.
    void VSelector::ProcessFrame(): called in the frame loop for all frames accepted
                   by ProcessCut.
    void VSelector::ProcessVect(): called in the loop for specific vectors requested
    void VSelector::Terminate():   called at the end of a loop on the frame channel,
                   a convenient place to draw/fit your histograms.

 If a condition is set via the cond string (string not empty), the processed
 frames or vectors will be only the ones fulfilling the condition. In this case,
 the step (via Set/GetProcessStep) information is not used
 For more information about conditions, see VConditionSet

void StartViewer(int mode)
 Start a viewer of the frame channel corresponding to this player



Inline Functions


        VFrameChannelPlayer VFrameChannelPlayer()
                       void SetFrameChannel(VVirtualFrameChannel* fc)
                    TClass* Class()
                    TClass* IsA() const
                       void ShowMembers(TMemberInspector& insp, char* parent)
                       void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)
        VFrameChannelPlayer VFrameChannelPlayer(const VFrameChannelPlayer&)
                       void ~VFrameChannelPlayer()
Last update: Tue Jul 1 17:28:29 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.