Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TProofChain.h
Go to the documentation of this file.
1// @(#)root/proof:$Id$
2// Author: G. Ganis Nov 2006
3
4/*************************************************************************
5 * Copyright (C) 1995-2005, 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_TProofChain
13#define ROOT_TProofChain
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TProofChain //
19// //
20// A TChain proxy on PROOF. //
21// Uses an internal TDSet to handle processing. //
22// //
23//////////////////////////////////////////////////////////////////////////
24
25#include "TChain.h"
26
27class TDSet;
28class TList;
29class TProof;
30
31class TProofChain : public TChain {
32
33public:
34 // TProofChain constants
35 enum { kOwnsChain = BIT(19) };
36
37private:
38 void AddAliases();
40
41protected:
42 TChain *fChain; // mother chain: needed for the browsing list
43 TDSet *fSet; // TDSet
44
45public:
47 TProofChain(TChain *chain, Bool_t gettreeheader);
48 TProofChain(TDSet *dset, Bool_t gettreeheader);
49 virtual ~TProofChain();
50
51 virtual void Browse(TBrowser *b);
52 Int_t Debug() const {return fDebug;}
53 virtual Long64_t Draw(const char *varexp, const TCut &selection, Option_t *option=""
55 virtual Long64_t Draw(const char *varexp, const char *selection, Option_t *option=""
56 ,Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0); // *MENU*
57 virtual void Draw(Option_t *opt) { Draw(opt, "", "", TTree::kMaxEntries, 0); }
58 virtual TBranch *FindBranch(const char *name);
59 virtual TLeaf *FindLeaf(const char *name);
60 virtual TBranch *GetBranch(const char *name);
61 virtual Bool_t GetBranchStatus(const char *branchname) const;
62 virtual Long64_t GetEntries() const;
63 virtual Long64_t GetEntries(const char *sel);
64 virtual TList *GetListOfClones() { return 0; }
66 virtual TObjArray *GetListOfLeaves() {return (fTree ? fTree->GetListOfLeaves() : (TObjArray *)0);}
67 virtual TList *GetListOfFriends() const {return 0;}
68 virtual TList *GetListOfAliases() const {return 0;}
69
70 // GetMakeClass is left non-virtual for efficiency reason.
71 // Making it virtual affects the performance of the I/O
72 Int_t GetMakeClass() const {return fMakeClass;}
73
75 virtual Long64_t GetReadEntry() const;
76 Bool_t HasTreeHeader() const { return (fTree ? kTRUE : kFALSE); }
77 virtual Long64_t Process(const char *filename, Option_t *option="",
78 Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0); // *MENU*
79 virtual void Progress(Long64_t total, Long64_t processed);
80 virtual Long64_t Process(TSelector *selector, Option_t *option="",
82 virtual void SetDebug(Int_t level=1, Long64_t min=0, Long64_t max=9999999); // *MENU*
83 virtual void SetEventList(TEventList *evlist) { fEventList = evlist; }
84 virtual void SetEntryList(TEntryList *enlist, const Option_t *) { fEntryList = enlist; }
85 virtual void SetName(const char *name); // *MENU*
86 virtual void ConnectProof();
87 virtual void ReleaseProof();
88
89 ClassDef(TProofChain,0) //TChain proxy for running chains on PROOF
90};
91
92#endif
#define b(i)
Definition RSha256.hxx:100
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
constexpr Bool_t kFALSE
Definition RtypesCore.h:101
long long Long64_t
Definition RtypesCore.h:80
constexpr Bool_t kTRUE
Definition RtypesCore.h:100
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:337
#define BIT(n)
Definition Rtypes.h:85
static unsigned int total
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
char name[80]
Definition TGX11.cxx:110
int nentries
A TTree is a list of TBranches.
Definition TBranch.h:89
Using a TBrowser one can browse all ROOT objects.
Definition TBrowser.h:37
A chain is a collection of files containing TTree objects.
Definition TChain.h:33
TTree * fTree
! Pointer to current tree (Note: We do not own this tree.)
Definition TChain.h:41
A specialized string object used for TTree selections.
Definition TCut.h:25
This class implements a data set to be used for PROOF processing.
Definition TDSet.h:153
A List of entry numbers in a TTree or TChain.
Definition TEntryList.h:26
A TEventList object is a list of selected events (entries) in a TTree.
Definition TEventList.h:31
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Definition TLeaf.h:57
A doubly linked list.
Definition TList.h:38
An array of TObjects.
Definition TObjArray.h:31
virtual TList * GetListOfFriends() const
Definition TProofChain.h:67
virtual void Progress(Long64_t total, Long64_t processed)
Changes the number of processed entries.
virtual void ConnectProof()
Connects the proof "Progress" signal.
TVirtualTreePlayer * GetPlayer()
Forwards the execution to the dummy tree header.
virtual void SetDebug(Int_t level=1, Long64_t min=0, Long64_t max=9999999)
See TTree::SetDebug.
virtual TList * GetListOfAliases() const
Definition TProofChain.h:68
Bool_t HasTreeHeader() const
Definition TProofChain.h:76
virtual void Browse(TBrowser *b)
Forwards the execution to the dummy tree header.
virtual TBranch * GetBranch(const char *name)
Forwards the execution to the dummy tree header.
virtual TObjArray * GetListOfLeaves()
Return a pointer to the list of leaves of the current tree.
Definition TProofChain.h:66
virtual void SetName(const char *name)
See TTree::GetName.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
Definition TProofChain.h:57
virtual Long64_t GetEntries() const
Returns the total number of entries in the TProofChain, which is the number of entries in the TDSet t...
Int_t Debug() const
Definition TProofChain.h:52
TDSet * fSet
Definition TProofChain.h:43
virtual Long64_t GetReadEntry() const
Returns the number of processed entries.
virtual TObjArray * GetListOfBranches()
Return a pointer to the list of branches of the current tree.
Definition TProofChain.h:65
TChain * fChain
Definition TProofChain.h:42
virtual Bool_t GetBranchStatus(const char *branchname) const
Forwards the execution to the dummy tree header.
TProofChain()
Crates a new PROOF chain proxy.
virtual TLeaf * FindLeaf(const char *name)
Forwards the execution to the dummy tree header.
virtual void SetEntryList(TEntryList *enlist, const Option_t *)
Definition TProofChain.h:84
virtual void ReleaseProof()
Releases PROOF. Disconnect the "progress" signal.
virtual TList * GetListOfClones()
Definition TProofChain.h:64
virtual Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0)
Forwards the execution to the TDSet.
Int_t GetMakeClass() const
Definition TProofChain.h:72
virtual ~TProofChain()
Destructor.
virtual void SetEventList(TEventList *evlist)
This function transfroms the given TEventList into a TEntryList.
Definition TProofChain.h:83
virtual TBranch * FindBranch(const char *name)
Forwards the execution to the dummy tree header.
void AddAliases()
Aliases are added to the input list.
void FillDrawAttributes(TProof *p)
Communicate the drawing attributes for this chain to the input list so that the draw selectors can us...
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition TProof.h:316
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition TSelector.h:31
TEventList * fEventList
! Pointer to event selection list (if one)
Definition TTree.h:122
virtual TObjArray * GetListOfLeaves()
Definition TTree.h:486
TEntryList * fEntryList
! Pointer to event selection list (if one)
Definition TTree.h:123
Int_t fDebug
! Debug level
Definition TTree.h:111
virtual TObjArray * GetListOfBranches()
Definition TTree.h:485
Int_t fMakeClass
! not zero when processing code generated by MakeClass
Definition TTree.h:115
static constexpr Long64_t kMaxEntries
Definition TTree.h:226
Abstract base class defining the interface for the plugins that implement Draw, Scan,...
th1 Draw()