85 const Double_t kDoubleUndefined = -9999.;
89 clone = (
char*)list->UncheckedAt(i);
94 fValue[j + k] = kDoubleUndefined;
105 printf(
"%g",value[
l]);
118 if (
fLeafCount->GetBranch()->GetReadEntry() != entry) {
123 printf(
"ERROR leaf:%s, len=%d and max=%d\n",
GetName(),len,
fLeafCount->GetMaximum());
161 for (
Int_t i=0;i<fLen;i++) s >> value[i];
#define R__unlikely(expr)
int Int_t
Signed integer 4 bytes (int).
char Char_t
Character 1 byte (char).
double Double_t
Double 8 bytes.
long long Long64_t
Portable signed long integer 8 bytes.
A TTree is a list of TBranches.
Buffer base class used for serializing objects.
Bool_t ByteSwapBuffer(Long64_t n, EDataType type)
Byte-swap N primitive-elements in the buffer.
void * GetValuePointer() const override
bool ReadBasketFast(TBuffer &, Long64_t) override
void FillBasket(TBuffer &b) override
Pack leaf elements in Basket output buffer.
Double_t fMaximum
Maximum value if leaf range is specified.
void SetAddress(void *add=nullptr) override
Set leaf buffer data address.
Double_t * fValue
! Pointer to data buffer
void ReadValue(std::istream &s, Char_t delim=' ') override
Read a double from std::istream s and store it into the branch buffer.
Double_t fMinimum
Minimum value if leaf range is specified.
~TLeafD() override
Default destructor for a LeafD.
void PrintValue(Int_t i=0) const override
Prints leaf value.
TLeafD()
Default constructor for LeafD.
Double_t ** fPointer
! Address of pointer to data buffer
void ReadBasket(TBuffer &b) override
Read leaf elements from Basket input buffer.
void Export(TClonesArray *list, Int_t n) override
Export element from local leaf buffer to ClonesArray.
void Import(TClonesArray *list, Int_t n) override
Import element from ClonesArray into local leaf buffer.
void ReadBasketExport(TBuffer &b, TClonesArray *list, Int_t n) override
Read leaf elements from Basket input buffer and export buffer to TClonesArray objects.
TLeaf(const TLeaf &)
Copy constructor.
Int_t fLenType
Number of bytes for this data type.
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).
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.
const char * GetName() const override
Returns name of object.
friend class TClonesArray
Bool_t TestBit(UInt_t f) const