64 fDirectory(),
fFirst(0), fNum(0), fMsd(),
65 fTDSetOffset(0), fEntryList(0), fValid(
kFALSE),
66 fEntries(0), fFriends(0), fDataSet(), fAssocObjList(0),
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;
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;
217 Printf(
"entries: %lld (%lld)", entries,
fNum);
218 if (!strcmp(type,
"TTree")) {
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;
268 Error(
"Validate",
"TDSetElement has only %lld entries starting" 269 " with entry %lld, while %lld were requested",
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) &&
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());
397 fIterator =
new TIter(fElements);
434 "cannot open file %s (type: %d, pfx: %s)",
GetName(), typ, pfx.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());
594 Error(
"SetEntryList",
"type of input object must be either TEntryList " 595 "or TEventList (found: '%s' - do nothing", aList->
ClassName());
603 for (; num > 0; num--, first++)
703 gROOT->GetListOfDataSets()->Add(
this);
723 const char *objname,
const char *dir,
const char *
type)
742 if (name && strlen(name) > 0) {
756 if (strlen(type) > 0)
760 }
else if (type && strlen(type) > 0) {
783 gROOT->GetListOfDataSets()->Add(
this);
839 Long64_t nent = (elem->GetEntries() > 0 &&
842 if (elem->HasBeenLookedUp()) {
857 while (chainsQueue.
GetSize() > 0) {
861 while(
TFriendElement *fe = dynamic_cast<TFriendElement*> (friendsIter()) ) {
862 if (
TChain *
fc = dynamic_cast<TChain*>(fe->GetTree())) {
870 Error(
"TDSet",
"Only TChains supported. Found illegal tree %s",
871 fe->GetTree()->GetName());
890 gROOT->GetListOfDataSets()->Remove(
this);
903 if (!IsValid() || !fElements->GetSize()) {
904 Error(
"Process",
"not a correctly initialized TDSet");
912 return gProof->
Process(
this, selector, option, nentries, first);
914 Error(
"Process",
"no active PROOF session");
928 if (!IsValid() || !fElements->GetSize()) {
929 Error(
"Process",
"not a correctly initialized TDSet");
937 return gProof->
Process(
this, selector, option, nentries, first);
939 Error(
"Process",
"no active PROOF session");
952 Error(
"AddInput",
"No PROOF session active");
991 const char *clnm = (IsA()) ? IsA()->GetName() :
"TDSet";
992 Printf(
"OBJ: %s\ttype %s\t%s\tin %s\telements %d", clnm,
GetName(),
993 fObjName.Data(),
GetTitle(), GetListOfElements()->GetSize());
995 if (opt && opt[0] ==
'a') {
996 TIter next(GetListOfElements());
998 while ((obj = next())) {
1011 TIter next(GetListOfElements());
1036 if (!file || !*file) {
1037 Error(
"Add",
"file name must be specified");
1059 fElements->Add(
new TDSetElement(fn, objname, dir, first, num, msd));
1062 msg.
Form(
"duplication detected: %40s is already in dataset - ignored", fn.
Data());
1065 msg.
Insert(0,
"WARNING: ");
1082 fElements->Add(dset);
1087 Error(
"Add",
"cannot add a set with a different type");
1093 TObject *last = (dset ==
this) ? fElements->Last() : 0;
1097 if (el == last)
break;
1120 TIter next(filelist);
1121 while ((o = next())) {
1123 if (cn ==
"TFileInfo") {
1125 if (!availableOnly ||
1128 Int_t nf = fElements->GetSize();
1131 if (fElements->GetSize() <= nf && badlist) badlist->
Add(fi);
1132 }
else if (badlist) {
1136 }
else if (cn ==
"TUrl") {
1138 }
else if (cn ==
"TObjString") {
1141 Warning(
"Add",
"found object fo unexpected type %s - ignoring", cn.Data());
1157 if (fSrvMaps) fSrvMapsIter =
new TIter(fSrvMaps);
1169 Error(
"Add",
"TFileInfo object name must be specified");
1180 file = file1.
Data();
1184 if (fElements->FindObject(file)) {
1185 msg.
Form(
"duplication detected: %40s is already in dataset - ignored", file);
1188 msg.
Insert(0,
"WARNING: ");
1198 if (!meta || strlen(meta) <= 0 || !strcmp(meta,
"/")) {
1201 msg.
Form(
"\n Object name unspecified and several objects available.\n");
1202 msg +=
" Please choose one from the list below:\n";
1206 if (
nm.BeginsWith(
"/"))
nm.Remove(0,1);
1207 msg +=
Form(
" %s -> TProof::Process(\"%s#%s\",...)\n",
1222 const char *objname = 0;
1223 const char *dir = 0;
1235 const char *dataset = 0;
1262 if (fElements->GetSize() <= 0)
1265 Bool_t force = (opt[0] ==
'F' || opt[0] ==
'f');
1271 Info(
"ExportFileList",
"error removing dataset file: %s", fpath);
1282 TIter next(fElements);
1298 Info(
"ExportFileList",
"error creating dataset file: %s", fpath);
1319 Error(
"AddFriend",
"The friend TDSet is null!");
1324 Error(
"AddFriend",
"a friend set can only be added to a TTree TDSet");
1327 TList *thisList = GetListOfElements();
1330 Error(
"AddFriend",
"the friend dataset has %d elements while the main one has %d",
1334 TIter next(thisList);
1335 TIter next2(friendsList);
1337 if (friendsList->
GetSize() == 1)
1338 friendElem = dynamic_cast<TDSetElement*> (friendsList->
First());
1339 while(
TDSetElement*
e = dynamic_cast<TDSetElement*> (next())) {
1341 e->AddFriend(friendElem, alias);
1343 e->AddFriend(dynamic_cast<TDSetElement*> (next2()), alias);
1353 fIterator =
new TIter(fElements);
1381 gPerfStats->FileOpenEvent(file, filename, start);
1385 "cannot open file %s (type: %d, pfx: %s)", filename, typ, pfx.Data());
1390 if (!file->
cd(path)) {
1391 ::Error(
"TDSet::GetEntries",
"cannot cd to %s", path);
1418 while ((k = (
TKey *) nxk())) {
1419 if (!strcmp(k->GetClassName(),
"TTree")) {
1421 if (kn.Index(re) !=
kNPOS) {
1425 }
else if (kn != on) {
1427 "additional tree found in the file: %s", kn.Data());
1437 ::Error(
"TDSet::GetEntries",
"cannot find tree \"%s\" in %s",
1438 objname.
Data(), filename);
1452 objname = (fillname) ? on : objname;
1485 if (!IsValid() || !fElements->GetSize()) {
1486 Error(
"Draw",
"not a correctly initialized TDSet");
1494 Error(
"Draw",
"no active PROOF session");
1503 if (
gROOT->IsBatch()) {
1504 Warning(
"StartViewer",
"viewer cannot run in batch mode");
1509 Error(
"StartViewer",
"no PROOF found");
1513 Error(
"StartViewer",
"TDSet contents should be of type TTree (or subtype)");
1519 if ((h =
gROOT->GetPluginManager()->FindHandler(
"TVirtualTreeViewer"))) {
1544 TIter nextElem(GetListOfElements());
1545 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1546 if (!elem->GetValid()) {
1560 if (!elem || !(((
THashList *)(GetListOfElements()))->Remove(elem)))
1573 TIter nextElem(GetListOfElements());
1574 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1575 if (!elem->GetValid())
1576 elem->Validate(IsTree());
1595 TString msg(
"Looking up for exact location of files");
1598 UInt_t tot = GetListOfElements()->GetSize();
1601 TIter nextElem(GetListOfElements());
1602 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1603 if (elem->GetNum() != 0) {
1605 if (!elem->GetValid())
1606 if (elem->Lookup(
kFALSE))
1607 if (removeMissing) {
1608 if (Remove(elem,
kFALSE))
1609 Error(
"Lookup",
"Error removing a missing file");
1610 if (listOfMissingFiles)
1611 (*listOfMissingFiles)->Add(elem->GetFileInfo(
fType));
1616 if (
gProof && (n > 0 && !(n % n2)))
1625 msg =
Form(
"Files with entries to be processed: %d (out of %d)\n", ng, tot);
1641 TIter nextElem(GetListOfElements());
1642 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem()))
1643 elem->SetLookedUp();
1657 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextOtherElem())) {
1658 if (!elem->GetValid())
continue;
1659 TString dir_file_obj = elem->GetDirectory();
1660 dir_file_obj +=
"_";
1661 dir_file_obj +=
TUrl(elem->GetFileName()).GetFileAndOptions();
1662 dir_file_obj +=
"_";
1663 dir_file_obj += elem->GetObjName();
1669 if (entries<elem->
GetFirst()+elem->GetNum()) {
1676 TNamed* named =
new TNamed(dir_file_obj, dir_file_obj);
1677 namedHolder.
Add(named);
1678 bestElements.
Add(
new TPair(named, elem));
1682 TIter nextElem(GetListOfElements());
1683 while (
TDSetElement *elem = dynamic_cast<TDSetElement*>(nextElem())) {
1684 if (!elem->GetValid()) {
1685 TString dir_file_obj = elem->GetDirectory();
1686 dir_file_obj +=
"_";
1687 dir_file_obj +=
TUrl(elem->GetFileName()).GetFileAndOptions();
1688 dir_file_obj +=
"_";
1689 dir_file_obj += elem->GetObjName();
1690 if (
TPair *p = dynamic_cast<TPair*>(bestElements.
FindObject(dir_file_obj))) {
1704 void TDSetElement::Streamer(
TBuffer &R__b)
1716 TNamed::Streamer(R__b);
1720 TObject::Streamer(R__b);
1722 R__b >> name >> title;
1744 for (FriendsList_t::iterator i = friends->begin();
1745 i != friends->end(); ++i) {
1759 TObject::Streamer(R__b);
1776 while ((p = (
TPair *)nxf()))
1795 void TDSet::Streamer(
TBuffer &R__b)
1806 TNamed::Streamer(R__b);
1811 elems.Streamer(R__b);
1830 TNamed::Streamer(R__b);
1837 if (fElements->GetSize() > 0) {
1839 TIter nxe(fElements);
1844 elems.Streamer(R__b);
1863 TIter nxe(GetListOfElements());
1886 TIter nxds(fElements);
1888 while ((ds = (
TDSet *) nxds()))
1899 Error(
"SetEntryList",
"type of input object must be either TEntryList " 1900 "or TEventList (found: '%s' - do nothing", aList->
ClassName());
1919 TIter nxds(fElements);
1921 while ((ds = (
TDSet *) nxds()))
1929 Info(
"SplitEntryList",
"no entry- (or event-) list to split - do nothing");
1937 TIter next(fElements);
1955 TIter next(fElements);
1969 while (currPos < evl->GetN() && evl->
GetEntry(currPos) < low) {
1970 Error(
"SplitEntryList",
1971 "TEventList: event outside of the range of any of the TDSetElements");
1976 while (currPos < evl->GetN() && evl->
GetEntry((
Int_t)currPos) < high) {
1998 TIter nxds(fElements);
2000 while ((ds = (
TDSet *) nxds()))
2003 nf = fElements->GetSize();
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 * GetName() const
Returns name of object.
virtual void SysError(const char *method, const char *msgfmt,...) const
Issue system error message.
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.
Long64_t GetTDSetOffset() const
std::list< std::pair< TDSetElement *, TString > > FriendsList_t
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual TList * GetListOfKeys() const
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.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Long64_t GetEntries(Bool_t istree=kTRUE, Bool_t openfile=kTRUE)
Returns number of entries in tree or objects in file.
virtual Long64_t GetN() const
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).
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...
Collectable string class.
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 Print(Option_t *option="") const
Print TDSet basic or full data. When option="a" print full data.
void SetWriteV3(Bool_t on=kTRUE)
Set/Reset the 'OldStreamer' bit in this instance and its elements.
const char * GetProtocol() const
This class implements a data set to be used for PROOF processing.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
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.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
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.
virtual TList * GetListOfFriends() const
Buffer base class used for serializing objects.
Regular expression class.
const char * GetFileAndOptions() const
Return the file and its options (the string specified behind the ?).
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.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Long64_t GetFirst() const
Int_t LoadPlugin()
Load the plugin library for this handler.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
const char * GetOptions() const
Type GetType(const std::string &Name)
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
TObject * FindObject(const char *name) const
Find object using its name.
A TChainElement describes a component of a TChain.
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
TString & Insert(Ssiz_t pos, const char *s)
Int_t ExportFileList(const char *filepath, Option_t *opt="")
Export TDSetElements files as list of TFileInfo objects in file 'fpath'.
TList * GetListOfElements() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
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.
TList * GetOutputList()
Get list with all object created during processing (see Process()).
Manages an element of a TDSet.
static struct mg_connection * fc(struct mg_context *ctx)
virtual int Unlink(const char *name)
Unlink, i.e. remove, a file.
TObjArray * GetListOfFiles() const
virtual const char * ClassName() const
Returns name of class to which the object belongs.
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...
The TNamed class is the base class for all named ROOT classes.
TUrl * GetFirstUrl() const
virtual Long64_t GetEntry(Int_t index) const
Return value of entry at index in the list.
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 Int_t GetN() const
virtual ~TDSetElement()
Clean up the element.
const char * GetDirectory() const
Return directory where to look for object.
virtual const char * PrependPathName(const char *dir, TString &name)
Concatenate a directory and a file name.
void Validate()
Validate the TDSet by opening files.
const char * GetAnchor() const
Book space in a file, create I/O buffers, to fill them, (un)compress them.
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.
A specialized string object used for TTree selections.
const char * GetObjName() const
TFileInfoMeta * GetMetaData(const char *meta=0) const
Get meta data object with specified name.
Bool_t ElementsValid()
Check if all elements are valid.
void SendAsynMessage(const char *msg, Bool_t lf=kTRUE)
Send an asychronous message to the master / client .
void SendDataSetStatus(const char *msg, UInt_t n, UInt_t tot, Bool_t st)
Send or notify data set status.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
R__EXTERN TSystem * gSystem
write collection with single key
Int_t Compare(const TObject *obj) const
Compare elements by filename (and the fFirst).
Long_t ExecPlugin(int nargs, const T &... params)
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.
ERunStatus GetRunStatus() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
char * Form(const char *fmt,...)
TObject * GetOutput(const char *name)
Get specified object that has been produced during the processing (see Process()).
A TEventList object is a list of selected events (entries) in a TTree.
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...
Bool_t HasBeenLookedUp() const
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
void Reset(Detail::TBranchProxy *x)
Int_t MergeElement(TDSetElement *elem)
Check if 'elem' is overlapping or subsequent and, if the case, return a merged element.
TDSetElement()
Default constructor.
static constexpr double nm
void Print(Option_t *options="") const
Print a TDSetElement. When option="a" print full data.
void AddInput(TObject *obj)
Add objects that might be needed during the processing of the selector (see Process()).
virtual TTree * GetTreeHeader(TProof *proof)
Returns a tree header containing the branches' structure of the dataset.
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
Class used by TMap to store (key,value) pairs.
Version_t GetClassVersion() const
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
void SetAnchor(const char *anchor)
virtual TKey * GetKey(const char *, Short_t=9999) const
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()).
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
static constexpr double s
void SetNum(Long64_t num)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
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.
const char * GetFileName() const
virtual void Add(TObject *obj)=0
virtual TTree * GetTreeHeader(TDSet *tdset)
Creates a tree header (a tree with nonexisting files) object for the DataSet.
const Long64_t kMaxLong64
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.
const char * GetType() const
virtual Long64_t GetEntries() const
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
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...
void SplitEntryList()
for browsing purposes
TClassRef is used to implement a permanent reference to a TClass object.
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)
const char * GetMsd() const
A TFriendElement TF describes a TTree object TF in a file.
A chain is a collection of files containing TTree objects.
void SetOptions(const char *opt)
virtual TEntryList * GetEntryList(const char *treename, const char *filename, Option_t *opt="")
Return the entry list, corresponding to treename and filename By default, the filename is first tried...
Int_t Atoi() const
Return integer value of string.
virtual Bool_t Matches(const char *s)
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
A TTree object has a header with a name and a title.
Class describing a generic file including meta information.
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual Int_t Locate(const char *u, TString &f)
Just check if the file exists locally.
virtual const char * GetName() const
Returns name of object.
virtual Int_t GetSize() 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="")
Set the title of the TNamed.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
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
TList * GetMetaDataList() const
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual const char * GetTitle() const
Returns title of 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.
const char * Data() const
const char * GetClass() const