86 fDirectory(), fFirst(0), fNum(0), fMsd(),
87 fTDSetOffset(0), fEntryList(0), fValid(
kFALSE),
88 fEntries(0), fFriends(0), fDataSet(), fAssocObjList(0),
92 ResetBit(kHasBeenLookedUp);
104 const char *
msd,
const char *dataset)
108 Warning(
"TDSetElement",
"first must be >= 0, %lld is not allowed - setting to 0", first);
114 Warning(
"TDSetElement",
"num must be >= -1, %lld is not allowed - setting to -1", num);
188 if (!elem)
return -1;
196 if (fFirst == 0 && fNum == -1) {
205 }
else if (fFirst >= 0 && fNum > 0 && elem->
GetFirst() >= 0 && elem->
GetNum() > 0) {
206 Long64_t last = fFirst + fNum - 1, lastref = 0;
211 }
else if (fFirst == lastelem + 1) {
216 lastref = (lastelem > last) ? lastelem : last;
218 }
else if (fFirst < lastelem + 1 && fFirst >= elem->
GetFirst()) {
220 lastref = (lastelem > last) ? lastelem : last;
223 fNum = lastref - fFirst + 1;
238 Long64_t entries = (fEntries < 0 && fNum > 0) ? fNum : fEntries;
239 Printf(
"entries: %lld (%lld)", entries, fNum);
240 if (!strcmp(type,
"TTree")) {
242 fFirst + entries - 1);
245 fFirst + entries - 1);
266 if (opt && opt[0] ==
'a') {
267 Printf(
"%s file=\"%s\" dir=\"%s\" obj=\"%s\" first=%lld num=%lld msd=\"%s\"",
281 if (entries < 0)
return;
282 if (fFirst < entries) {
287 if (fNum <= entries - fFirst) {
290 Error(
"Validate",
"TDSetElement has only %lld entries starting"
291 " with entry %lld, while %lld were requested",
292 entries - fFirst, fFirst, fNum);
296 Error(
"Validate",
"TDSetElement has only %lld entries with"
297 " first entry requested as %lld", entries, fFirst);
318 Error(
"Validate",
"TDSetElement to validate against is not valid");
324 if ((name == elemname) &&
328 if (fFirst < entries) {
333 if (fNum <= entries - fFirst) {
336 Error(
"Validate",
"TDSetElement requests %lld entries starting"
337 " with entry %lld, while TDSetElement to validate against"
338 " has only %lld entries", fNum, fFirst, entries);
342 Error(
"Validate",
"TDSetElement to validate against has only %lld"
343 " entries, but this TDSetElement requested %lld as its first"
344 " entry", entries, fFirst);
347 Error(
"Validate",
"TDSetElements do not refer to same objects");
356 if (
this == obj)
return 0;
381 if (!friendElement) {
382 Error(
"AddFriend",
"The friend TDSetElement is null!");
390 if (alias && strlen(alias) > 0) {
395 friendElement->
SetName(uf.GetUrl());
434 if (fEntries > -1 || !openfile)
456 "cannot open file %s (type: %d, pfx: %s)",
GetName(), typ, pfx.Data());
466 if (!file->
cd(fDirectory)) {
467 Error(
"GetEntries",
"cannot cd to %s", fDirectory.Data());
491 while ((k = (
TKey *) nxk())) {
492 if (!strcmp(k->GetClassName(),
"TTree")) {
494 if (kn.Index(re) !=
kNPOS) {
498 }
else if (kn != on) {
500 "additional tree found in the file: %s", kn.Data());
510 Error(
"GetEntries",
"cannot find tree \"%s\" in %s",
539 static Int_t xNetPluginOK = -1;
560 if (xNetPluginOK == -1) {
563 if ((h =
gROOT->GetPluginManager()->FindHandler(
"TFile",
name)) &&
575 Error(
"Lookup",
"TFileStager instance cannot be instantiated");
589 Error(
"Lookup",
"couldn't lookup %s",
name.Data());
613 Error(
"SetEntryList",
"type of input object must be either TEntryList "
614 "or TEventList (found: '%s' - do nothing", aList->
ClassName());
622 for (; num > 0; num--, first++)
660 if (i < fFirst)
return o;
661 s.
Form(
"%lld", i - fFirst);
693 gROOT->GetListOfDataSets()->Add(
this);
713 const char *objname,
const char *dir,
const char *
type)
732 if (name && strlen(name) > 0) {
746 if (strlen(type) > 0)
750 }
else if (type && strlen(type) > 0) {
773 gROOT->GetListOfDataSets()->Add(
this);
808 TString file(elem->GetTitle());
814 TString behindSlash = tree(isl + 1, tree.Length() - isl - 1);
829 Long64_t nent = (elem->GetEntries() > 0 &&
831 if (
Add(file, tree, dir, 0, nent, ((msd.
IsNull()) ? 0 : msd.
Data()))) {
832 if (elem->HasBeenLookedUp()) {
847 while (chainsQueue.
GetSize() > 0) {
851 while(
TFriendElement *fe = dynamic_cast<TFriendElement*> (friendsIter()) ) {
852 if (
TChain *
fc = dynamic_cast<TChain*>(fe->GetTree())) {
860 Error(
"TDSet",
"Only TChains supported. Found illegal tree %s",
861 fe->GetTree()->GetName());
880 gROOT->GetListOfDataSets()->Remove(
this);
894 Error(
"Process",
"not a correctly initialized TDSet");
902 return gProof->
Process(
this, selector, option, nentries, first);
904 Error(
"Process",
"no active PROOF session");
919 Error(
"Process",
"not a correctly initialized TDSet");
927 return gProof->
Process(
this, selector, option, nentries, first);
929 Error(
"Process",
"no active PROOF session");
942 Error(
"AddInput",
"No PROOF session active");
982 Printf(
"OBJ: %s\ttype %s\t%s\tin %s\telements %d", clnm,
GetName(),
985 if (opt && opt[0] ==
'a') {
988 while ((obj =
next())) {
1026 if (!file || !*file) {
1027 Error(
"Add",
"file name must be specified");
1052 msg.
Form(
"duplication detected: %40s is already in dataset - ignored", fn.
Data());
1055 msg.
Insert(0,
"WARNING: ");
1076 if (fType != dset->
GetType()) {
1077 Error(
"Add",
"cannot add a set with a different type");
1087 if (el == last)
break;
1111 while ((o =
next())) {
1113 if (cn ==
"TFileInfo") {
1115 if (!availableOnly ||
1122 }
else if (badlist) {
1126 }
else if (cn ==
"TUrl") {
1128 }
else if (cn ==
"TObjString") {
1131 Warning(
"Add",
"found object fo unexpected type %s - ignoring", cn.Data());
1159 Error(
"Add",
"TFileInfo object name must be specified");
1170 file = file1.
Data();
1175 msg.
Form(
"duplication detected: %40s is already in dataset - ignored", file);
1178 msg.
Insert(0,
"WARNING: ");
1188 if (!meta || strlen(meta) <= 0 || !strcmp(meta,
"/")) {
1191 msg.
Form(
"\n Object name unspecified and several objects available.\n");
1192 msg +=
" Please choose one from the list below:\n";
1196 if (nm.BeginsWith(
"/")) nm.
Remove(0,1);
1197 msg +=
Form(
" %s -> TProof::Process(\"%s#%s\",...)\n",
1198 nm.Data(),
GetName(), nm.Data());
1212 const char *objname = 0;
1213 const char *dir = 0;
1225 const char *dataset = 0;
1255 Bool_t force = (opt[0] ==
'F' || opt[0] ==
'f');
1261 Info(
"ExportFileList",
"error removing dataset file: %s", fpath);
1288 Info(
"ExportFileList",
"error creating dataset file: %s", fpath);
1309 Error(
"AddFriend",
"The friend TDSet is null!");
1314 Error(
"AddFriend",
"a friend set can only be added to a TTree TDSet");
1320 Error(
"AddFriend",
"the friend dataset has %d elements while the main one has %d",
1325 TIter next2(friendsList);
1327 if (friendsList->
GetSize() == 1)
1328 friendElem = dynamic_cast<TDSetElement*> (friendsList->
First());
1333 e->
AddFriend(dynamic_cast<TDSetElement*> (next2()), alias);
1371 gPerfStats->FileOpenEvent(file, filename, start);
1375 "cannot open file %s (type: %d, pfx: %s)", filename, typ, pfx.Data());
1380 if (!file->
cd(path)) {
1381 ::Error(
"TDSet::GetEntries",
"cannot cd to %s", path);
1408 while ((k = (
TKey *) nxk())) {
1409 if (!strcmp(k->GetClassName(),
"TTree")) {
1411 if (kn.Index(re) !=
kNPOS) {
1415 }
else if (kn != on) {
1417 "additional tree found in the file: %s", kn.Data());
1427 ::Error(
"TDSet::GetEntries",
"cannot find tree \"%s\" in %s",
1442 objname = (fillname) ? on : objname;
1476 Error(
"Draw",
"not a correctly initialized TDSet");
1484 Error(
"Draw",
"no active PROOF session");
1493 if (
gROOT->IsBatch()) {
1494 Warning(
"StartViewer",
"viewer cannot run in batch mode");
1499 Error(
"StartViewer",
"no PROOF found");
1503 Error(
"StartViewer",
"TDSet contents should be of type TTree (or subtype)");
1509 if ((h =
gROOT->GetPluginManager()->FindHandler(
"TVirtualTreeViewer"))) {
1535 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1536 if (!elem->GetValid()) {
1564 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1565 if (!elem->GetValid())
1566 elem->Validate(
IsTree());
1585 TString msg(
"Looking up for exact location of files");
1592 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1593 if (elem->GetNum() != 0) {
1595 if (!elem->GetValid())
1596 if (elem->Lookup(
kFALSE))
1597 if (removeMissing) {
1599 Error(
"Lookup",
"Error removing a missing file");
1600 if (listOfMissingFiles)
1601 (*listOfMissingFiles)->Add(elem->GetFileInfo(fType));
1606 if (
gProof && (n > 0 && !(n % n2)))
1615 msg =
Form(
"Files with entries to be processed: %d (out of %d)\n", ng, tot);
1632 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem()))
1633 elem->SetLookedUp();
1647 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextOtherElem())) {
1648 if (!elem->GetValid())
continue;
1649 TString dir_file_obj = elem->GetDirectory();
1650 dir_file_obj +=
"_";
1651 dir_file_obj +=
TUrl(elem->GetFileName()).GetFileAndOptions();
1652 dir_file_obj +=
"_";
1653 dir_file_obj += elem->GetObjName();
1659 if (entries<elem->GetFirst()+elem->GetNum()) {
1666 TNamed* named =
new TNamed(dir_file_obj, dir_file_obj);
1667 namedHolder.
Add(named);
1668 bestElements.
Add(
new TPair(named, elem));
1673 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1674 if (!elem->GetValid()) {
1675 TString dir_file_obj = elem->GetDirectory();
1676 dir_file_obj +=
"_";
1677 dir_file_obj +=
TUrl(elem->GetFileName()).GetFileAndOptions();
1678 dir_file_obj +=
"_";
1679 dir_file_obj += elem->GetObjName();
1680 if (
TPair *p = dynamic_cast<TPair*>(bestElements.
FindObject(dir_file_obj))) {
1694 void TDSetElement::Streamer(
TBuffer &R__b)
1706 TNamed::Streamer(R__b);
1710 TObject::Streamer(R__b);
1712 R__b >> name >> title;
1734 for (FriendsList_t::iterator i = friends->begin();
1735 i != friends->end(); ++i) {
1749 TObject::Streamer(R__b);
1766 while ((p = (
TPair *)nxf()))
1785 void TDSet::Streamer(
TBuffer &R__b)
1796 TNamed::Streamer(R__b);
1801 elems.Streamer(R__b);
1820 TNamed::Streamer(R__b);
1834 elems.Streamer(R__b);
1875 while ((ds = (
TDSet *) nxds()))
1886 Error(
"SetEntryList",
"type of input object must be either TEntryList "
1887 "or TEventList (found: '%s' - do nothing", aList->
ClassName());
1908 while ((ds = (
TDSet *) nxds()))
1916 Info(
"SplitEntryList",
"no entry- (or event-) list to split - do nothing");
1956 while (currPos < evl->GetN() && evl->
GetEntry(currPos) < low) {
1957 Error(
"SplitEntryList",
1958 "TEventList: event outside of the range of any of the TDSetElements");
1963 while (currPos < evl->GetN() && evl->
GetEntry((
Int_t)currPos) < high) {
1987 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.
Ssiz_t Last(char c) const
Find last occurrence of a character c.
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.
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
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
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.
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.