12 #ifndef ROOT_TBranchProxy
13 #define ROOT_TBranchProxy
15 #ifndef ROOT_TBranchProxyDirector
24 #ifndef ROOT_TClonesArray
30 #ifndef ROOT_Riostream
36 #ifndef ROOT_TVirtualCollectionProxy
115 virtual void Print();
234 location = (
char*)tca->
At(i);
252 location = (
char*)tca->
At(i);
255 if (location) location +=
fOffset;
259 return *(
void**)(location);
299 if (location) location +=
fOffset;
303 return *(
void**)(location);
322 std::cout <<
"fWhere " <<
fWhere << std::endl;
323 if (
fWhere) std::cout <<
"value? " << *(
unsigned char*)
GetStart() << std::endl;
337 static unsigned char default_val;
338 if (!
Read())
return default_val;
340 unsigned char* str = (
unsigned char*)
GetStart();
352 operator const char*() {
353 if (!
Read())
return "";
358 if (!
Read())
return "";
363 if (!
Read())
return "";
367 operator std::string() {
368 if (!
Read())
return "";
369 return std::string((
const char*)
GetStart());
380 std::cout <<
"fWhere " <<
fWhere << std::endl;
385 std::cout <<
"location " <<
fWhere << std::endl;
401 if (!
Read())
return 0;
422 std::cout <<
"fWhere " <<
fWhere << std::endl;
427 std::cout <<
"location " <<
fWhere << std::endl;
443 if (!
Read())
return 0;
463 std::cout <<
"fWhere " <<
fWhere << std::endl;
478 if (!
Read())
return 0;
485 #define private_was_replaced
491 #ifdef private_was_replaced
492 #define private public
532 typedef typename T::array_t
array_t;
537 std::cout <<
"fWhere " <<
GetWhere() << std::endl;
543 if (!
Read())
return default_val;
547 if (arr)
return arr[i];
548 else return default_val;
563 std::cout <<
"fWhere " <<
fWhere << std::endl;
578 static T default_val;
579 if (!
Read())
return default_val;
580 if (
fWhere==0)
return default_val;
584 if (temp)
return *temp;
585 else return default_val;
595 #define private_was_replaced
601 #ifdef private_was_replaced
602 #define private public
615 std::cout <<
"fWhere " <<
fWhere << std::endl;
630 static T default_val;
631 if (!
Read())
return default_val;
632 if (
fWhere==0)
return default_val;
636 if (temp)
return *temp;
637 else return default_val;
646 #define private_was_replaced
652 #ifdef private_was_replaced
653 #define private public
668 std::cout <<
"fWhere " <<
fWhere << std::endl;
684 if (!
Read())
return &default_val;
685 if (
fWhere==0)
return &default_val;
705 std::cout <<
"fWhere " <<
fWhere << std::endl;
721 if (!
Read())
return &default_val;
722 if (
fWhere==0)
return &default_val;
TStlArrayProxy< TArrayType< Bool_t > > TStlArrayBoolProxy
TStlArrayProxy< TArrayType< Int_t > > TStlArrayIntProxy
TImpProxy< Double32_t > TDouble32Proxy
TStlArrayProxy< TArrayType< Double_t > > TStlArrayDoubleProxy
Long64_t GetReadEntry() const
TArrayProxy< TArrayType< Double_t > > TArrayDoubleProxy
TClaImpProxy< Float_t > TClaFloatProxy
TStlArrayProxy< TArrayType< UShort_t > > TStlArrayUShortProxy
const array_t & operator[](Int_t i)
TArrayCharProxy(TBranchProxyDirector *director, const char *name)
const TString fDataMember
TStlArrayProxy< TArrayType< Long64_t > > TStlArrayLong64Proxy
TStlImpProxy< Float16_t > TStlFloat16Proxy
TArrayProxy(TBranchProxyDirector *director, const char *top, const char *name)
TArrayProxy< TArrayType< Long64_t > > TArrayLong64Proxy
Int_t GetLast() const
Return index of last object in array.
TStlImpProxy< ULong64_t > TStlULong64Proxy
TStlImpProxy(TBranchProxyDirector *director, const char *name)
TImpProxy< Double_t > TDoubleProxy
const TVirtualCollectionProxy * operator->()
TStlArrayProxy< TArrayType< UChar_t > > TStlArrayUCharProxy
TImpProxy< ULong64_t > TULong64Proxy
TStlArrayProxy< TArrayType< UShort_t > > TStlArrayShortProxy
TArrayProxy< TArrayType< Long_t > > TArrayLongProxy
TClaImpProxy< UInt_t > TClaUIntProxy
TClaArrayProxy< TArrayType< Char_t > > TClaArrayCharProxy
TImpProxy< Char_t > TCharProxy
TStlImpProxy< Long64_t > TStlLong64Proxy
TClaArrayProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
const TClonesArray * operator->()
TArrayProxy< TArrayType< UShort_t > > TArrayUShortProxy
TStreamerElement * fElement
TArrayProxy< TArrayType< Double32_t > > TArrayDouble32Proxy
TClaImpProxy< Float16_t > TClaFloat16Proxy
TStlProxy(TBranchProxyDirector *director, const char *name)
virtual void * GetStart(UInt_t=0)
TImpProxy< Float_t > TFloatProxy
TStlArrayProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TClaArrayProxy(TBranchProxyDirector *director, const char *top, const char *name)
TClaImpProxy< Long_t > TClaLongProxy
TImpProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TStlProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TClaImpProxy< UShort_t > TClaUShortProxy
TStlProxy(TBranchProxyDirector *director, const char *top, const char *name)
TArrayProxy< TArrayType< ULong_t > > TArrayULongProxy
TClaImpProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TClaArrayProxy< TArrayType< UInt_t > > TClaArrayUIntProxy
const char * Data() const
TStlArrayProxy< TArrayType< ULong_t > > TStlArrayULongProxy
TStlImpProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TImpProxy(TBranchProxyDirector *director, TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TArrayProxy(TBranchProxyDirector *director, TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TStlArrayProxy< TArrayType< Float16_t > > TStlArrayFloat16Proxy
TStlImpProxy< Short_t > TStlShortProxy
const TString fBranchName
TArrayProxy< TArrayType< UChar_t > > TArrayUCharProxy
TStlArrayProxy< TArrayType< ULong64_t > > TStlArrayULong64Proxy
TArrayProxy< TArrayType< Bool_t > > TArrayBoolProxy
TClaArrayProxy(TBranchProxyDirector *director, TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TClaProxy(TBranchProxyDirector *director, const char *top, const char *name)
TClaArrayProxy< TArrayType< UChar_t > > TClaArrayUCharProxy
TStlImpProxy< Int_t > TStlIntProxy
TClaImpProxy< UChar_t > TClaUCharProxy
const T & operator[](Int_t i)
TImpProxy< Int_t > TIntProxy
TClaProxy(TBranchProxyDirector *director, TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
array_t * operator[](Int_t i)
TClaArrayProxy< TArrayType< UShort_t > > TClaArrayShortProxy
TStlImpProxy & operator=(T)
virtual void * GetClaStart(UInt_t i=0)
TStlImpProxy(TBranchProxyDirector *director, TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TClaArrayProxy< TArrayType< Long_t > > TClaArrayLongProxy
TStlImpProxy< ULong_t > TStlULongProxy
virtual Int_t GetTreeNumber() const
TStlImpProxy< Char_t > TStlCharProxy
TArrayProxy< TArrayType< Float16_t > > TArrayFloat16Proxy
TImpProxy< UChar_t > TUCharProxy
TClaImpProxy< Short_t > TClaShortProxy
char * Form(const char *fmt,...)
TArrayProxy< TArrayType< Int_t > > TArrayIntProxy
TArrayCharProxy(TBranchProxyDirector *director, TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TImpProxy(TBranchProxyDirector *director, const char *name)
TClaArrayProxy< TArrayType< Double_t > > TClaArrayDoubleProxy
TClaArrayProxy< TArrayType< Float16_t > > TClaArrayFloat16Proxy
TClaArrayProxy< TArrayType< UShort_t > > TClaArrayUShortProxy
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all leaves of entry and return total number of bytes read.
The ROOT global object gROOT contains a list of all defined classes.
TClaImpProxy< ULong_t > TClaULongProxy
TClaImpProxy< Double_t > TClaDoubleProxy
TImpProxy< Short_t > TShortProxy
TImpProxy< Long_t > TLongProxy
TClaImpProxy< ULong64_t > TClaULong64Proxy
TClaImpProxy< Long64_t > TClaLong64Proxy
TStlImpProxy< Double32_t > TStlDouble32Proxy
const T & operator[](Int_t i)
const TVirtualCollectionProxy * GetPtr()
TClaImpProxy< Bool_t > TClaBoolProxy
TArrayProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TArrayProxy< TArrayType< ULong64_t > > TArrayULong64Proxy
TStlImpProxy< Float_t > TStlFloatProxy
TArrayCharProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TClaArrayProxy< TArrayType< Int_t > > TClaArrayIntProxy
TClaImpProxy< Double32_t > TClaDouble32Proxy
TVirtualCollectionProxy * GetCollection()
TImpProxy< ULong_t > TULongProxy
TStlArrayProxy(TBranchProxyDirector *director, const char *name)
const char * GetBranchName() const
Bool_t IsaPointer() const
TStlImpProxy< UInt_t > TStlUIntProxy
TClaImpProxy(TBranchProxyDirector *director, TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TClaArrayProxy< TArrayType< Long64_t > > TClaArrayLong64Proxy
virtual void * At(UInt_t idx)=0
TStlArrayProxy< TArrayType< Char_t > > TStlArrayCharProxy
TClaArrayProxy< TArrayType< Double32_t > > TClaArrayDouble32Proxy
TImpProxy< Bool_t > TBoolProxy
virtual void * GetStlStart(UInt_t i=0)
TClaImpProxy(TBranchProxyDirector *director, const char *top, const char *name)
TClaArrayProxy< TArrayType< Bool_t > > TClaArrayBoolProxy
TImpProxy< UShort_t > TUShortProxy
Internal::TBranchProxyDirector * fDirector
Int_t GetEntries() const
Return the number of objects in array (i.e.
TClaArrayProxy(TBranchProxyDirector *director, const char *name)
TStlImpProxy< Long_t > TStlLongProxy
TArrayProxy< TArrayType< Float_t > > TArrayFloatProxy
TStlImpProxy< UChar_t > TStlUCharProxy
TArrayProxy< TArrayType< UShort_t > > TArrayShortProxy
TArrayProxy(TBranchProxyDirector *director, const char *name)
TStlProxy(TBranchProxyDirector *director, TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TClaProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TImpProxy< UInt_t > TUIntProxy
virtual UInt_t Size() const =0
const TClonesArray * GetPtr()
TArrayProxy< TArrayType< UInt_t > > TArrayUIntProxy
TStlArrayProxy< TArrayType< Float_t > > TStlArrayFloatProxy
TClaImpProxy< Int_t > TClaIntProxy
An array of clone (identical) objects.
TStlImpProxy< Double_t > TStlDoubleProxy
TImpProxy(TBranchProxyDirector *director, const char *top, const char *name)
TClaProxy(TBranchProxyDirector *director, const char *name)
TBranchProxyHelper(const char *left, const char *right=0)
TStlArrayProxy< TArrayType< Long_t > > TStlArrayLongProxy
TImpProxy< Long64_t > TLong64Proxy
TArrayCharProxy(TBranchProxyDirector *director, const char *top, const char *name)
TStlArrayProxy(TBranchProxyDirector *director, TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TBranchProxy * GetProxy()
TClaImpProxy< Char_t > TClaCharProxy
TClaImpProxy & operator=(T)
TStlArrayProxy< TArrayType< UInt_t > > TStlArrayUIntProxy
TStlArrayProxy< TArrayType< Double32_t > > TStlArrayDouble32Proxy
TClaImpProxy(TBranchProxyDirector *director, const char *name)
A TTree object has a header with a name and a title.
const array_t & At(UInt_t i)
TStlImpProxy< Bool_t > TStlBoolProxy
TImpProxy< Float16_t > TFloat16Proxy
TStlArrayProxy(TBranchProxyDirector *director, const char *top, const char *name)
TClaArrayProxy< TArrayType< Float_t > > TClaArrayFloatProxy
TObject * At(Int_t idx) const
array_t * operator[](Int_t i)
A TTree is a list of TBranches.
TClaArrayProxy< TArrayType< ULong64_t > > TClaArrayULong64Proxy
unsigned char operator[](Int_t i)
TVirtualCollectionProxy * fCollection
unsigned char At(UInt_t i)
TClaArrayProxy< TArrayType< ULong_t > > TClaArrayULongProxy
void Error(ErrorHandler_t func, int code, const char *va_(fmt),...)
Write error message and call a handler, if required.
TStlImpProxy(TBranchProxyDirector *director, const char *top, const char *name)
TStlImpProxy< UShort_t > TStlUShortProxy