#ifndef ROOT_TLeafB #define ROOT_TLeafB //+SEQ,CopyRight,T=NOINCLUDE. ////////////////////////////////////////////////////////////////////////// // // // TLeafB // // // // A TLeaf for an 8 bit Integer data type. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TLeaf //*KEEP,TLeaf,T=C++. #include "TLeaf.h" //*KEND. #endif class TClonesArray; class TLeafB : public TLeaf { protected: Char_t fMinimum; //Minimum value if leaf range is specified Char_t fMaximum; //Maximum value if leaf range is specified Char_t *fValue; //Pointer to data buffer public: TLeafB(); TLeafB(const Text_t *name, const Text_t *type); virtual ~TLeafB(); virtual void Export(TClonesArray *list); virtual void FillBasket(TBuffer &b); const Text_t *GetTypeName() const; Float_t GetValue(Int_t i=0, TTreeFormula *f=0); virtual void *GetValuePointer() {return fValue;} virtual void Import(TClonesArray *list, Int_t n); virtual void Print(Option_t *option=""); virtual void ReadBasket(TBuffer &b); virtual void SetAddress(void *add=0); ClassDef(TLeafB,1) //A TLeaf for an 8 bit Integer data type. }; inline Float_t TLeafB::GetValue(Int_t i, TTreeFormula *) { return (IsUnsigned())? (UChar_t)(fValue[i]):fValue[i]; } #endif