library: libProof
#include "TDSet.h"


class description - header file - source file
viewCVS header - viewCVS source

class TDSet: public TNamed

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
TDSet(const TChain& chain, Bool_t withfriends = kTRUE)
TDSet(const char* name, const char* objname = "*", const char* dir = "/", const char* type = "0")
voidTObject::AbstractMethod(const char* method) const
virtual Bool_tAdd(TDSet* set)
virtual Bool_tAdd(TList* fileinfo)
virtual Bool_tAdd(const char* file, const char* objname = "0", const char* dir = "0", Long64_t first = 0, Long64_t num = -1, const char* msd = "0")
virtual voidAddFriend(TDSet* friendset, const char* alias)
voidAddInput(TObject* obj)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
TDSetElement*Current() const
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidDraw(Option_t* opt)
virtual Long64_tDraw(const char* varexp, const char* selection, Option_t* option = "", Long64_t nentries = -1, Long64_t firstentry = 0)
virtual Long64_tDraw(const char* varexp, const TCut& selection, Option_t* option = "", Long64_t nentries = -1, Long64_t firstentry = 0)
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
Bool_tElementsValid() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
Int_tExportFileList(const char* filepath, Option_t* opt = "")
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
const char*GetDirectory() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
static Long64_tGetEntries(Bool_t isTree, const char* filename, const char* path, const char* objname)
TEventList*GetEventList() const
virtual const char*TObject::GetIconName() const
TList*GetListOfElements() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
const char*GetObjName() const
virtual Option_t*TObject::GetOption() const
TObject*GetOutput(const char* name)
virtual const char*TNamed::GetTitle() const
virtual TTree*GetTreeHeader(TProof* proof)
const char*GetType() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tIsTree() const
Bool_tIsValid() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual TDSetElement*Next(Long64_t totalEntries = -1)
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Long64_tProcess(const char* selector, Option_t* option = "", Long64_t nentries = -1, Long64_t firstentry = 0, TEventList* evl = 0)
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
Int_tRemove(TDSetElement* elem)
virtual voidReset()
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetDirectory(const char* dir)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetEventList(TEventList* evl)
virtual voidTNamed::SetName(const char* name)
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetObjName(const char* objname)
virtual voidTNamed::SetTitle(const char* title = "")
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStartViewer()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
voidValidate(TDSet* dset)
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TDSet(const TDSet&)
voidoperator=(const TDSet&)

Data Members

enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
TDSetElement*fCurrent! current element
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
TStringfDirname of the directory
TStringfTypetype of objects (e.g. TTree);
TStringfObjNamename of objects to be analyzed (e.g. TTree name)
TList*fElements-> list of TDSetElements
Bool_tfIsTreetrue if type is a TTree (or TTree derived)
TIter*fIterator! iterator on fElements
TEventList*fEventList! event list for processing
TProofChain*fProofChain! for browsing purposes

Class Description

 This class implements a data set to be used for PROOF processing.    
 The TDSet defines the class of which objects will be processed,      
 the directory in the file where the objects of that type can be      
 found and the list of files to be processed. The files can be        
 specified as logical file names (LFN's) or as physical file names    
 (PFN's). In case of LFN's the resolution to PFN's will be done       
 according to the currently active GRID interface.                    
   TDSet treeset("TTree", "AOD");                                     
   TDSet objset("MyEvent", "*", "/events");                           
 Validity of file names will only be checked at processing time       
 (typically on the PROOF master server), not at creation time.        

TDSetElement * Next(Long64_t /*totalEntries*/)
 Returns next TDSetElement.
 Default ctor.
TDSet(const char *name, const char *objname, const char *dir, const char *type)
 Create a named TDSet object. The "type" defines the class of which objects
 will be processed (default 'TTree'). The optional "objname" argument
 specifies the name of the objects of the specified class.
 If the "objname" is not given the behaviour depends on the 'type':
 for 'TTree' the first TTree is analyzed; for other types, all objects of
 the class found in the specified directory are processed.
 The "dir" argument specifies in which directory the objects are
 to be found, the top level directory ("/") is the default.
 Directories can be specified using wildcards, e.g. "*" or "/*"
 means to look in all top level directories, "/dir/*" in all
 directories under "/dir", and "/*/*" to look in all directories
 two levels deep.
 For backward compatibility the type can also be passed via 'name',
 in which case 'type' is ignored.
TDSet(const TChain &chain, Bool_t withfriends)
 Create a named TDSet object from existing TChain 'chain'.
 If 'eithfriends' is kTRUE add allso friends.
 This constructor substitutes for the static methods TChain::MakeTDSet
 allowing to keep all PROOF references in 'proof'.
Long64_t Process(const char *selector, Option_t *option, Long64_t nentries, Long64_t first, TEventList *evl)
 Process TDSet on currently active PROOF session.
 The return value is -1 in case of error and TSelector::GetStatus() in
 in case of success.
void AddInput(TObject *obj)
 Add objects that might be needed during the processing of
 the selector (see Process()).
void ClearInput()
 Clear input object list.
TObject * GetOutput(const char *name)
 Get specified object that has been produced during the processing
 (see Process()).
TList * GetOutputList()
 Get list with all object created during processing (see Process()).
void Print(const Option_t *opt)
 Print TDSet basic or full data. When option="a" print full data.
void SetObjName(const char *objname)
 Set/change object name.
void SetDirectory(const char *dir)
 Set/change directory.
Bool_t Add(const char *file, const char *objname, const char *dir, Long64_t first, Long64_t num, const char *msd)
 Add file to list of files to be analyzed. Optionally with the
 objname and dir arguments the default, TDSet wide, objname and
 dir can be overridden.
Bool_t Add(TDSet *dset)
 Add specified data set to the this set.
Bool_t Add(TList *fileinfo)
 Add files passed as list of TfileInfo objects
Int_t ExportFileList(const char *fpath, Option_t *opt)
 Export TDSetElements files as list of TFileInfo objects in file
 'fpath'. If the file exists already the action fails, unless
 'opt == "F"'.
 Return 0 on success, -1 otherwise
void AddFriend(TDSet *friendset, const char* alias)
 Add friend dataset to this set. Only possible if the TDSet type is
 a TTree or derived class. The friendset will be owned by this class
 and deleted in its destructor.
void Reset()
 Reset or initialize access to the elements.
Long64_t GetEntries(Bool_t isTree, const char *filename, const char *path, const char *objname)
 Returns number of entries in tree or objects in file. Returns -1 in
 case of error.
Long64_t Draw(const char *varexp, const TCut &selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
 Draw expression varexp for specified entries.
 Returns -1 in case of error or number of selected events in case of success.
 This function accepts a TCut objects as argument.
 Use the operator+ to concatenate cuts.
Long64_t Draw(const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
 Draw expression varexp for specified entries.
 Returns -1 in case of error or number of selected events in case of success.
 For more see TTree::Draw().
void StartViewer()
 Start the TTreeViewer on this TTree.
TTree* GetTreeHeader(TProof* proof)
 Returns a tree header containing the branches' structure of the dataset.
Bool_t ElementsValid()
 Check if all elemnts are valid.
Int_t Remove(TDSetElement *elem)
 Remove TDSetElement 'elem' from the list.
 Return 0 on success, -1 if the element is not in the list
void Validate()
 Validate the TDSet by opening files.
void Lookup()
 Resolve the end-point URL for the current elements of this data set
void SetLookedUp()
 Flag all the elements as looked-up, so to avoid opening the files
 if the functionality is not supported
void Validate(TDSet* dset)
 Validate the TDSet against another TDSet.
 Only validates elements in common from input TDSet.
const char * GetObjName()
const char * GetDirectory()
TEventList * GetEventList()
{ return fEventList; }
void SetEventList(TEventList *aList)
{ fEventList = aList; }
TDSet(const TDSet &)
void operator=(const TDSet &)
Long64_t Draw(const char *varexp, const char *selection, Option_t *option = "", Long64_t nentries = -1, Long64_t firstentry = 0)
Bool_t IsTree()
{ return fIsTree; }
Bool_t IsValid()
{ return !fType.IsNull(); }
const char * GetType()
{ return fType; }
TList * GetListOfElements()
{ return fElements; }
TDSetElement * Current()
{ return fCurrent; }

Author: Fons Rademakers 11/01/02
Last update: root/proof:$Name: $:$Id: TDSet.cxx,v 1.2 2006/11/28 12:10:52 rdm Exp $
Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *

ROOT page - Class index - Class Hierarchy - 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.