TSelector


class description - source file - inheritance tree

class TSelector : public TNamed


    public:
TSelector TSelector() TSelector TSelector(const char* name, const char* title) TSelector TSelector(TSelector&) virtual void ~TSelector() virtual void BeginFile() TClass* Class() virtual void EndFile() virtual void Execute(TTree* tree, Int_t event) virtual void Execute(const char* method, const char* params) virtual void Execute(TMethod* method, TObjArray* params) virtual void Finish(Option_t* option) virtual void Init(TTree* tree, Option_t* option) virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Start(Option_t* option) virtual void Streamer(TBuffer& b)

Data Members

protected:
TTree* fTree Pointer to current TTree

Class Description

                                                                      
 A TSelector object is used by the TTree::Draw, TTree::Scan,          
  TTree::Loop to navigate in a TTree and make selections.             
                                                                      
  The following members functions are called by the TTree functions.  
    Init:      to initialize the selector                             
    Start:     called everytime a loop on the tree starts.            
               a convenient place to create your histograms.          
    Finish:    called at the end of a loop on a TTree.                
               a convenient place to draw/fit your histograms.        
    BeginFile: called when a TChain is processed at the begining of   
               of a new file.                                         
    EndFile:   called when a TChain is processed at the end of a file.//                                         
    Execute:   called for each selected entry.                        
                                                                      


TSelector(): TNamed()
 Default constructor for a Selector.

TSelector(const char *name, const char *title) :TNamed(name,title)
 Create a Selector.

~TSelector()
 Destructor for a Selector.

void BeginFile()
 Called by TTree::Loop when a new file begins in a TChain.

void EndFile()
 Called by TTree::Loop when a file ends in a TChain.

void Execute(TTree *tree, Int_t entry)
 Process entry number entry.

void Finish(Option_t *)
 Called at the end of TTree::Loop.

void Init(TTree *tree, Option_t *)
 Called to initialize/reinitialize the selector.

void Start(Option_t *)
 Called at the begining of TTree::Loop.



Inline Functions


               void Execute(const char* method, const char* params)
               void Execute(TMethod* method, TObjArray* params)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
          TSelector TSelector(TSelector&)


Author: Rene Brun 05/02/97
Last update: 2.23/12 26/01/2000 09.54.23 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT 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 ROOT support, or contact the developers with any questions or problems regarding ROOT.