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 ~TProofChain() override;
50
51 void Browse(TBrowser *b) override;
52 Int_t Debug() const {return fDebug;}
53 Long64_t Draw(const char *varexp, const TCut &selection, Option_t *option=""
54 ,Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0) override;
55 Long64_t Draw(const char *varexp, const char *selection, Option_t *option=""
56 ,Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0) override; // *MENU*
57 void Draw(Option_t *opt) override { Draw(opt, "", "", TTree::kMaxEntries, 0); }
58 TBranch *FindBranch(const char *name) override;
59 TLeaf *FindLeaf(const char *name) override;
60 TBranch *GetBranch(const char *name) override;
61 Bool_t GetBranchStatus(const char *branchname) const override;
62 Long64_t GetEntries() const override;
63 Long64_t GetEntries(const char *sel) override;
64 TList *GetListOfClones() override { return 0; }
66 TObjArray *GetListOfLeaves() override {return (fTree ? fTree->GetListOfLeaves() : (TObjArray *)0);}
67 TList *GetListOfFriends() const override {return 0;}
68 TList *GetListOfAliases() const override {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 Long64_t GetReadEntry() const override;
76 Bool_t HasTreeHeader() const { return (fTree ? kTRUE : kFALSE); }
77 Long64_t Process(const char *filename, Option_t *option="",
78 Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0) override; // *MENU*
79 virtual void Progress(Long64_t total, Long64_t processed);
81 Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0) override;
82 void SetDebug(Int_t level=1, Long64_t min=0, Long64_t max=9999999) override; // *MENU*
83 void SetEventList(TEventList *evlist) override { fEventList = evlist; }
84 void SetEntryList(TEntryList *enlist, const Option_t *) override { fEntryList = enlist; }
85 void SetName(const char *name) override; // *MENU*
86 virtual void ConnectProof();
87 virtual void ReleaseProof();
88
89 ClassDefOverride(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 BIT(n)
Definition Rtypes.h:85
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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:93
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
<div class="legacybox"><h2>Legacy Code</h2> TEventList is a legacy interface: there will be no bug fi...
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 void Progress(Long64_t total, Long64_t processed)
Changes the number of processed entries.
Bool_t GetBranchStatus(const char *branchname) const override
Forwards the execution to the dummy tree header.
virtual void ConnectProof()
Connects the proof "Progress" signal.
TVirtualTreePlayer * GetPlayer()
Forwards the execution to the dummy tree header.
Bool_t HasTreeHeader() const
Definition TProofChain.h:76
TLeaf * FindLeaf(const char *name) override
Forwards the execution to the dummy tree header.
void SetEventList(TEventList *evlist) override
This function transfroms the given TEventList into a TEntryList.
Definition TProofChain.h:83
TBranch * FindBranch(const char *name) override
Forwards the execution to the dummy tree header.
TBranch * GetBranch(const char *name) override
Forwards the execution to the dummy tree header.
Int_t Debug() const
Definition TProofChain.h:52
void Browse(TBrowser *b) override
Forwards the execution to the dummy tree header.
TList * GetListOfAliases() const override
Definition TProofChain.h:68
TDSet * fSet
Definition TProofChain.h:43
TList * GetListOfClones() override
Definition TProofChain.h:64
TChain * fChain
Definition TProofChain.h:42
void SetDebug(Int_t level=1, Long64_t min=0, Long64_t max=9999999) override
See TTree::SetDebug.
Long64_t GetEntries() const override
Returns the total number of entries in the TProofChain, which is the number of entries in the TDSet t...
void Draw(Option_t *opt) override
Default Draw method for all objects.
Definition TProofChain.h:57
TObjArray * GetListOfLeaves() override
Return a pointer to the list of leaves of the current tree.
Definition TProofChain.h:66
TProofChain()
Crates a new PROOF chain proxy.
TList * GetListOfFriends() const override
Definition TProofChain.h:67
virtual void ReleaseProof()
Releases PROOF. Disconnect the "progress" signal.
Long64_t GetReadEntry() const override
Returns the number of processed entries.
Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0) override
Forwards the execution to the TDSet.
~TProofChain() override
Destructor.
TObjArray * GetListOfBranches() override
Return a pointer to the list of branches of the current tree.
Definition TProofChain.h:65
Int_t GetMakeClass() const
Definition TProofChain.h:72
void AddAliases()
Aliases are added to the input list.
void SetName(const char *name) override
See TTree::GetName.
void SetEntryList(TEntryList *enlist, const Option_t *) override
Definition TProofChain.h:84
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:125
virtual TObjArray * GetListOfLeaves()
Definition TTree.h:489
TEntryList * fEntryList
! Pointer to event selection list (if one)
Definition TTree.h:126
Int_t fDebug
! Debug level
Definition TTree.h:111
virtual TObjArray * GetListOfBranches()
Definition TTree.h:488
Int_t fMakeClass
! not zero when processing code generated by MakeClass
Definition TTree.h:115
static constexpr Long64_t kMaxEntries
Definition TTree.h:229
Abstract base class defining the interface for the plugins that implement Draw, Scan,...
th1 Draw()