64 fDirectory(), fFirst(0), fNum(0), fMsd(),
65 fTDSetOffset(0), fEntryList(0), fValid(
kFALSE),
66 fEntries(0), fFriends(0), fDataSet(), fAssocObjList(0),
70 ResetBit(kHasBeenLookedUp);
82 const char *
msd,
const char *dataset)
86 Warning(
"TDSetElement",
"first must be >= 0, %lld is not allowed - setting to 0", first);
92 Warning(
"TDSetElement",
"num must be >= -1, %lld is not allowed - setting to -1", num);
166 if (!elem)
return -1;
174 if (fFirst == 0 && fNum == -1) {
183 }
else if (fFirst >= 0 && fNum > 0 && elem->
GetFirst() >= 0 && elem->
GetNum() > 0) {
184 Long64_t last = fFirst + fNum - 1, lastref = 0;
189 }
else if (fFirst == lastelem + 1) {
194 lastref = (lastelem > last) ? lastelem : last;
196 }
else if (fFirst < lastelem + 1 && fFirst >= elem->
GetFirst()) {
198 lastref = (lastelem > last) ? lastelem : last;
201 fNum = lastref - fFirst + 1;
216 Long64_t entries = (fEntries < 0 && fNum > 0) ? fNum : fEntries;
217 Printf(
"entries: %lld (%lld)", entries, fNum);
218 if (!strcmp(type,
"TTree")) {
220 fFirst + entries - 1);
223 fFirst + entries - 1);
244 if (opt && opt[0] ==
'a') {
245 Printf(
"%s file=\"%s\" dir=\"%s\" obj=\"%s\" first=%lld num=%lld msd=\"%s\"",
259 if (entries < 0)
return;
260 if (fFirst < entries) {
265 if (fNum <= entries - fFirst) {
268 Error(
"Validate",
"TDSetElement has only %lld entries starting"
269 " with entry %lld, while %lld were requested",
270 entries - fFirst, fFirst, fNum);
274 Error(
"Validate",
"TDSetElement has only %lld entries with"
275 " first entry requested as %lld", entries, fFirst);
296 Error(
"Validate",
"TDSetElement to validate against is not valid");
302 if ((name == elemname) &&
306 if (fFirst < entries) {
311 if (fNum <= entries - fFirst) {
314 Error(
"Validate",
"TDSetElement requests %lld entries starting"
315 " with entry %lld, while TDSetElement to validate against"
316 " has only %lld entries", fNum, fFirst, entries);
320 Error(
"Validate",
"TDSetElement to validate against has only %lld"
321 " entries, but this TDSetElement requested %lld as its first"
322 " entry", entries, fFirst);
325 Error(
"Validate",
"TDSetElements do not refer to same objects");
334 if (
this == obj)
return 0;
359 if (!friendElement) {
360 Error(
"AddFriend",
"The friend TDSetElement is null!");
368 if (alias && strlen(alias) > 0) {
373 friendElement->
SetName(uf.GetUrl());
412 if (fEntries > -1 || !openfile)
434 "cannot open file %s (type: %d, pfx: %s)",
GetName(), typ, pfx.Data());
444 if (!file->
cd(fDirectory)) {
445 Error(
"GetEntries",
"cannot cd to %s", fDirectory.Data());
469 while ((k = (
TKey *) nxk())) {
470 if (!strcmp(k->GetClassName(),
"TTree")) {
472 if (kn.Index(re) !=
kNPOS) {
476 }
else if (kn != on) {
478 "additional tree found in the file: %s", kn.Data());
488 Error(
"GetEntries",
"cannot find tree \"%s\" in %s",
517 static Int_t xNetPluginOK = -1;
538 if (xNetPluginOK == -1) {
541 if ((h =
gROOT->GetPluginManager()->FindHandler(
"TFile",
name)) &&
553 Error(
"Lookup",
"TFileStager instance cannot be instantiated");
567 Error(
"Lookup",
"couldn't lookup %s",
name.Data());
591 Error(
"SetEntryList",
"type of input object must be either TEntryList "
592 "or TEventList (found: '%s' - do nothing", aList->
ClassName());
600 for (; num > 0; num--, first++)
638 if (i < fFirst)
return o;
639 s.
Form(
"%lld", i - fFirst);
700 gROOT->GetListOfDataSets()->Add(
this);
720 const char *objname,
const char *
dir,
const char *
type)
739 if (name && strlen(name) > 0) {
753 if (strlen(type) > 0)
757 }
else if (type && strlen(type) > 0) {
780 gROOT->GetListOfDataSets()->Add(
this);
836 Long64_t nent = (elem->GetEntries() > 0 &&
839 if (elem->HasBeenLookedUp()) {
854 while (chainsQueue.
GetSize() > 0) {
858 while(
TFriendElement *fe = dynamic_cast<TFriendElement*> (friendsIter()) ) {
859 if (
TChain *
fc = dynamic_cast<TChain*>(fe->GetTree())) {
867 Error(
"TDSet",
"Only TChains supported. Found illegal tree %s",
868 fe->GetTree()->GetName());
887 gROOT->GetListOfDataSets()->Remove(
this);
901 Error(
"Process",
"not a correctly initialized TDSet");
909 return gProof->
Process(
this, selector, option, nentries, first);
911 Error(
"Process",
"no active PROOF session");
926 Error(
"Process",
"not a correctly initialized TDSet");
934 return gProof->
Process(
this, selector, option, nentries, first);
936 Error(
"Process",
"no active PROOF session");
949 Error(
"AddInput",
"No PROOF session active");
989 Printf(
"OBJ: %s\ttype %s\t%s\tin %s\telements %d", clnm,
GetName(),
992 if (opt && opt[0] ==
'a') {
995 while ((obj =
next())) {
1033 if (!file || !*file) {
1034 Error(
"Add",
"file name must be specified");
1059 msg.
Form(
"duplication detected: %40s is already in dataset - ignored", fn.
Data());
1062 msg.
Insert(0,
"WARNING: ");
1083 if (fType != dset->
GetType()) {
1084 Error(
"Add",
"cannot add a set with a different type");
1094 if (el == last)
break;
1118 while ((o =
next())) {
1120 if (cn ==
"TFileInfo") {
1122 if (!availableOnly ||
1129 }
else if (badlist) {
1133 }
else if (cn ==
"TUrl") {
1135 }
else if (cn ==
"TObjString") {
1138 Warning(
"Add",
"found object fo unexpected type %s - ignoring", cn.Data());
1166 Error(
"Add",
"TFileInfo object name must be specified");
1177 file = file1.
Data();
1182 msg.
Form(
"duplication detected: %40s is already in dataset - ignored", file);
1185 msg.
Insert(0,
"WARNING: ");
1195 if (!meta || strlen(meta) <= 0 || !strcmp(meta,
"/")) {
1198 msg.
Form(
"\n Object name unspecified and several objects available.\n");
1199 msg +=
" Please choose one from the list below:\n";
1203 if (nm.BeginsWith(
"/")) nm.
Remove(0,1);
1204 msg +=
Form(
" %s -> TProof::Process(\"%s#%s\",...)\n",
1205 nm.Data(),
GetName(), nm.Data());
1219 const char *objname = 0;
1220 const char *
dir = 0;
1232 const char *dataset = 0;
1262 Bool_t force = (opt[0] ==
'F' || opt[0] ==
'f');
1268 Info(
"ExportFileList",
"error removing dataset file: %s", fpath);
1295 Info(
"ExportFileList",
"error creating dataset file: %s", fpath);
1316 Error(
"AddFriend",
"The friend TDSet is null!");
1321 Error(
"AddFriend",
"a friend set can only be added to a TTree TDSet");
1327 Error(
"AddFriend",
"the friend dataset has %d elements while the main one has %d",
1332 TIter next2(friendsList);
1334 if (friendsList->
GetSize() == 1)
1335 friendElem = dynamic_cast<TDSetElement*> (friendsList->
First());
1340 e->
AddFriend(dynamic_cast<TDSetElement*> (next2()), alias);
1378 gPerfStats->FileOpenEvent(file, filename, start);
1382 "cannot open file %s (type: %d, pfx: %s)", filename, typ, pfx.Data());
1387 if (!file->
cd(path)) {
1388 ::Error(
"TDSet::GetEntries",
"cannot cd to %s", path);
1415 while ((k = (
TKey *) nxk())) {
1416 if (!strcmp(k->GetClassName(),
"TTree")) {
1418 if (kn.Index(re) !=
kNPOS) {
1422 }
else if (kn != on) {
1424 "additional tree found in the file: %s", kn.Data());
1434 ::Error(
"TDSet::GetEntries",
"cannot find tree \"%s\" in %s",
1449 objname = (fillname) ? on : objname;
1483 Error(
"Draw",
"not a correctly initialized TDSet");
1491 Error(
"Draw",
"no active PROOF session");
1500 if (
gROOT->IsBatch()) {
1501 Warning(
"StartViewer",
"viewer cannot run in batch mode");
1506 Error(
"StartViewer",
"no PROOF found");
1510 Error(
"StartViewer",
"TDSet contents should be of type TTree (or subtype)");
1516 if ((h =
gROOT->GetPluginManager()->FindHandler(
"TVirtualTreeViewer"))) {
1542 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1543 if (!elem->GetValid()) {
1571 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1572 if (!elem->GetValid())
1573 elem->Validate(
IsTree());
1592 TString msg(
"Looking up for exact location of files");
1599 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1600 if (elem->GetNum() != 0) {
1602 if (!elem->GetValid())
1603 if (elem->Lookup(
kFALSE))
1604 if (removeMissing) {
1606 Error(
"Lookup",
"Error removing a missing file");
1607 if (listOfMissingFiles)
1608 (*listOfMissingFiles)->Add(elem->GetFileInfo(fType));
1613 if (
gProof && (n > 0 && !(n % n2)))
1622 msg =
Form(
"Files with entries to be processed: %d (out of %d)\n", ng, tot);
1639 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem()))
1640 elem->SetLookedUp();
1654 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextOtherElem())) {
1655 if (!elem->GetValid())
continue;
1656 TString dir_file_obj = elem->GetDirectory();
1657 dir_file_obj +=
"_";
1658 dir_file_obj +=
TUrl(elem->GetFileName()).GetFileAndOptions();
1659 dir_file_obj +=
"_";
1660 dir_file_obj += elem->GetObjName();
1666 if (entries<elem->GetFirst()+elem->GetNum()) {
1673 TNamed* named =
new TNamed(dir_file_obj, dir_file_obj);
1674 namedHolder.
Add(named);
1675 bestElements.
Add(
new TPair(named, elem));
1680 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1681 if (!elem->GetValid()) {
1682 TString dir_file_obj = elem->GetDirectory();
1683 dir_file_obj +=
"_";
1684 dir_file_obj +=
TUrl(elem->GetFileName()).GetFileAndOptions();
1685 dir_file_obj +=
"_";
1686 dir_file_obj += elem->GetObjName();
1687 if (
TPair *p = dynamic_cast<TPair*>(bestElements.
FindObject(dir_file_obj))) {
1701 void TDSetElement::Streamer(
TBuffer &R__b)
1713 TNamed::Streamer(R__b);
1717 TObject::Streamer(R__b);
1719 R__b >> name >>
title;
1741 for (FriendsList_t::iterator i = friends->begin();
1742 i != friends->end(); ++i) {
1756 TObject::Streamer(R__b);
1773 while ((p = (
TPair *)nxf()))
1792 void TDSet::Streamer(
TBuffer &R__b)
1803 TNamed::Streamer(R__b);
1808 elems.Streamer(R__b);
1827 TNamed::Streamer(R__b);
1841 elems.Streamer(R__b);
1882 while ((ds = (
TDSet *) nxds()))
1893 Error(
"SetEntryList",
"type of input object must be either TEntryList "
1894 "or TEventList (found: '%s' - do nothing", aList->
ClassName());
1915 while ((ds = (
TDSet *) nxds()))
1923 Info(
"SplitEntryList",
"no entry- (or event-) list to split - do nothing");
1963 while (currPos < evl->GetN() && evl->
GetEntry(currPos) < low) {
1964 Error(
"SplitEntryList",
1965 "TEventList: event outside of the range of any of the TDSetElements");
1970 while (currPos < evl->GetN() && evl->
GetEntry((
Int_t)currPos) < high) {
1994 while ((ds = (
TDSet *) nxds()))
virtual void SetEntriesToProcess(Long64_t nen)
static Bool_t CheckDataSetSrvMaps(TUrl *furl, TString &fn, TList *srvmaplist=0)
Check if the dataset server mappings apply to the url defined by 'furl'.
void AddInput(TObject *obj)
Add objects that might be needed during the processing of the selector (see Process()).
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
virtual void Enter(Long64_t entry)
Enter element entry into the list.
virtual const char * GetTitle() const
Returns title of object.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual Bool_t IsAbsoluteFileName(const char *dir)
Return true if dir is an absolute pathname.
TFileInfo * GetFileInfo(const char *type="TTree")
Return the content of this element in the form of a TFileInfo.
std::list< std::pair< TDSetElement *, TString > > FriendsList_t
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
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.
Long64_t GetEntries(Bool_t istree=kTRUE, Bool_t openfile=kTRUE)
Returns number of entries in tree or objects in file.
virtual TDSetElement * Next(Long64_t totalEntries=-1)
Returns next TDSetElement.
R__EXTERN Int_t gErrorIgnoreLevel
virtual const char * WorkingDirectory()
Return working directory.
virtual Long64_t DrawSelect(TDSet *dset, const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Execute the specified drawing action on a data set (TDSet).
virtual TList * GetListOfKeys() const
TDSet()
iterator on fSrvMaps
void SetLookedUp()
Flag all the elements as looked-up, so to avoid opening the files if the functionality is not support...
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
const char Int_t const char TProof Int_t const char const char * msd
Collectable string class.
const char * GetObjName() const
TObject * FindObject(const char *name) const
Find object using its name.
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.
This class represents a WWW compatible URL.
TString & ReplaceAll(const TString &s1, const TString &s2)
void SetWriteV3(Bool_t on=kTRUE)
Set/Reset the 'OldStreamer' bit in this instance and its elements.
This class implements a data set to be used for PROOF processing.
virtual void SetName(const char *name)
Change (i.e.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
const char * GetProtocol() const
Int_t GetNumOfFiles()
Return the number of files in the dataset.
void SetUrl(const char *url, Bool_t defaultIsFile=kFALSE)
Parse url character string and split in its different subcomponents.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
ERunStatus GetRunStatus() const
TList * GetOutputList()
Get list with all object created during processing (see Process()).
virtual void AddFirst(TObject *obj)
Add object at the beginning of the list.
Buffer base class used for serializing objects.
Regular expression class.
static const char * filename()
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
void AddAssocObj(TObject *assocobj)
Add an associated object to the list.
Int_t LoadPlugin()
Load the plugin library for this handler.
ClassImp(TDSetElement) ClassImp(TDSet) TDSetElement
Default constructor.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
void Print(Option_t *options="") const
Print a TDSetElement. When option="a" print full data.
Int_t Compare(const TObject *obj) const
Compare elements by filename (and the fFirst).
A TChainElement describes a component of a TChain.
const char * GetOptions() const
Long_t ExecPlugin(int nargs, const T &...params)
virtual void SetNameTitle(const char *name, const char *title)
Change (i.e. set) all the TNamed parameters (name and title).
TString & Insert(Ssiz_t pos, const char *s)
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
Int_t ExportFileList(const char *filepath, Option_t *opt="")
Export TDSetElements files as list of TFileInfo objects in file 'fpath'.
TUrl * GetFirstUrl() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Int_t Lookup(Bool_t force=kFALSE)
Resolve end-point URL for this element Return 0 on success and -1 otherwise.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
const char * GetObjName() const
virtual Int_t GetN() const
virtual TList * GetListOfFriends() const
TList * GetOutputList()
Get list with all object created during processing (see Process()).
const char * Data() const
virtual TKey * GetKey(const char *, Short_t=9999) const
Manages an element of a TDSet.
Bool_t HasBeenLookedUp() const
const char * GetDirectory() const
static struct mg_connection * fc(struct mg_context *ctx)
virtual int Unlink(const char *name)
Unlink, i.e. remove, a file.
Long64_t GetTDSetOffset() const
void SetEntries(Long64_t ent)
void Validate(Bool_t isTree)
Validate by opening the file.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
Bool_t AddMetaData(TObject *meta)
Add's a meta data object to the file info object.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
const char * GetMsd() const
The TNamed class is the base class for all named ROOT classes.
static EFileType GetType(const char *name, Option_t *option="", TString *prefix=0)
Resolve the file type as a function of the protocol field in 'name'.
virtual ~TDSetElement()
Clean up the element.
TList * GetListOfElements() const
virtual const char * PrependPathName(const char *dir, TString &name)
Concatenate a directory and a file name.
void Validate()
Validate the TDSet by opening files.
Int_t Atoi() const
Return integer value of string.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void SetDirectory(const char *dir)
Set/change directory.
void SetSrvMaps(TList *srvmaps=0)
Set (or unset) the list for mapping servers coordinate for files.
virtual void DeleteFriends()
Deletes the list of friends and all the friends on the list.
virtual Int_t SendAsynMessage(const char *msg, Bool_t lf=kTRUE)
Send an asychronous message to the master / client .
Long64_t GetFirst() const
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
A specialized string object used for TTree selections.
TList * GetMetaDataList() const
const Long64_t kMaxLong64
Bool_t ElementsValid()
Check if all elements are valid.
virtual Long64_t GetEntry(Int_t index) const
Return value of entry at index in the list.
TDSetElement * fCurrent
iterator on fElements
TProofChain * fProofChain
entry (or event) list for processing
void SendDataSetStatus(const char *msg, UInt_t n, UInt_t tot, Bool_t st)
Send or notify data set status.
const char * GetFileName() const
TFileInfoMeta * GetMetaData(const char *meta=0) const
Get meta data object with specified name.
TList * fSrvMaps
current element
R__EXTERN TSystem * gSystem
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
TObject * Remove(TObject *obj)
Remove object from the list.
Collection abstract base class.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Bool_t TestBit(UInt_t f) const
char * Form(const char *fmt,...)
TObject * GetOutput(const char *name)
Get specified object that has been produced during the processing (see Process()).
const char * GetFileAndOptions() const
Return the file and its options (the string specified behind the ?).
A TEventList object is a list of selected events (entries) in a TTree.
virtual const char * GetName() const
Returns name of object.
The ROOT global object gROOT contains a list of all defined classes.
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.
virtual Long64_t Process(TDSet *dset, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process a data set (TDSet) using the specified selector (.C) file or Tselector object Entry- or event...
const char * GetAnchor() const
Version_t GetClassVersion() const
TObjArray * GetListOfFiles() const
Int_t MergeElement(TDSetElement *elem)
Check if 'elem' is overlapping or subsequent and, if the case, return a merged element.
void AddInput(TObject *obj)
Add objects that might be needed during the processing of the selector (see Process()).
void Print(Option_t *option="") const
Print TDSet basic or full data. When option="a" print full data.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual TTree * GetTreeHeader(TProof *proof)
Returns a tree header containing the branches' structure of the dataset.
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
void ClearInput()
Clear input object list.
TString & Remove(Ssiz_t pos)
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
R__EXTERN TProof * gProof
virtual void SysError(const char *method, const char *msgfmt,...) const
Issue system error message.
Class used by TMap to store (key,value) pairs.
void SetAnchor(const char *anchor)
virtual Int_t GetSize() const
virtual const char * GetName() const
Returns name of object.
void SetObjName(const char *objname)
Set/change object name.
void ClearInput()
Clear input object list.
Describe directory structure in memory.
virtual void SetEntryList(TObject *aList)
Set entry (or event) list for this data set.
The TTimeStamp encapsulates seconds and ns since EPOCH.
This class controls a Parallel ROOT Facility, PROOF, cluster.
TObject * GetOutput(const char *name)
Get specified object that has been produced during the processing (see Process()).
void SetNum(Long64_t num)
static TFileStager * Open(const char *stager)
Open a stager, after having loaded the relevant plug-in.
virtual void Reset()
Reset or initialize access to the elements.
virtual void Add(TObject *obj)=0
virtual TTree * GetTreeHeader(TDSet *tdset)
Creates a tree header (a tree with nonexisting files) object for the DataSet.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual void AddFriend(TDSetElement *friendElement, const char *alias)
Add friend TDSetElement to this set. The friend element will be copied to this object.
virtual Long64_t GetN() const
void SetEntryList(TObject *aList, Long64_t first=-1, Long64_t num=-1)
Set entry (or event) list for this element.
Mother of all ROOT objects.
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...
const char Int_t const char TProof * proof
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
void SplitEntryList()
for browsing purposes
TClassRef is used to implement a permanent reference to a TClass object.
virtual TObject * ReadObj()
To read a TObject* from the file.
TObject * GetAssocObj(Long64_t i, Bool_t isentry=kFALSE)
Get i-th associated object.
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 Bool_t cd(const char *path=0)
Change current directory to "this" directory.
R__EXTERN TProofServ * gProofServ
virtual void Add(TObject *obj)
A TFriendElement TF describes a TTree object TF in a file.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
A chain is a collection of files containg TTree objects.
void SetOptions(const char *opt)
virtual TEntryList * GetEntryList(const char *treename, const char *filename, Option_t *opt="")
Return the entry list, correspoding to treename and filename By default, the filename is first tried ...
virtual Bool_t Matches(const char *s)
const char * GetType() const
virtual Long64_t GetEntries() const
A TTree object has a header with a name and a title.
Class describing a generic file including meta information.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
TIter * fSrvMapsIter
list for mapping server coordinates for files
virtual Int_t Locate(const char *u, TString &f)
Just check if the file exists locally.
const char * GetClass() const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
virtual void AddFriend(TDSet *friendset, const char *alias)
Add friend dataset to this set.
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
A List of entry numbers in a TTree or TChain.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write all objects in this collection.
static constexpr Long64_t kMaxEntries
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
const char * GetDirectory() const
Return directory where to look for object.
virtual void StartViewer()
Start the TTreeViewer on this TTree.
virtual void Close(Option_t *option="")
Close a file.
Int_t Remove(TDSetElement *elem, Bool_t deleteElem=kTRUE)
Remove TDSetElement 'elem' from the list.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.