Logo ROOT   6.08/07
Reference Guide
TSelectorCint.h
Go to the documentation of this file.
1 // @(#)root/tree:$Id$
2 // Author: Rene Brun 05/02/97
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TSelectorCint
13 #define ROOT_TSelectorCint
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TSelectorCint //
19 // //
20 // A utility class for Trees selections. (via interpreter) //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 
25 #ifndef ROOT_TSelector
26 #include "TSelector.h"
27 #endif
28 #ifndef ROOT_TInterpreter
29 #include "TInterpreter.h"
30 #endif
31 
32 class TSelectorCint : public TSelector {
33 
34 private:
35  void SetFuncProto(CallFunc_t *cf, ClassInfo_t *cl, const char* fname,
36  const char* argtype, Bool_t required = kTRUE);
37 
38 protected:
39  ClassInfo_t *fClass; //!
40  CallFunc_t *fFuncVersion; //!
41  CallFunc_t *fFuncInit; //!
42  CallFunc_t *fFuncBegin; //!
43  CallFunc_t *fFuncSlBegin; //!
44  CallFunc_t *fFuncNotif; //!
45  CallFunc_t *fFuncSlTerm; //!
46  CallFunc_t *fFuncTerm; //!
47  CallFunc_t *fFuncCut; //!
48  CallFunc_t *fFuncFill; //!
49  CallFunc_t *fFuncProc; //!
50  CallFunc_t *fFuncOption; //!
51  CallFunc_t *fFuncObj; //!
52  CallFunc_t *fFuncInp; //!
53  CallFunc_t *fFuncOut; //!
54  CallFunc_t *fFuncAbort; //!
55  CallFunc_t *fFuncGetAbort; //!
56  CallFunc_t *fFuncResetAbort; //!
57  CallFunc_t *fFuncGetStat; //!
58  TSelector *fIntSelector; ///< Pointer to interpreted selector (if interpreted)
59  Bool_t fIsOwner; ///< True if fIntSelector should be deleted when the this object is deleted.
60 
61 public:
62  TSelectorCint();
63  virtual ~TSelectorCint();
64  virtual void Build(TSelector *iselector, ClassInfo_t *cl, Bool_t isowner = kTRUE);
65  virtual int Version() const;
66  virtual void Init(TTree *);
67  virtual void Begin(TTree *tree);
68  virtual void SlaveBegin(TTree *);
69  virtual Bool_t Notify();
70  virtual Bool_t ProcessCut(Long64_t entry);
71  virtual void ProcessFill(Long64_t entry);
72  virtual Bool_t Process(Long64_t entry);
73  virtual void SetOption(const char *option);
74  virtual void SetObject(TObject *obj);
75  virtual void SetInputList(TList *input);
76  virtual TList *GetOutputList() const;
77  virtual void SlaveTerminate();
78  virtual void Terminate();
79  virtual void Abort(const char *why, EAbort what = kAbortProcess);
80  virtual EAbort GetAbort() const;
81  virtual void ResetAbort();
82  virtual Long64_t GetStatus() const;
83  virtual TClass *GetInterpretedClass() const;
84  virtual TSelector *GetInterpretedSelector() const { return fIntSelector; }
85 
86  ClassDef(TSelectorCint,0) //A utility class for tree and object processing (interpreted version)
87 };
88 
89 #endif
90 
CallFunc_t * fFuncBegin
Definition: TSelectorCint.h:42
CallFunc_t * fFuncOption
Definition: TSelectorCint.h:50
CallFunc_t * fFuncVersion
Definition: TSelectorCint.h:40
long long Long64_t
Definition: RtypesCore.h:69
virtual int Version() const
Invoke the Version function via the interpreter.
virtual TClass * GetInterpretedClass() const
Retrieve the TClass object for the interpreted class.
virtual TSelector * GetInterpretedSelector() const
Definition: TSelectorCint.h:84
virtual void ProcessFill(Long64_t entry)
Invoke the ProcessFill function via the interpreter.
CallFunc_t * fFuncFill
Definition: TSelectorCint.h:48
bool Bool_t
Definition: RtypesCore.h:59
TSelector * fIntSelector
Pointer to interpreted selector (if interpreted)
Definition: TSelectorCint.h:58
virtual void Terminate()
Invoke the Terminate function via the interpreter.
virtual void SetObject(TObject *obj)
Set the current object.
CallFunc_t * fFuncNotif
Definition: TSelectorCint.h:44
ClassInfo_t * fClass
Definition: TSelectorCint.h:39
virtual void SetInputList(TList *input)
Set the selector list of input objects.
virtual EAbort GetAbort() const
Invoke the GetAbort function via the interpreter.
#define ClassDef(name, id)
Definition: Rtypes.h:254
CallFunc_t * fFuncSlTerm
Definition: TSelectorCint.h:45
virtual void Abort(const char *why, EAbort what=kAbortProcess)
Invoke the GetAbort function via the interpreter.
CallFunc_t * fFuncTerm
Definition: TSelectorCint.h:46
CallFunc_t * fFuncCut
Definition: TSelectorCint.h:47
CallFunc_t * fFuncInp
Definition: TSelectorCint.h:52
virtual void SetOption(const char *option)
Set the selector option.
virtual void Init(TTree *)
Invoke the Init function via the interpreter.
virtual Bool_t Process(Long64_t entry)
Invoke the ProcessCut function via the interpreter.
A doubly linked list.
Definition: TList.h:47
static const char * what
Definition: stlLoader.cc:6
virtual void ResetAbort()
Invoke the GetAbort function via the interpreter.
CallFunc_t * fFuncSlBegin
Definition: TSelectorCint.h:43
CallFunc_t * fFuncResetAbort
Definition: TSelectorCint.h:56
void SetFuncProto(CallFunc_t *cf, ClassInfo_t *cl, const char *fname, const char *argtype, Bool_t required=kTRUE)
Set the function prototype.
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:81
virtual void Build(TSelector *iselector, ClassInfo_t *cl, Bool_t isowner=kTRUE)
Initialize the CallFunc objects when selector is interpreted.
CallFunc_t * fFuncGetStat
Definition: TSelectorCint.h:57
CallFunc_t * fFuncInit
Definition: TSelectorCint.h:41
virtual TList * GetOutputList() const
Return the list of output object.
virtual Long64_t GetStatus() const
Invoke the GetStatus function via the interpreter.
CallFunc_t * fFuncAbort
Definition: TSelectorCint.h:54
CallFunc_t * fFuncObj
Definition: TSelectorCint.h:51
virtual Bool_t Notify()
Invoke the Notify function via the interpreter.
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void SlaveTerminate()
Invoke the SlaveTerminate function via the interpreter if available.
CallFunc_t * fFuncOut
Definition: TSelectorCint.h:53
virtual void SlaveBegin(TTree *)
Invoke the SlaveBegin function via the interpreter if available.
virtual Bool_t ProcessCut(Long64_t entry)
Invoke the ProcessCut function via the interpreter.
virtual void Begin(TTree *tree)
Invoke the Begin function via the interpreter.
CallFunc_t * fFuncGetAbort
Definition: TSelectorCint.h:55
Definition: tree.py:1
A TTree object has a header with a name and a title.
Definition: TTree.h:98
This class is a special version of TSelector for user interpreted classes.
Definition: TSelectorCint.h:32
Bool_t fIsOwner
True if fIntSelector should be deleted when the this object is deleted.
Definition: TSelectorCint.h:59
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:39
const Bool_t kTRUE
Definition: Rtypes.h:91
CallFunc_t * fFuncProc
Definition: TSelectorCint.h:49
virtual ~TSelectorCint()
Destructor for a Selector.