Logo ROOT   6.10/09
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 #if !defined(ROOT_TSelectorCint_SRC_FILE) && !defined(G__DICTIONARY) && !defined(__ROOTCLING__)
25 #warning "TSelectorCint.h is deprecated. It will be removed in ROOT v6.12. Please use #include \"TSelector.h\", instead."
26 #endif
27 
28 #include "TSelector.h"
29 #include "TInterpreter.h"
30 
31 class TSelectorCint : public TSelector {
32 
33 private:
34  void SetFuncProto(CallFunc_t *cf, ClassInfo_t *cl, const char* fname,
35  const char* argtype, Bool_t required = kTRUE);
36 
37 protected:
38  ClassInfo_t *fClass; //!
39  CallFunc_t *fFuncVersion; //!
40  CallFunc_t *fFuncInit; //!
41  CallFunc_t *fFuncBegin; //!
42  CallFunc_t *fFuncSlBegin; //!
43  CallFunc_t *fFuncNotif; //!
44  CallFunc_t *fFuncSlTerm; //!
45  CallFunc_t *fFuncTerm; //!
46  CallFunc_t *fFuncCut; //!
47  CallFunc_t *fFuncFill; //!
48  CallFunc_t *fFuncProc; //!
49  CallFunc_t *fFuncOption; //!
50  CallFunc_t *fFuncObj; //!
51  CallFunc_t *fFuncInp; //!
52  CallFunc_t *fFuncOut; //!
53  CallFunc_t *fFuncAbort; //!
54  CallFunc_t *fFuncGetAbort; //!
55  CallFunc_t *fFuncResetAbort; //!
56  CallFunc_t *fFuncGetStat; //!
57  TSelector *fIntSelector; ///< Pointer to interpreted selector (if interpreted)
58  Bool_t fIsOwner; ///< True if fIntSelector should be deleted when the this object is deleted.
59 
60 public:
61  TSelectorCint();
62  virtual ~TSelectorCint();
63  virtual void Build(TSelector *iselector, ClassInfo_t *cl, Bool_t isowner = kTRUE);
64  virtual int Version() const;
65  virtual void Init(TTree *);
66  virtual void Begin(TTree *tree);
67  virtual void SlaveBegin(TTree *);
68  virtual Bool_t Notify();
69  virtual Bool_t ProcessCut(Long64_t entry);
70  virtual void ProcessFill(Long64_t entry);
71  virtual Bool_t Process(Long64_t entry);
72  virtual void SetOption(const char *option);
73  virtual void SetObject(TObject *obj);
74  virtual void SetInputList(TList *input);
75  virtual TList *GetOutputList() const;
76  virtual void SlaveTerminate();
77  virtual void Terminate();
78  virtual void Abort(const char *why, EAbort what = kAbortProcess);
79  virtual EAbort GetAbort() const;
80  virtual void ResetAbort();
81  virtual Long64_t GetStatus() const;
82  virtual TClass *GetInterpretedClass() const;
83  virtual TSelector *GetInterpretedSelector() const { return fIntSelector; }
84 
85  ClassDef(TSelectorCint,0) //A utility class for tree and object processing (interpreted version)
86 };
87 
88 #endif
89 
CallFunc_t * fFuncBegin
Definition: TSelectorCint.h:41
CallFunc_t * fFuncOption
Definition: TSelectorCint.h:49
CallFunc_t * fFuncVersion
Definition: TSelectorCint.h:39
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:83
virtual void ProcessFill(Long64_t entry)
Invoke the ProcessFill function via the interpreter.
CallFunc_t * fFuncFill
Definition: TSelectorCint.h:47
bool Bool_t
Definition: RtypesCore.h:59
TSelector * fIntSelector
Pointer to interpreted selector (if interpreted)
Definition: TSelectorCint.h:57
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:43
ClassInfo_t * fClass
Definition: TSelectorCint.h:38
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:297
CallFunc_t * fFuncSlTerm
Definition: TSelectorCint.h:44
virtual void Abort(const char *why, EAbort what=kAbortProcess)
Invoke the GetAbort function via the interpreter.
CallFunc_t * fFuncTerm
Definition: TSelectorCint.h:45
CallFunc_t * fFuncCut
Definition: TSelectorCint.h:46
CallFunc_t * fFuncInp
Definition: TSelectorCint.h:51
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:43
virtual void ResetAbort()
Invoke the GetAbort function via the interpreter.
CallFunc_t * fFuncSlBegin
Definition: TSelectorCint.h:42
CallFunc_t * fFuncResetAbort
Definition: TSelectorCint.h:55
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:71
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:56
CallFunc_t * fFuncInit
Definition: TSelectorCint.h:40
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:53
CallFunc_t * fFuncObj
Definition: TSelectorCint.h:50
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:52
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:54
Definition: tree.py:1
A TTree object has a header with a name and a title.
Definition: TTree.h:78
This class is a special version of TSelector for user interpreted classes.
Definition: TSelectorCint.h:31
Bool_t fIsOwner
True if fIntSelector should be deleted when the this object is deleted.
Definition: TSelectorCint.h:58
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:33
const Bool_t kTRUE
Definition: RtypesCore.h:91
CallFunc_t * fFuncProc
Definition: TSelectorCint.h:48
virtual ~TSelectorCint()
Destructor for a Selector.