104 const char *msd = 0,
const char *dataset = 0);
188 TDSet(
const char *
name,
const char *objname =
"*",
189 const char *dir =
"/",
const char *
type = 0);
193 virtual Bool_t Add(
const char *
file,
const char *objname = 0,
195 Long64_t num = -1,
const char *msd = 0);
210 virtual Long64_t Draw(
const char *varexp,
const char *selection,
236 virtual void Reset();
241 const char *path,
TString &objname);
#define ClassDef(name, id)
A chain is a collection of files containing TTree objects.
Collection abstract base class.
A specialized string object used for TTree selections.
Manages an element of a TDSet.
TFileInfo * GetFileInfo(const char *type="TTree")
Return the content of this element in the form of a TFileInfo.
Bool_t IsSortable() const
void Print(Option_t *options="") const
Print a TDSetElement. When option="a" print full data.
void SetEntries(Long64_t ent)
Long64_t GetEntries(Bool_t istree=kTRUE, Bool_t openfile=kTRUE)
Returns number of entries in tree or objects in file.
const char * GetObjName() const
TDSetElement & operator=(const TDSetElement &)
void Validate(Bool_t isTree)
Validate by opening the file.
Bool_t HasBeenLookedUp() const
std::list< std::pair< TDSetElement *, TString > > FriendsList_t
void SetMaxProcTime(Float_t mpt)
Float_t GetMaxProcTime() const
virtual ~TDSetElement()
Clean up the element.
TObject * GetEntryList() const
virtual TList * GetListOfFriends() const
void SetFirst(Long64_t first)
const char * GetDataSet() const
void Reset()
Reset TDSet element.
void SetTDSetOffset(Long64_t offset)
void SetNum(Long64_t num)
const char * GetDirectory() const
Return directory where to look for object.
virtual void DeleteFriends()
Deletes the list of friends and all the friends on the list.
TList * GetListOfAssocObjs() const
void SetEntryList(TObject *aList, Long64_t first=-1, Long64_t num=-1)
Set entry (or event) list for this element.
void AddAssocObj(TObject *assocobj)
Add an associated object to the list.
Long64_t GetTDSetOffset() const
void SetDataSet(const char *dataset)
Int_t Lookup(Bool_t force=kFALSE)
Resolve end-point URL for this element Return 0 on success and -1 otherwise.
virtual void AddFriend(TDSetElement *friendElement, const char *alias)
Add friend TDSetElement to this set. The friend element will be copied to this object.
const char * GetMsd() const
const char * GetFileName() const
TDSetElement()
Default constructor.
TObject * GetAssocObj(Long64_t i, Bool_t isentry=kFALSE)
Get i-th associated object.
Int_t Compare(const TObject *obj) const
Compare elements by filename (and the fFirst).
Long64_t GetFirst() const
Int_t MergeElement(TDSetElement *elem)
Check if 'elem' is overlapping or subsequent and, if the case, return a merged element.
This class implements a data set to be used for PROOF processing.
void SplitEntryList()
for browsing purposes
TIter * fSrvMapsIter
list for mapping server coordinates for files
virtual TDSetElement * Next(Long64_t totalEntries=-1)
Returns next TDSetElement.
virtual void StartViewer()
Start the TTreeViewer on this TTree.
virtual void SetEntryList(TObject *aList)
Set entry (or event) list for this data set.
Int_t Remove(TDSetElement *elem, Bool_t deleteElem=kTRUE)
Remove TDSetElement 'elem' from the list.
void AddInput(TObject *obj)
Add objects that might be needed during the processing of the selector (see Process()).
TProofChain * fProofChain
entry (or event) list for processing
void operator=(const TDSet &)
void SetLookedUp()
Flag all the elements as looked-up, so to avoid opening the files if the functionality is not support...
virtual Bool_t Add(const char *file, const char *objname=0, const char *dir=0, Long64_t first=0, Long64_t num=-1, const char *msd=0)
Add file to list of files to be analyzed.
virtual void Reset()
Reset or initialize access to the elements.
Bool_t ElementsValid()
Check if all elements are valid.
TList * fSrvMaps
current element
static Long64_t GetEntries(Bool_t isTree, const char *filename, const char *path, TString &objname)
Returns number of entries in tree or objects in file.
Int_t GetNumOfFiles()
Return the number of files in the dataset.
void Lookup(Bool_t removeMissing=kFALSE, TList **missingFiles=0)
Resolve the end-point URL for the current elements of this data set If the removeMissing option is se...
void Print(Option_t *option="") const
Print TDSet basic or full data. When option="a" print full data.
Int_t ExportFileList(const char *filepath, Option_t *opt="")
Export TDSetElements files as list of TFileInfo objects in file 'fpath'.
virtual TTree * GetTreeHeader(TProof *proof)
Returns a tree header containing the branches' structure of the dataset.
virtual void AddFriend(TDSet *friendset, const char *alias)
Add friend dataset to this set.
virtual Long64_t Draw(const char *varexp, const char *selection, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Draw expression varexp for specified entries.
TDSetElement * Current() const
void SetSrvMaps(TList *srvmaps=0)
Set (or unset) the list for mapping servers coordinate for files.
TObject * GetOutput(const char *name)
Get specified object that has been produced during the processing (see Process()).
TDSetElement * fCurrent
iterator on fElements
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
TObject * GetEntryList() const
void Validate()
Validate the TDSet by opening files.
const char * GetType() const
TList * GetOutputList()
Get list with all object created during processing (see Process()).
void SetWriteV3(Bool_t on=kTRUE)
Set/Reset the 'OldStreamer' bit in this instance and its elements.
TList * GetListOfElements() const
void SetDirectory(const char *dir)
Set/change directory.
void SetObjName(const char *objname)
Set/change object name.
const char * GetDirectory() const
virtual Long64_t Process(TSelector *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0, TObject *enl=0)
Process TDSet on currently active PROOF session.
TDSet()
iterator on fSrvMaps
const char * GetObjName() const
void ClearInput()
Clear input object list.
A List of entry numbers in a TTree or TChain.
A TEventList object is a list of selected events (entries) in a TTree.
Class describing a generic file including meta information.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
The TNamed class is the base class for all named ROOT classes.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
This class controls a Parallel ROOT Facility, PROOF, cluster.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
A TTree represents a columnar dataset.