51 #if (__GNUC__ >= 3) || defined(__INTEL_COMPILER)
52 #if !defined(R__unlikely)
53 #define R__unlikely(expr) __builtin_expect(!!(expr), 0)
55 #if !defined(R__likely)
56 #define R__likely(expr) __builtin_expect(!!(expr), 1)
59 #define R__unlikely(expr) expr
60 #define R__likely(expr) expr
66 void RemovePrefix(
TString& str,
const char* prefix) {
68 if (str.
Length() && prefix && strlen(prefix)) {
69 if (!str.
Index(prefix)) {
70 str.
Remove(0, strlen(prefix));
80 fOnfileObject->SetSize(size);
81 fBuffer.PushDataCache( fOnfileObject );
85 if (fOnfileObject) fBuffer.PopDataCache();
95 for (
Int_t i = 0; i < nbranches; ++i) {
98 case 31: br->
SetType(41);
break;
120 return CanSelfReference(inside);
125 const static TClassRef stringClass(
"std::string");
169 , fReadActionSequence(0)
170 , fFillActionSequence(0)
187 , fClassName(sinfo->GetName())
191 , fCheckSum(sinfo->GetCheckSum())
206 , fTargetClass(fClassName)
213 , fReadActionSequence(0)
214 , fFillActionSequence(0)
219 Init(tree, 0, bname,sinfo,
id,pointer,basketsize,splitlevel,btype);
229 , fClassName(sinfo->GetName())
233 , fCheckSum(sinfo->GetCheckSum())
248 , fTargetClass( fClassName )
255 , fReadActionSequence(0)
256 , fFillActionSequence(0)
261 Init(parent ? parent->
GetTree() : 0, parent, bname,sinfo,
id,pointer,basketsize,splitlevel,btype);
280 if (
fTree == 0)
return;
372 if (hasCustomStreamer) {
425 if (splitlevel > 0) {
445 if (!strcmp(name, clOfElement->
GetName())) {
472 Unroll(name, clOfElement, clOfElement, pointer, basketsize, splitlevel+splitSTLP, 0);
473 if (strchr(bname,
'.')) {
506 char **ppointer = (
char**)(pointer);
547 Unroll(name, clOfClones, clOfClones, pointer, basketsize, splitlevel+splitSTLP, 31);
599 Unroll(name, valueClass, valueClass, pointer, basketsize, splitlevel+splitSTLP, 41);
613 Int_t err =
Unroll(name, clm, clm, pointer, basketsize, splitlevel+splitSTLP, 0);
655 , fClassName(
"TClonesArray")
658 , fTargetClass( fClassName )
663 , fReadActionSequence(0)
664 , fFillActionSequence(0)
669 Init(tree, 0, bname, clones, basketsize, splitlevel, compress);
679 , fClassName(
"TClonesArray")
682 , fTargetClass( fClassName )
687 , fReadActionSequence(0)
688 , fFillActionSequence(0)
693 Init(parent ? parent->
GetTree() : 0, parent, bname, clones, basketsize, splitlevel, compress);
736 if (basketsize < 100) basketsize = 100;
756 Error(
"Init",
"Missing class object of the TClonesArray %s\n",clones->
GetName());
768 std::string branchname = name + std::string(
"_");
770 leaf->
SetName(branchname.c_str());
772 Unroll(name, clonesClass, clonesClass, 0, basketsize, splitlevel, 31);
799 , fClassName(cont->GetCollectionClass()->GetName())
801 , fTargetClass( fClassName )
804 , fBranchClass(cont->GetCollectionClass())
806 , fReadActionSequence(0)
807 , fFillActionSequence(0)
812 Init(tree, 0, bname, cont, basketsize, splitlevel, compress);
822 , fClassName(cont->GetCollectionClass()->GetName())
824 , fTargetClass( fClassName )
827 , fBranchClass(cont->GetCollectionClass())
829 , fReadActionSequence(0)
830 , fFillActionSequence(0)
835 Init(parent ? parent->
GetTree() : 0, parent, bname, cont, basketsize, splitlevel, compress);
847 if (name[name.
Length()-1]==
'.') {
889 if (basketsize < 100) {
930 Unroll(name, valueClass, valueClass, 0, basketsize, splitlevel, 41);
1009 if (nbranches > 0) {
1010 TList persistentBranches;
1013 while((branch=(
TBranch*)iB())) {
1014 if (branch->
IsFolder()) persistentBranches.
Add(branch);
1040 mempos=strMember.
First(
'[');
1045 }
else persistentBranches.
Add(branch);
1048 persistentBranches.
Browse(b);
1069 pos = mothername.
First(
'[');
1075 if (mothername(len-1) !=
'.') {
1080 TString doublename = mothername;
1082 Int_t isthere = (name.
Index(doublename) == 0);
1087 doublename.
Append(mothername);
1088 isthere = (name.
Index(doublename) == 0);
1124 for (
Int_t i = 0; i < nbranches; ++i) {
1128 }
else if (
fType == 4) {
1131 Error(
"BuildTitle",
"This cannot happen, fType of parent is not 3 or 4!");
1135 const char* fin = strrchr(bre->
GetTitle(),
'.');
1168 if ((stype > 40) && (stype < 61)) {
1210 Error(
"Fill",
"attempt to fill branch %s while addresss is not set",
GetName());
1233 Error(
"Fill",
"Failed filling branch:%s, nbytes=%d",
GetName(), nwrite);
1245 Error(
"Fill",
"Failed filling branch:%s, nbytes=%d",
GetName(), nwrite);
1253 for (
Int_t i = 0; i < nbranches; ++i) {
1256 nwrite = branch->
Fill();
1258 Error(
"Fill",
"Failed filling branch:%s.%s, nbytes=%d",
GetName(), branch->
GetName(), nwrite);
1271 printf(
"Fill: %lld, branch=%s, nbytes=%d\n", entry,
GetName(), nbytes);
1309 }
else if (
fType == 31) {
1330 Error(
"FillLeaves",
"The branch counter address was zero!");
1336 Error(
"FillLeaves",
"Clonesa: %s, n=%d, sorry not supported yet",
GetName(), n);
1452 Error(
"FillLeaves",
"Cannot get streamer info for branch '%s'",
GetName());
1483 Error(
"FillLeaves",
"Cannot get streamer info for branch '%s'",
GetName());
1513 Error(
"FillLeaves",
"Cannot get streamer info for branch '%s'",
GetName());
1544 Error(
"FillLeaves",
"Cannot get streamer info for branch '%s'",
GetName());
1599 Error(
"FillLeaves",
"Cannot get streamer info for branch '%s'",
GetName());
1604 char **end = arr +
n;
1681 Error(
"FillLeaves",
"Cannot get streamer info for branch '%s'",
GetName());
1725 Error(
"FillLeaves",
"Cannot get streamer info for branch '%s'",
GetName());
1739 if (name[name.length()-1]==
']') {
1741 if (dim != std::string::npos) {
1745 if (name[name.size()-1] !=
'.') {
1764 if (se && se->
IsBase()) {
1766 UInt_t len = strlen(name);
1772 std::string longnm_parent;
1776 longnm_parent +=
name;
1778 UInt_t namelen = strlen(name);
1782 for(
Int_t i = 0; i < nbranches; ++i) {
1785 const char *brname = branch->
GetName();
1786 UInt_t brlen = strlen(brname);
1787 if (brname[brlen-1]==
']') {
1788 const char *dim = strchr(brname,
'[');
1790 brlen = dim - brname;
1793 if (namelen == brlen
1794 && strncmp(name,brname,brlen) == 0) {
1797 if (brlen == longnm.length()
1798 && strncmp(longnm.c_str(),brname,brlen) == 0) {
1802 if (brlen == longnm_parent.length()
1803 && strncmp(longnm_parent.c_str(),brname,brlen) == 0) {
1807 if (namelen>brlen && name[brlen]==
'.' && strncmp(name,brname,brlen)==0) {
1818 for(
Int_t i = 0; i < nbranches; ++i) {
1824 if (si && br->
GetID() >= 0) {
1826 if (se && se->
IsBase()) {
1848 if (parent==
this || parent->
GetID()<0 )
return 0;
1853 if (! se->
IsBase() )
return 0;
1861 std::string longname( grand_parent->
GetName() );
1867 if ( longname == leafname ) {
1919 if ( !targetClass ) {
1920 Error(
"InitInfo",
"The target class dictionary is not present!" );
1938 target +=
"@@emulated";
1947 if( targetClass != cl ) {
1964 if( targetClass != cl )
1994 Error(
"InitInfo",
"StreamerInfo is not compiled.");
2005 size_t pos = s.rfind(
'.');
2006 if (pos != std::string::npos) {
2007 s = s.substr(pos+1);
2009 while ((pos = s.rfind(
'[')) != std::string::npos) {
2010 s = s.substr(0, pos);
2017 for (
size_t i = 0; i <
ndata; ++i) {
2069 for (
size_t i = 0; i <
ndata; ++i) {
2096 for (
Int_t i = 0; i < nbranches; ++i) {
2100 lastbranch = subbranch;
2132 const char* className = 0;
2169 Fatal(
"GetCollectionProxy",
2170 "Can not create a Collection Proxy of any kind for the class \"%s\" needed by the branch \"%s\" of the TTree \"%s\"!",
2174 "Fixing the collection proxy of the class \"%s\" \n"
2175 "\tneeded by the branch \"%s\" of the TTree \"%s\" to be similar to \"%s\".",
2181 }
else if (
fType == 41) {
2224 if (newInfo != brInfo) {
2233 if (newType.
Length()==0) {
2314 for (
Int_t i = 0; i < nbranches; ++i) {
2342 Info(
"GetEntry",
"%lld, branch=%s, nbytes=%d", entry,
GetName(), nbytes);
2360 if ((type == -1) || (
fID == -1)) {
2369 if (!expectedClass) {
2379 Error(
"GetExpectedType",
"Did not find the type for %s",
GetName());
2392 return "TBranchElement-folder";
2394 return "TBranchElement-leaf";
2455 const char *types[20] = {
2478 return types[itype];
2487 template <
typename T>
2538 }
else if (
fType <= 2) {
2563 }
else if (
fType == 41) {
2616 }
else if (
fType == 4) {
2619 }
else if (
fType == 31) {
2624 }
else if (
fType == 41) {
2629 }
else if (
fType <= 2) {
2644 }
else if (
fType == 41) {
2646 }
else if (prID < 0) {
2651 char **val = (
char**)(
object+
GetInfoImp()->TStreamerInfo::GetElementOffset(prID));
2694 Warning(
"InitializeOffsets",
"No branch class set for branch: %s",
GetName());
2711 Int_t localOffset = 0;
2724 Warning(
"InitializeOffsets",
"Streamer info for branch: %s has no elements array!",
GetName());
2731 Warning(
"InitializeOffsets",
"Cannot get streamer element for branch: %s!",
GetName());
2752 Error(
"InitializeOffsets",
"Could not find class for branch: %s",
GetName());
2766 stlParentName = br->
GetName();
2775 for (
Int_t subBranchIdx = 0; subBranchIdx < nbranches; ++subBranchIdx) {
2776 bool alternateElement =
false;
2780 if (subBranch == 0) {
2794 Warning(
"InitializeOffsets",
"No streamer info for branch: %s subbranch: %s",
GetName(), subBranch->
GetName());
2799 Warning(
"InitializeOffsets",
"No elements array for branch: %s subbranch: %s",
GetName(), subBranch->
GetName());
2805 if (!subBranchElement) {
2806 Warning(
"InitializeOffsets",
"No streamer element for branch: %s subbranch: %s",
GetName(), subBranch->
GetName());
2820 typedef TStreamerInfoActions::ActionContainer_t::iterator iterator;
2828 subBranchElement = e;
2829 alternateElement =
true;
2836 localOffset = subBranchElement->
GetOffset();
2845 && CanSelfReference(subBranchElement->
GetClass()))
2861 Warning(
"InitializeOffsets",
"Branch '%s' has no mother!",
GetName());
2867 if (motherName.Length() && strchr(motherName.Data(),
'.')) {
2871 if (motherName.Length() && (motherName[motherName.Length()-1] ==
'.')) {
2872 motherDotAtEnd =
kTRUE;
2876 if ((subBranch->
fType == 1) || (subBranchElement && subBranchElement->
IsBase())) {
2884 isBaseSubBranch =
kTRUE;
2888 if ((subBranch->
fType == 31) || (subBranch->
fType == 41)) {
2890 isContDataMember =
kTRUE;
2915 if (motherDotAtEnd) {
2917 dataName.
Remove(0, motherName.Length());
2919 if (!stlParentNameUpdated && stlParentName.
Length()) {
2920 stlParentName.
Remove(0, motherName.Length());
2921 stlParentNameUpdated =
kTRUE;
2923 }
else if (motherDot) {
2937 if (dataName.Length() == motherName.Length()) {
2938 dataName.Remove(0, motherName.Length());
2940 if (!stlParentNameUpdated && stlParentName.
Length()) {
2941 stlParentName.
Remove(0, motherName.Length());
2946 if (dataName.Length() > motherName.Length()) {
2947 dataName.
Remove(0, motherName.Length() + 1);
2948 if (!stlParentNameUpdated && stlParentName.
Length()) {
2949 stlParentName.
Remove(0, motherName.Length());
2954 stlParentNameUpdated =
kTRUE;
2955 if (isBaseSubBranch) {
2959 if (
pattern.Length() <= dataName.Length()) {
2960 if (!strcmp(dataName.Data() + (dataName.Length() -
pattern.Length()),
pattern.Data())) {
2964 dataName.Remove(dataName.Length() -
pattern.Length());
2968 if (dataName.Length()) {
2969 if (dataName[0] ==
'.') {
2970 dataName.Remove(0, 1);
2979 if (motherDotAtEnd) {
2981 parentName.
Remove(0, motherName.Length());
2982 }
else if (motherDot) {
2996 if (parentName.
Length() == motherName.Length()) {
2997 parentName.
Remove(0, motherName.Length());
3001 if (parentName.
Length() > motherName.Length()) {
3002 parentName.
Remove(0, motherName.Length() + 1);
3032 RemovePrefix(dataName, parentName);
3036 if (dataName.Length()) {
3037 if (dataName[0] ==
'.') {
3038 dataName.Remove(0, 1);
3043 if (dataName.Length()) {
3044 if (dataName[dataName.Length()-1] ==
'.') {
3045 dataName.Remove(dataName.Length() - 1, 1);
3061 if (dataName.Length()) {
3086 target +=
"@@emulated";
3104 Warning(
"InitializeOffsets",
"subBranch: '%s' has no parent class, and cannot get class for clones class: '%s'!", subBranch->
GetName(),
GetClonesName());
3108 Warning(
"InitializeOffsets",
"subBranch: '%s' has no parent class! Assuming parent class is: '%s'.", subBranch->
GetName(), pClass->
GetName());
3112 Warning(
"InitializeOffsets",
"subBranch: '%s' has no parent class! Assuming parent class is: '%s'.", subBranch->
GetName(), pClass ? pClass->
GetName() :
"unknowned class");
3117 pClass = branchClass;
3122 if (renamed && pClass) {
3123 if (pClass == branchClass) {
3135 if( dynamic_cast<TBranchSTL*>(
fParent) && stlParentName.
Length() )
3137 if( !strncmp( stlParentName.
Data(), dataName.Data(), stlParentName.
Length()-1 )
3138 && dataName[ stlParentName.
Length() ] ==
'.' )
3139 dataName.Remove( 0, stlParentName.
Length()+1 );
3146 if (alternateElement) {
3147 Ssiz_t dotpos = dataName.Last(
'.');
3148 Ssiz_t endpos = dataName.Length();
3149 if (dotpos !=
kNPOS) ++dotpos;
else dotpos = 0;
3150 dataName.Replace(dotpos,endpos-dotpos,subBranchElement->
GetFullName());
3171 Error(
"InitializeOffsets",
3172 "Could not find the real data member '%s' when constructing the branch '%s' [Likely missing ShowMember].",
3177 Info(
"InitializeOffsets",
3178 "TTree created with an older schema, some data might not be copied in 'slow-cloning' mode; fast-cloning should have the correct result. '%s' is missing when constructing the branch '%s'. ",
3182 Fatal(
"InitializeOffsets",
3183 "Could not find the real data member '%s' when constructing the branch '%s' [Likely an internal error, please report to the developers].",
3191 if (isBaseSubBranch) {
3194 Warning(
"InitializeOffsets",
"Could not find the data member name for branch '%s' with parent branch '%s', assuming offset is zero!", subBranch->
GetName(),
GetName());
3202 if (isContDataMember) {
3216 if (isBaseSubBranch) {
3223 subBranch->
SetOffset(offset - localOffset);
3233 }
else if (isSplit) {
3234 if (isBaseSubBranch) {
3245 if (isBaseSubBranch) {
3276 if (nbranches >= 1) {
3280 return browsables && browsables->
GetSize();
3295 if (basket &&
fTree) {
3308 bufbegin = entryOffset[entry-
first];
3311 bufnext = entryOffset[entry+1-
first];
3315 if (bufnext == bufbegin) {
3334 if (strncmp(option,
"debugAddress",strlen(
"debugAddress"))==0) {
3335 if (strlen(option)==strlen(
"debugAddress")) {
3336 Printf(
"%-24s %-16s %2s %4s %-16s %-16s %8s %8s %s\n",
3337 "Branch Name",
"Streamer Class",
"ID",
"Type",
"Class",
"Parent",
"pOffset",
"fOffset",
"fObject");
3346 Printf(
"%-16s %2d %4d %-16s %-16s %8x %8x %s\n",
3351 for (
Int_t i = 0; i < nbranches; ++i) {
3353 subbranch->
Print(
"debugAddressSub");
3357 if (strncmp(option,
"debugInfo",strlen(
"debugInfo"))==0) {
3364 Printf(
" with read actions:");
3366 Printf(
" with write actions:");
3369 TString suboption =
"debugInfoSub";
3370 suboption += (option+strlen(
"debugInfo"));
3371 for (
Int_t i = 0; i < nbranches; ++i) {
3373 subbranch->
Print(suboption);
3386 Printf(
"*............................................................................*");
3391 for (
Int_t i=0;i<nbranches;i++) {
3393 branch->
Print(option);
3450 }
else if (
fType <= 2) {
3467 }
else if (
fType == 3) {
3469 }
else if (
fType == 31) {
3474 }
else if (
fType == 41) {
3491 Fatal(
"ReadLeaves",
"The ReadLeaves function has not been configured for %s",
GetName());
3506 if ((n[0] < 0) || (n[0] >
fMaximum)) {
3511 Error(
"ReadLeaves",
"Incorrect size read for the container in %s\nThe size read is %d when the maximum is %d\nThe size is reset to 0 for this entry (%lld)",
GetName(), n[0],
fMaximum,
GetReadEntry());
3523 for (
Int_t i=0; i<nbranches; i++) {
3540 if (atype > 54)
return;
3549 if (!len_where)
return;
3554 for( k=0; k<
n; k++) {
3555 char **where = &(((
char**)
fAddress)[k]);
3559 case 1: {length = ((
Char_t*) len_where)[k];
break;}
3560 case 2: {length = ((
Short_t*) len_where)[k];
break;}
3561 case 3: {length = ((
Int_t*) len_where)[k];
break;}
3562 case 4: {length = ((
Long_t*) len_where)[k];
break;}
3564 case 6: {length = ((
Int_t*) len_where)[k];
break;}
3566 case 11: {length = ((
UChar_t*) len_where)[k];
break;}
3567 case 12: {length = ((
UShort_t*) len_where)[k];
break;}
3568 case 13: {length = ((
UInt_t*) len_where)[k];
break;}
3569 case 14: {length = ((
ULong_t*) len_where)[k];
break;}
3570 case 15: {length = ((
UInt_t*) len_where)[k];
break;}
3571 case 16: {length = ((
Long64_t*) len_where)[k];
break;}
3572 case 17: {length = ((
ULong64_t*)len_where)[k];
break;}
3573 case 18: {length = ((
Bool_t*) len_where)[k];
break;}
3577 if (length <= 0)
continue;
3578 if (isArray == 0)
continue;
3640 }
else if (
fType <= 2) {
3660 loc = counter.
Last(
']');
3664 countname += counter;
3670 Warning(
"ReadLeaves",
"Missing fBranchCount for %s. Data will not be read correctly by the MakeClass mode.",
GetName());
3760 Error(
"ReadLeaves",
"Incorrect size read for the container in %s\n\tThe size read is %d while the maximum is %d\n\tThe size is reset to 0 for this entry (%lld)",
GetName(), n,
fMaximum,
GetReadEntry());
3794 for (
Int_t i = 0; i < nbranches; ++i) {
3822 if( !
fNdata || *(
void**)proxy->
At( 0 ) != 0 )
3827 void **el = (
void**)proxy->
At( i );
3829 *el = elClass->
New();
3833 proxy->
Commit(alternate);
3859 if (info == 0)
return;
3900 if (info == 0)
return;
3931 if (info == 0)
return;
3964 Error(
"ReadLeaves",
"Incorrect size read for the container in %s\n\tThe size read is %d while the maximum is %d\n\tThe size is reset to 0 for this entry (%lld)",
GetName(), n,
fMaximum,
GetReadEntry());
4003 if (info==0)
return;
4011 char **end = arr +
fNdata;
4150 Fatal(
"FillLeaves",
"The FillLeaves function has not been configured for %s",
GetName());
4173 }
else if (
fType == 4) {
4178 Warning(
"ReleaseObject",
"Cannot delete allocated STL container because I do not have a proxy! branch: %s",
GetName());
4182 if (needDelete &&
fID >= 0) {
4189 proxy->
Clear(
"force");
4214 proxy->
Clear(
"force");
4218 proxy->
Clear(
"force");
4239 for (
Int_t i = 0; i < nbranches; ++i) {
4241 branch->
Reset(option);
4254 for (
Int_t i = 0; i < nbranches; ++i) {
4276 for (
Int_t i = 0; i < nbranches; ++i) {
4302 for (
Int_t i = 0; i < nb; ++i) {
4441 if (
Long_t(addr) == -1) {
4533 if (clm == content) {
4539 Warning(
"SetAddress",
"The type of the %s was changed from TClonesArray to %s but we do not have a TVirtualCollectionProxy for that container type!",
GetName(), newType->
GetName());
4565 }
else if (
fType == 4) {
4577 for (
Int_t i = 0; i < nbranches; ++i) {
4610 for (
Int_t i = 0; i < nbranches; ++i) {
4638 Error(
"SetAddress",
"For %s, we can not convert %s into %s\n",
4771 Error(
"SetAddress",
"Embedded TClonesArray given a zero address for branch '%s'",
GetName());
4787 Error(
"SetAddress",
"Embedded pointer to a TClonesArray given a zero address for branch '%s'",
GetName());
4791 }
else if (
fType == 4) {
4818 Error(
"SetAddress",
"Failed to allocate STL container for branch '%s'",
GetName());
4835 Error(
"SetAddress",
"Failed to allocate STL container for branch '%s'",
GetName());
4854 Error(
"SetAddress",
"Embedded STL container given a zero address for branch '%s'",
GetName());
4867 Error(
"SetAddress",
"Failed to allocate STL container for branch '%s'",
GetName());
4875 Error(
"SetAddress",
"Embedded pointer to an STL container given a zero address for branch '%s'",
GetName());
4879 }
else if (
fType == 41) {
4885 }
else if (
fID < 0) {
4905 Error(
"SetAddress",
"I have no TClass for branch %s, so I cannot allocate an I/O buffer!",
GetName());
4932 for (
Int_t i = 0; i < nbranches; ++i) {
4955 for (
Int_t i = 0; i < nbranches; ++i) {
4971 if (leafOfCounter && leaf) {
4974 if (!leafOfCounter) {
4975 Warning(
"SetBranchCount",
"Counter branch %s for branch %s has no leaves!", brOfCounter->
GetName(),
GetName());
4978 Warning(
"SetBranchCount",
"Branch %s has no leaves!",
GetName());
4997 for (
Int_t i = 0; i < nbranches; ++i) {
5065 original =
transient;
5068 }
else if (
fType == 31) {
5090 }
else if (
fType == 4) {
5092 }
else if (
fType == 41) {
5102 }
else if (
fType == 3) {
5104 }
else if (
fType == 31) {
5106 }
else if (
fType < 0) {
5108 }
else if (
fType <=2) {
5152 original =
transient;
5155 }
else if (
fType == 31) {
5178 }
else if (
fType == 4) {
5180 }
else if (
fType == 41) {
5192 }
else if (
fType == 3) {
5194 }
else if (
fType == 31) {
5196 }
else if (
fType < 0) {
5198 }
else if (
fType <=2) {
5220 if (name == 0)
return;
5236 for (
Int_t i = 0; i < nbranches; ++i) {
5327 void TBranchElement::Streamer(
TBuffer& R__b)
5391 else if (
fType == 4) {
5422 const char* motherFileName = treeFileName;
5423 if (mother && (mother !=
this)) {
5501 for (
Int_t elemID = 0; elemID <
ndata; ++elemID) {
5523 if ((btype == 31) || (btype == 41)) {
5535 unroll =
Unroll(name, clParent, clOfBase, ptr + offset, basketsize, splitlevel+splitSTLP, btype);
5594 Int_t subSplitlevel = splitlevel-1;
5595 if (btype == 31 || btype == 41 || elem->
CannotSplit()) {
5610 Int_t unroll =
Unroll(branchname, clParent, elemClass, ptr + offset, basketsize, splitlevel-1+splitSTLP, btype);
5622 splitSTLP &&
fType != 4 )
5627 basketsize, splitlevel - 1+splitSTLP, sinfo, elemID );
5635 Int_t subSplitlevel = splitlevel - 1;
5636 if ((btype == 31) || (btype == 41) || elem->
CannotSplit()) {
5640 TBranchElement* branch =
new TBranchElement(
this, branchname, sinfo, elemID, ptr + offset, basketsize, subSplitlevel+splitSTLP, btype);
Describe Streamer information for one class version.
TClassRef fTargetClass
Initialization flag to not endlessly recalculate offsets.
Long64_t GetReadEntry() const
virtual Int_t GetEntries() const
virtual const char * GetTitle() const
Returns title of object.
void SetBufferOffset(Int_t offset=0)
virtual Int_t GetCollectionType() const =0
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Int_t Unroll(const char *name, TClass *cltop, TClass *cl, char *ptr, Int_t basketsize, Int_t splitlevel, Int_t btype)
Split class cl into sub-branches of this branch.
Ssiz_t Last(char c) const
Find last occurrence of a character c.
void FillLeavesAssociativeCollectionMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual void WriteFloat16(Float_t *f, TStreamerElement *ele=0)=0
TStreamerInfo * BuildStreamerInfo(TClass *cl, void *pointer=0, Bool_t canOptimize=kTRUE)
Build StreamerInfo for class cl.
virtual void Print(Option_t *option="") const
Print branch parameters.
TBranchElement * fBranchCount2
TVirtualCollectionProxy * GetCollectionProxy()
Return the collection proxy describing the branch content, if any.
virtual Int_t GetProperties() const
virtual void * Allocate(UInt_t n, Bool_t forceDelete)=0
Int_t GetNelement() const
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
Int_t * GetEntryOffset() const
virtual void * GetValuePointer() const
Returns pointer to first data element of this branch.
virtual void UpdateFile()
Refresh the value of fDirectory (i.e.
T GetTypedValue(Int_t i, Int_t len, Bool_t subarr=kFALSE) const
Bool_t CanSplit() const
Return true if the data member of this TClass can be saved separately.
TVirtualStreamerInfo * fInfo
TStreamerInfo form which the action is derived.
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket...
virtual void SetAddress(void *add)
Set address of this branch.
void PrintValueClones(const char *name, TClonesArray *clones, Int_t i, Int_t eoffset, Int_t lenmax=1000) const
Print value of element i in a TClonesArray.
virtual TLeaf * FindLeaf(const char *name)
Find the leaf corresponding to the name 'searchname'.
ActionContainer_t fActions
T GetTypedValue(char *pointer, Int_t i, Int_t j, Int_t len) const
Return value of element i in object at pointer.
virtual TStreamerInfoActions::TActionSequence * GetReadMemberWiseActions(Int_t version)=0
virtual Int_t GetExpectedType(TClass *&clptr, EDataType &type)
Fill expectedClass and expectedType with information on the data type of the object/values contained ...
const char * GetTypeName() const
virtual TBranch * FindBranch(const char *name)
Find the immediate sub-branch with passed name.
virtual const char * GetName() const
Return name of this collection.
Int_t ApplySequence(const TStreamerInfoActions::TActionSequence &sequence, void *object)
Read one collection of objects from the buffer using the StreamerInfoLoopAction.
Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
#define R__unlikely(expr)
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void CreateIterators(void *collection, TVirtualCollectionProxy *proxy)
virtual TClass * GetClass() const =0
Long64_t fEntries
Pointer to the current basket.
virtual void InitInfo()
Init the streamer info for the branch class, try to compensate for class code unload/reload and schem...
virtual TStreamerInfoActions::TActionSequence * GetConversionReadMemberWiseActions(TClass *oldClass, Int_t version)=0
virtual Bool_t CannotSplit() const
Returns true if the element cannot be split, false otherwise.
virtual TClass * GetValueClass() const =0
virtual Long64_t GetReadEntry() const
All ROOT classes may have RTTI (run time type identification) support added.
R__EXTERN TVirtualMutex * gInterpreterMutex
Double_t GetValue(Int_t i, Int_t len, Bool_t subarr=kFALSE) const
T GetTypedValueSTLP(TVirtualCollectionProxy *cont, Int_t i, Int_t j, Int_t k, Int_t eoffset) const
Return value of element i in object number j in a TClonesArray and eventually element k in a sub-arra...
char * GetObject() const
Return a pointer to our object.
TString & ReplaceAll(const TString &s1, const TString &s2)
virtual void WriteDouble32(Double_t *d, TStreamerElement *ele=0)=0
virtual void SetLeafCount(TLeaf *leaf)
Set the leaf count of this leaf.
virtual void Reset(Option_t *option="")
Reset a Branch.
virtual void SetName(const char *name)
Change (i.e.
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
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...
void(TBranch::* ReadLeaves_t)(TBuffer &b)
After being read, the buffer will not be unziped.
virtual void Commit(void *)=0
virtual TLeaf * FindLeaf(const char *name)
Find the leaf corresponding to the name 'searchname'.
virtual void Print(Option_t *option="") const
Print TBranch parameters.
Long_t Property() const
Set TObject::fBits and fStreamerType to cache information about the class.
Buffer base class used for serializing objects.
void FillLeavesCollectionMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
void SetName(const char *new_name)
Bool_t IsPersistent() const
const Int_t kBranchObject
TClass * GetNewClass() const
void FillLeavesCustomStreamer(TBuffer &b)
Write leaves into i/o buffers for this branch.
TList * GetListOfDataMembers(Bool_t load=kTRUE)
Return list containing the TDataMembers of a class.
virtual Int_t WriteTObject(const TObject *obj, const char *name=0, Option_t *="", Int_t=0)
See TDirectoryFile::WriteTObject for details.
UInt_t fElemId
Identifier of the TStreamerElement.
Bool_t IsMissingCollection() const
Detect a collection written using a zero pointer in old versions of root.
Bool_t IsForeign() const
Return kTRUE is the class is Foreign (the class does not have a Streamer method). ...
virtual void SetAddress(void *addobj)
Point this branch at an object.
static void R__CleanName(std::string &name)
Remove trailing dimensions and make sure there is a trailing dot.
Short_t Min(Short_t a, Short_t b)
virtual void SetTargetClass(const char *name)
Set the name of the class of the in-memory object into which the data will loaded.
Long64_t GetDebugMin() const
const char * GetClassName()
virtual void Clear(const char *opt="")=0
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual void ForceWriteInfo(TVirtualStreamerInfo *info, Bool_t force)=0
void SetReadActionSequence()
Set the sequence of actions needed to read the data out of the buffer.
void ReadLeavesCollectionSplitVectorPtrMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
virtual Bool_t IsBase() const
Return kTRUE if the element represent a base class.
void MapObject(const TObject *obj, UInt_t offset=1)
Add object to the fMap container.
Int_t GetEntriesFast() const
void PrintValue(Int_t i) const
Prints values of leaves.
TString & Prepend(const char *cs)
UInt_t fCheckSum
collection interface (if any)
void FillLeavesCollectionSplitVectorPtrMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual EDataType GetType() const =0
void SetupAddressesImpl()
If the branch address is not set, we set all addresses starting with the top level parent branch...
TStreamerInfoActions::TActionSequence * fFillActionSequence
Set of actions to be executed to extract the data from the basket.
void CreateIterators(void *collection, TVirtualCollectionProxy *proxy)
Bool_t fInit
Place holder for the onfile representation of data members.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
static TActionSequence * CreateReadMemberWiseActions(TVirtualStreamerInfo *info, TVirtualCollectionProxy &proxy)
Create the bundle of the actions necessary for the streaming memberwise of the content described by '...
virtual TClass * GetCollectionClass() const
virtual TStreamerElement * GetElement(Int_t id) const =0
void ReadLeavesClones(TBuffer &b)
Read leaves into i/o buffers for this branch.
virtual TList * GetBrowsables()
Returns (and, if 0, creates) browsable objects for this branch See TVirtualBranchBrowsable::FillListO...
TActionSequence * CreateSubSequence(const std::vector< Int_t > &element_ids, size_t offset)
void ReadLeavesCustomStreamer(TBuffer &b)
Read leaves into i/o buffers for this branch.
virtual const char * GetClonesName() const
TList * GetListOfRealData() const
void FillLeavesCollection(TBuffer &b)
Write leaves into i/o buffers for this branch.
const char * Data() const
virtual TObject * FindObject(const char *name) const
Find an object in this collection using its name.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
void ReadLeavesMemberBranchCount(TBuffer &b)
Read leaves into i/o buffers for this branch.
Int_t fNdata
STL container type.
friend class TClonesArray
Double_t dot(const TVector2 &v1, const TVector2 &v2)
TVirtualArray * fOnfileObject
Pointer to object at *fAddress.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
void SetFillActionSequence()
Set the sequence of actions needed to write the data out from the buffer.
TStreamerInfoActions::TActionSequence * fReadActionSequence
List of the serial number of all the StreamerInfo to be used.
const char Int_t const char TProof Int_t stype
virtual void SetAddress(void *addr)
We are the top level branch.
TStreamerInfo * GetInfo() const
Get streamer info for the branch class.
const char * GetCountName() const
Bool_t IsCompiled() const
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
void ReadLeavesCollectionSplitPtrMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
std::map< std::string, std::string >::const_iterator iter
virtual TBranch * FindBranch(const char *name)
Find the immediate sub-branch with passed name.
void BuildTitle(const char *name)
Set branch and leaf name and title in the case of a container sub-branch.
virtual void ResetDeleteObject()
Release ownership of any allocated objects.
void FillLeavesClones(TBuffer &b)
Write leaves into i/o buffers for this branch.
void FillLeavesClonesMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual void SetBasketSize(Int_t buffsize)
Reset the basket size for all sub-branches of this branch element.
void ReadLeavesMemberCounter(TBuffer &b)
Read leaves into i/o buffers for this branch.
if(pyself &&pyself!=Py_None)
virtual Bool_t IsaPointer() const
const Int_t kDoNotProcess
virtual const char * GetParentName() const
T GetTypedValueSTL(TVirtualCollectionProxy *cont, Int_t i, Int_t j, Int_t k, Int_t eoffset) const
Return value of element i in object number j in a TClonesArray and eventually element k in a sub-arra...
TString & Append(const char *cs)
Int_t * fBranchOffset
Reference to class definition in fClonesName.
TVirtualCollectionProxy * fCollProxy
Long64_t GetEntries() const
virtual Bool_t SetMakeClass(Bool_t decomposeObj=kTRUE)
Set the branch in a mode where the object are decomposed (Also known as MakeClass mode)...
virtual void Browse(TBrowser *b)
Browse the branch content.
TObjArray * GetListOfBranches()
TClass * GetClass() const
void FillLeavesMemberCounter(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void FillLeavesMemberBranchCount(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all branches of a BranchElement and return total number of bytes.
virtual void SetAddress(void *add=0)
A branch containing and managing a TRefTable for TRef autoloading.
void SetFillLeavesPtr()
Set the FillLeaves pointer to execute the expected operations.
virtual void ResetAfterMerge(TFileMergeInfo *)
Reset a Branch after a Merge operation (drop data but keep customizations)
Int_t GetClassVersion() const
TVirtualStreamerInfo * FindStreamerInfo(TObjArray *arr, UInt_t checksum) const
Find the TVirtualStreamerInfo in the StreamerInfos corresponding to checksum.
UInt_t GetCheckSum(ECheckSum code=kCurrentCheckSum) const
Call GetCheckSum with validity check.
ROOT::ESTLType UnderlyingIsSTLCont(std::string_view type)
Return the type of STL collection, if any, that is the underlying type of the given type...
Int_t fSplitLevel
Number of baskets in memory.
virtual void ResetAddress()
Set branch address to zero and free all allocated memory.
void ReadLeavesClonesMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
virtual void ResetAfterMerge(TFileMergeInfo *)
Reset a Branch.
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
Bool_t GetMakeClass() const
Return whether this branch is in a mode where the object are decomposed or not (Also known as MakeCla...
virtual TFile * GetFile() const
virtual void Destructor(void *p, Bool_t dtorOnly=kFALSE) const
void PrintValue(const char *name, char *pointer, Int_t i, Int_t len, Int_t lenmax=1000) const
print value of element i in object at pointer The function may be called in two ways: -method1 len < ...
virtual Int_t GetMaximum() const
virtual Int_t Fill()
Loop on all leaves of this branch to fill Basket buffer.
TObject * UncheckedAt(Int_t i) const
TRealData * GetRealData(const char *name) const
Return pointer to TRealData element with name "name".
void FillLeavesMakeClass(TBuffer &b)
Write leaves into i/o buffers for this branch.
void BuildRealData(void *pointer=0, Bool_t isTransient=kFALSE)
Build a full list of persistent data members.
Int_t ApplySequenceVecPtr(const TStreamerInfoActions::TActionSequence &sequence, void *start_collection, void *end_collection)
Read one collection of objects from the buffer using the StreamerInfoLoopAction.
Using a TBrowser one can browse all ROOT objects.
Bool_t HasRuleWithSourceClass(const TString &source) const
Return True if we have any rule whose source class is 'source'.
void SetParentClass(TClass *clparent)
const char * GetTypeName() const
Get type of data member, e,g.: "class TDirectory*" -> "TDirectory".
virtual void ls(Option_t *option="") const
Print the content of the element.
virtual Int_t Fill()
Loop on all leaves of this branch to fill the basket buffer.
Int_t IndexOf(const TObject *obj) const
Small helper class to generically acquire and release iterators.
Double_t length(const TVector2 &v)
TObjArray * GetElements() const
void ReadLeavesCollection(TBuffer &b)
Read leaves into i/o buffers for this branch.
virtual void SetupAddresses()
If the branch address is not set, we set all addresses starting with the top level parent branch...
Wrapper around an object and giving indirect access to its content even if the object is not of a cla...
TVirtualStreamerInfo * GetStreamerInfo(Int_t version=0) const
returns a pointer to the TVirtualStreamerInfo object for version If the object does not exist...
virtual void SetType(Int_t btype)
virtual Int_t ApplySequence(const TStreamerInfoActions::TActionSequence &sequence, void *object)=0
Basic data type descriptor (datatype information is obtained from CINT).
const char * GetTypeNameBasic() const
Return type name of this element in case the type name is not a standard basic type, return the basic type name known to CINT.
TClassRef fParentClass
Reference to current (transient) class definition.
TVirtualStreamerInfo * GetConversionStreamerInfo(const char *onfile_classname, Int_t version) const
Return a Conversion StreamerInfo from the class 'classname' for version number 'version' to this clas...
TDirectory * GetDirectory() const
virtual void UpdateFile()
Refresh the value of fDirectory (i.e.
Bool_t IsFolder() const
Return kTRUE if more than one leaf, kFALSE otherwise.
virtual Bool_t HasPointers() const =0
static TActionSequence * CreateWriteMemberWiseActions(TVirtualStreamerInfo *info, TVirtualCollectionProxy &proxy)
Create the bundle of the actions necessary for the streaming memberwise of the content described by '...
void Destructor(void *obj, Bool_t dtorOnly=kFALSE)
Explicitly call destructor for object.
TBranch * GetMother() const
Get our top-level parent branch in the tree.
UInt_t GetCheckSum() const
TBranchElement * fBranchCount
Number of data in this branch.
TClass * GetParentClass()
Return a pointer to the parent class of the branch element.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Bool_t TestBit(UInt_t f) const
void SetReadLeavesPtr()
Set the ReadLeaves pointer to execute the expected operations.
virtual TStreamerInfoActions::TActionSequence * GetWriteMemberWiseActions()=0
TClass * GetCurrentClass()
Return a pointer to the current type of the data member corresponding to branch element.
void ReadLeavesImpl(TBuffer &b)
Unconfiguration Read Leave function.
Manages buffers for branches of a Tree.
void Init(TTree *tree, TBranch *parent, const char *name, TStreamerInfo *sinfo, Int_t id, char *pointer, Int_t basketsize=32000, Int_t splitlevel=0, Int_t btype=0)
Init when the branch object is not a TClonesArray nor an STL container.
virtual TBranchRef * GetBranchRef() const
TClassRef fCurrentClass
Reference to the target in-memory class.
virtual void * New() const
The TRealData class manages the effective list of all data members for a given class.
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all leaves of entry and return total number of bytes read.
Bool_t CanIgnoreTObjectStreamer()
virtual const char * GetName() const
Returns name of object.
TSubString Strip(EStripType s=kTrailing, char c= ' ') const
Return a substring of self stripped at beginning and/or end.
The ROOT global object gROOT contains a list of all defined classes.
TClassRef fBranchClass
Reference to class definition in fParentName.
void Print(Option_t *="") const
This method must be overridden when a class wants to print itself.
TBranch * GetSubBranch(const TBranch *br) const
Find the parent branch of child.
Version_t GetClassVersion() const
TStreamerInfoActions::TActionSequence * GetReadMemberWiseActions(Bool_t forCollection)
virtual void ReadFastArray(Bool_t *b, Int_t n)=0
virtual Int_t GetMaximum() const
Return maximum count value of the branchcount if any.
void ValidateAddress() const
virtual void WriteFastArray(const Bool_t *b, Int_t n)=0
virtual TClass * GetClass() const
A TLeaf for the general case when using the branches created via a TStreamerInfo (i.e.
TStreamerInfo * GetInfoImp() const
Get streamer info for the branch class.
A Branch for the case of an object.
Int_t GetCompressionSettings() const
virtual void SetRequestedEntry(Long64_t entry)
virtual void SetBasketSize(Int_t buffsize)
Set the basket size The function makes sure that the basket size is greater than fEntryOffsetlen.
virtual void ReadFloat16(Float_t *f, TStreamerElement *ele=0)=0
TString & Remove(Ssiz_t pos)
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
Bool_t IsLoaded() const
Return true if the shared library of this class is currently in the a process's memory.
void SetBranchCount(TBranchElement *bre)
Set the branch counter for this branch.
virtual Int_t ApplySequenceVecPtr(const TStreamerInfoActions::TActionSequence &sequence, void *start_collection, void *end_collection)=0
const char * GetCountName() const
virtual void MapObject(const TObject *obj, UInt_t offset=1)=0
virtual Int_t GetSize() const
virtual const char * GetTypeName() const
Return type name of element in the branch.
TStreamerElement * GetStreamerElement(const char *datamember, Int_t &offset) const
Return the StreamerElement of "datamember" inside our class or any of its base classes.
T GetTypedValueClones(TClonesArray *clones, Int_t i, Int_t j, Int_t k, Int_t eoffset) const
Int_t fReadBasket
Number of leaves.
const char * GetIconName() const
Return icon name depending on type of branch element.
virtual void ResetAddress()
Reset the address of the branch.
virtual TObjArray * GetElements() const =0
virtual TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
void FillLeavesMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
void(TBranch::* FillLeaves_t)(TBuffer &b)
Pointer to the ReadLeaves implementation to use.
TClass * GetClass() const
Describe directory structure in memory.
unsigned long long ULong64_t
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
void SetBranchCount2(TBranchElement *bre)
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
virtual void SetObject(void *objadd)
Set object this branch is pointing to.
Bool_t IsAutoDelete() const
Return kTRUE if an existing object in a TBranchObject must be deleted.
Int_t fBranchID
Sub-Branch offsets with respect to current transient class.
std::vector< Int_t > fIDs
ID number assigned by a TRefTable.
TBranchElement()
Default and I/O constructor.
ClassImp(TBranchElement) namespace
virtual void * At(UInt_t idx)=0
TClassStreamer * GetStreamer() const
Return the Streamer Class allowing streaming (if any).
virtual Int_t SetParent(const TObject *obj, Int_t branchID)
Set the current parent branch.
#define R__LOCKGUARD(mutex)
void Browse(TBrowser *b)
Browse this collection (called by TBrowser).
TObjArray * GetListOfLeaves()
Int_t GetEntries() const
Return the number of objects in array (i.e.
virtual const char * GetClassName() const
Return the name of the user class whose content is stored in this branch, if any. ...
TDirectory * fDirectory
Address of 1st leaf (variable or object)
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.
const char * GetFileName() const
TClassRef fClonesClass
Reference to class definition in fClassName.
virtual void SetOffset(Int_t offset)
Set offset of the object (to which the data member represented by this branch belongs) inside its con...
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
TDataMember * GetDataMember(const char *datamember) const
Return pointer to datamember object with name "datamember".
void ReadLeavesMakeClass(TBuffer &b)
Read leaves into i/o buffers for this branch.
TClass * GetClass() const
Mother of all ROOT objects.
virtual void ReadDouble32(Double_t *d, TStreamerElement *ele=0)=0
A Branch handling STL collection of pointers (vectors, lists, queues, sets and multisets) while stori...
TClass * GetClass() const
virtual UInt_t Size() const =0
Bool_t fInitOffsets
Initialization flag for branch assignment.
TClassRef is used to implement a permanent reference to a TClass object.
An array of clone (identical) objects.
virtual ~TBranchElement()
Destructor.
static void SwitchContainer(TObjArray *)
Modify the container type of the branches.
void FillLeavesCollectionSplitPtrMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual void ExpandCreateFast(Int_t n)
Expand or shrink the array to n elements and create the clone objects by calling their default ctor...
virtual char * GetAddress() const
Get the branch address.
virtual void Add(TObject *obj)
char * GetObjectAt(UInt_t ind) const
virtual Int_t GetLenStatic() const
virtual void Reset(Option_t *option="")
Reset a Branch.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
void FillLeavesImpl(TBuffer &b)
Unconfiguration Fill Leave function.
virtual Bool_t IsWritable() const
TVirtualCollectionIterators * fWriteIterators
holds the iterators when the branch is of fType==4.
Int_t GetNevBufSize() const
Long64_t fReadEntry
Current basket number when reading.
TVirtualCollectionIterators * fIterators
Set of actions to be executed to write the data to the basket.
TBranch * fMother
Pointer to Tree header.
const ROOT::Detail::TSchemaRuleSet * GetSchemaRules() const
Return the set of the schema rules if any.
TStreamerElement * GetElement(Int_t id) const
ClassImp(TSlaveInfo) Int_t TSlaveInfo const TSlaveInfo * si
Used to sort slaveinfos by ordinal.
ROOT::ESTLType GetCollectionType() const
Return the 'type' of the STL the TClass is representing.
const TObjArray * GetStreamerInfos() const
char * fObject
Pointer to StreamerInfo.
A TTree object has a header with a name and a title.
TObject ** GetObjectRef() const
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
Int_t GetMakeClass() const
Bool_t IsFolder() const
Return kTRUE if more than one leaf or browsables, kFALSE otherwise.
TObject * At(Int_t idx) const
virtual const char * GetFullName() const
Return element name including dimensions, if any Note that this function stores the name into a stati...
void Streamer(void *obj, TBuffer &b, const TClass *onfile_class=0) const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
A TTree is a list of TBranches.
Abstract Interface class describing Streamer information for one class.
Int_t fCompress
branch counter
Long_t GetThisOffset() const
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
TString fFileName
Pointer to directory where this branch buffers are stored.
Base class of the Configurations.
void PrintValueSTL(const char *name, TVirtualCollectionProxy *cont, Int_t i, Int_t eoffset, Int_t lenmax=1000) const
Print value of element i in a TClonesArray.
TVirtualCollectionPtrIterators * fPtrIterators
holds the read (non-staging) iterators when the branch is of fType==4 and associative containers...
TBranch * fParent
Pointer to top-level parent branch in the tree.
void CopyCollectionProxy(const TVirtualCollectionProxy &)
Copy the argument.
void ReadLeavesMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
Int_t GetStreamerType() const
Int_t GetDefaultEntryOffsetLen() const
Ssiz_t First(char c) const
Find first occurrence of a character c.
virtual void InitializeOffsets()
Initialize the base class subobjects offsets of our sub-branches and set fOffset if we are a containe...
TStreamerInfoActions::TActionSequence * GetWriteMemberWiseActions(Bool_t forCollection)
TVirtualStreamerInfo * GetStreamerInfoAbstractEmulated(Int_t version=0) const
For the case where the requestor class is emulated and this class is abstract, returns a pointer to t...
virtual TObjArray * GetListOfLeaves()
virtual TVirtualCollectionProxy * Generate() const =0
void ReadLeavesCollectionMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
void ReleaseObject()
Delete any object we may have allocated on a previous call to SetAddress.
void AddToOffset(Int_t delta)
virtual void SetAutoDelete(Bool_t autodel=kTRUE)
Set the automatic delete bit.
char * fAddress
Pointer to parent branch.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.