/* $Id$ */
+//-----------------------------------------------------
+// A Branch for the case of an array of clone objects.
+//-----------------------------------------------------
+// Author M.Ivanov
+//*KEND.
+
#include "TROOT.h"
#include "AliArrayBranch.h"
#include "TFile.h"
#include "AliObjectArray.h"
#include "AliDataType.h"
-//-----------------------------------------------------
-// A Branch for the case of an array of clone objects.
-//-----------------------------------------------------
-
-//*KEND.
R__EXTERN TTree *gTree;
}
//______________________________________________________________________________
-Int_t AliArrayBranch::GetEntry(Int_t entry, Int_t getall)
+Int_t AliArrayBranch::GetEntry(Long64_t entry, Int_t getall)
{
//*-*-*-*-*Read all branches of a BranchClones and return total number of bytes
//*-* ====================================================================
void AliArrayBranch::Import(TLeaf * leaf, Int_t n)
{
+ //
+ // Import leaf n from the branch
+ //
const Int_t kIntUndefined = -9999;
Int_t j = 0;
fBasketSize = basketsize;
fAddress = (char*)addobj;
fClassName = classname;
+#if ROOT_VERSION_CODE >= 262401
+ fBasketEntry = new Long64_t[fMaxBaskets];
+#else
fBasketEntry = new Int_t[fMaxBaskets];
+#endif
fBasketBytes = new Int_t[fMaxBaskets];
+#if ROOT_VERSION_CODE >= 262146
+ fBasketSeek = new Long64_t[fMaxBaskets];
+#else
fBasketSeek = new Seek_t[fMaxBaskets];
+#endif
fOldObject = 0;
fBasketEntry[0] = fEntryNumber;
TBranch * AliTree::AliBranch(const char *name, void *clonesaddress, Int_t bufsize, Int_t splitlevel,
Int_t compres)
{
+ //
+ // Create an AliBranch and returns a reference to the TBranch
+ //
if (clonesaddress == 0) return 0;
char *cpointer =(char*)clonesaddress;
char **ppointer =(char**)cpointer;
TBranch* AliTree::AliBranch(const char *name, const char *classname, void *addobj,
Int_t bufsize, Int_t splitlevel)
{
+ //
+ // Create an AliBranch and returns a reference to the TBranch
+ //
gTree = this;
TClass *cl = gROOT->GetClass(classname);
if (!cl) {