51 auto bracket = strchr(type,
'[');
53 fTitle.Append(
'/').Append(type);
76 for (
Int_t i = 0; i <
n; i++) {
77 auto first = (
char *)list->UncheckedAt(i);
102 const Float16_t kFloatUndefined = -9999.;
104 for (
Int_t i = 0; i <
n; i++) {
105 auto clone = (
char *)list->UncheckedAt(i);
110 fValue[j + k] = kFloatUndefined;
121 printf(
"%g", value[
l]);
134 if (
fLeafCount->GetBranch()->GetReadEntry() != entry) {
139 printf(
"ERROR leaf:%s, len=%d and max=%d\n",
GetName(), len,
fLeafCount->GetMaximum());
163 for (
Int_t i = 0; i <
n; i++) {
164 auto first = (
char *)list->UncheckedAt(i);
226 if (R__v < 2 &&
fTitle.BeginsWith(
"f[")) {
229 if (
fTitle.Contains(
"/f[")) {
float Float16_t
Float 4 bytes in memory, written to disk as 3 bytes (24-bits) by default or as a 4 bytes fixed-point-...
int Int_t
Signed integer 4 bytes (int).
short Version_t
Class version identifier (short).
char Char_t
Character 1 byte (char).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
long long Long64_t
Portable signed long integer 8 bytes.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
A TTree is a list of TBranches.
Buffer base class used for serializing objects.
virtual Version_t ReadVersion(UInt_t *start=nullptr, UInt_t *bcnt=nullptr, const TClass *cl=nullptr)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
~TLeafF16() override
Default destructor for a LeafF16.
void Import(TClonesArray *list, Int_t n) override
Import element from ClonesArray into local leaf buffer.
void Export(TClonesArray *list, Int_t n) override
Export element from local leaf buffer to ClonesArray.
void SetAddress(void *add=nullptr) override
Set leaf buffer data address.
void ReadBasket(TBuffer &b) override
Read leaf elements from Basket input buffer.
void ReadValue(std::istream &s, Char_t delim=' ') override
Read a float from std::istream s and store it into the branch buffer.
void FillBasket(TBuffer &b) override
Pack leaf elements in Basket output buffer.
void * GetValuePointer() const override
void Streamer(TBuffer &) override
Stream an object of class TLeafF16.
Float16_t ** fPointer
! Address of pointer to data buffer!
TStreamerElement * fElement
! StreamerElement used for TBuffer read / write
Float16_t fMaximum
Maximum value if leaf range is specified.
Float16_t * fValue
! Pointer to data buffer
void PrintValue(Int_t i=0) const override
Prints leaf value.
TLeafF16()
Default constructor for LeafF16.
void ReadBasketExport(TBuffer &b, TClonesArray *list, Int_t n) override
Read leaf elements from Basket input buffer and export buffer to TClonesArray objects.
Float16_t fMinimum
Minimum value if leaf range is specified.
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
Describe one element (data member) to be Streamed.
const char * Data() const