00001 // @(#)root/tree:$Id: TLeafL.h 36407 2010-10-22 02:04:08Z pcanal $ 00002 // Author: Rene Brun 19/12/2003 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TLeafL 00013 #define ROOT_TLeafL 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TLeafL // 00019 // // 00020 // A TLeaf for a 64 bit integer data type. // 00021 // // 00022 ////////////////////////////////////////////////////////////////////////// 00023 00024 00025 #ifndef ROOT_TLeaf 00026 #include "TLeaf.h" 00027 #endif 00028 00029 class TLeafL : public TLeaf { 00030 00031 protected: 00032 Long64_t fMinimum; //Minimum value if leaf range is specified 00033 Long64_t fMaximum; //Maximum value if leaf range is specified 00034 Long64_t *fValue; //!Pointer to data buffer 00035 Long64_t **fPointer; //!Address of pointer to data buffer 00036 00037 public: 00038 TLeafL(); 00039 TLeafL(TBranch *parent, const char *name, const char *type); 00040 virtual ~TLeafL(); 00041 00042 virtual void Export(TClonesArray *list, Int_t n); 00043 virtual void FillBasket(TBuffer &b); 00044 const char *GetTypeName() const; 00045 virtual Int_t GetMaximum() const {return (Int_t)fMaximum;} 00046 virtual Int_t GetMinimum() const {return (Int_t)fMinimum;} 00047 Double_t GetValue(Int_t i=0) const; 00048 virtual void *GetValuePointer() const {return fValue;} 00049 virtual void Import(TClonesArray *list, Int_t n); 00050 virtual void PrintValue(Int_t i=0) const; 00051 virtual void ReadBasket(TBuffer &b); 00052 virtual void ReadBasketExport(TBuffer &b, TClonesArray *list, Int_t n); 00053 virtual void ReadValue(istream & s); 00054 virtual void SetAddress(void *add=0); 00055 virtual void SetMaximum(Long64_t max) {fMaximum = max;} 00056 virtual void SetMinimum(Long64_t min) {fMinimum = min;} 00057 00058 ClassDef(TLeafL,1); //A TLeaf for a 64 bit Integer data type. 00059 }; 00060 00061 #endif