125 printf(
"%d",(
Int_t)value[
l]);
138 if (
fLeafCount->GetBranch()->GetReadEntry() != entry) {
143 printf(
"ERROR leaf:%s, len=%d and max=%d\n",
GetName(),len,
fLeafCount->GetMaximum());
175 for (
Int_t i=0;i<fLen;i++) s >> value[i];
int Int_t
Signed integer 4 bytes (int).
char Char_t
Character 1 byte (char).
long long Long64_t
Portable signed long integer 8 bytes.
A TTree is a list of TBranches.
Buffer base class used for serializing objects.
void Export(TClonesArray *list, Int_t n) override
Export element from local leaf buffer to ClonesArray.
void * GetValuePointer() const override
bool ** fPointer
! Address of a pointer to data buffer!
bool * fValue
! Pointer to data buffer
virtual void SetMaximum(bool max)
bool fMaximum
Maximum value if leaf range is specified.
void ReadBasket(TBuffer &b) override
Read leaf elements from Basket input buffer.
void PrintValue(Int_t i=0) const override
Prints leaf value.
bool fMinimum
Minimum value if leaf range is specified.
void ReadBasketExport(TBuffer &b, TClonesArray *list, Int_t n) override
Read leaf elements from Basket input buffer and export buffer to TClonesArray objects.
TLeafO()
Default constructor for LeafO.
void FillBasket(TBuffer &b) override
Pack leaf elements in Basket output buffer.
const char * GetTypeName() const override
Returns name of leaf type.
virtual void SetMinimum(bool min)
bool IncludeRange(TLeaf *) override
Copy/set fMinimum and fMaximum to include/be wide than those of the parameter.
~TLeafO() override
Default destructor for a LeafO.
void ReadValue(std::istream &s, Char_t delim=' ') override
Read a string from std::istream s and store it into the branch buffer.
void Import(TClonesArray *list, Int_t n) override
Import element from ClonesArray into local leaf buffer.
void SetAddress(void *add=nullptr) override
Set leaf buffer data address.
TLeaf(const TLeaf &)
Copy constructor.
Int_t fLenType
Number of bytes for this data type.
virtual Int_t GetMaximum() const
Int_t fLen
Number of fixed length elements in the leaf's data.
Int_t fNdata
! Number of elements in fAddress data buffer.
virtual Int_t GetLen() const
Return the number of effective elements of this leaf, for the current entry.
Int_t ResetAddress(void *add, bool calledFromDestructor=false)
Helper routine for TLeafX::SetAddress.
Int_t fOffset
Offset in ClonesArray object (if one).
virtual Int_t GetMinimum() const
TBranch * fBranch
! Pointer to supporting branch (we do not own the branch)
TLeaf * fLeafCount
Pointer to Leaf count if variable length (we do not own the counter).
@ kIndirectAddress
Data member is a pointer to an array of basic types.
virtual bool IsRange() const
const char * GetName() const override
Returns name of object.
friend class TClonesArray
Bool_t TestBit(UInt_t f) const