129 const Short_t kShortUndefined = -9999;
133 clone = (
char*)list->UncheckedAt(i);
138 fValue[j + k] = kShortUndefined;
150 printf(
"%u",uvalue[
l]);
153 printf(
"%d",value[
l]);
167 if (
fLeafCount->GetBranch()->GetReadEntry() != entry) {
172 printf(
"ERROR leaf:%s, len=%d and max=%d\n",
GetName(),len,
fLeafCount->GetMaximum());
217 for (
Int_t i=0;i<fLen;i++) s >> uvalue[i];
220 for (
Int_t i=0;i<fLen;i++) s >> value[i];
#define R__unlikely(expr)
unsigned short UShort_t
Unsigned Short integer 2 bytes (unsigned short).
int Int_t
Signed integer 4 bytes (int).
char Char_t
Character 1 byte (char).
short Short_t
Signed Short integer 2 bytes (short).
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.
Short_t fMaximum
Maximum value if leaf range is specified.
Short_t fMinimum
Minimum value if leaf range is specified.
void FillBasket(TBuffer &b) override
Pack leaf elements in Basket output buffer.
virtual void SetMinimum(Short_t min)
void * GetValuePointer() const override
void ReadBasketExport(TBuffer &b, TClonesArray *list, Int_t n) override
Read leaf elements from Basket input buffer and export buffer to TClonesArray objects.
const char * GetTypeName() const override
Returns name of leaf type.
Short_t * fValue
! Pointer to data buffer
void ReadValue(std::istream &s, Char_t delim=' ') override
Read a integer integer from std::istream s and store it into the branch buffer.
void SetAddress(void *add=nullptr) override
Set leaf buffer data address.
void ReadBasket(TBuffer &b) override
Read leaf elements from Basket input buffer.
virtual void SetMaximum(Short_t max)
TLeafS()
Default constructor for LeafS.
void Import(TClonesArray *list, Int_t n) override
Import element from ClonesArray into local leaf buffer.
bool ReadBasketFast(TBuffer &, Long64_t) override
Deserialize input by performing byteswap as needed.
void PrintValue(Int_t i=0) const override
Prints leaf value.
Short_t ** fPointer
! Address of pointer to data buffer
~TLeafS() override
Default destructor for a LeafS.
Double_t GetValue(Int_t i=0) const override
Returns current value of leaf.
void Export(TClonesArray *list, Int_t n) override
Export element from local leaf buffer to ClonesArray.
bool IncludeRange(TLeaf *) override
Copy/set fMinimum and fMaximum to include/be wide than those of the parameter.
TLeaf(const TLeaf &)
Copy constructor.
Int_t fLenType
Number of bytes for this data type.
virtual Int_t GetMaximum() const
virtual bool IsUnsigned() 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)
bool fIsUnsigned
(=true if unsigned, false otherwise)
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