TNtupleD.h

Go to the documentation of this file.
00001 // @(#)root/tree:$Id: TNtupleD.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   06/04/96
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_TNtupleD
00013 #define ROOT_TNtupleD
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TNtupleD                                                             //
00019 //                                                                      //
00020 // A simple tree with branches of doubles.                              //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_TTree
00025 #include "TTree.h"
00026 #endif
00027 
00028 class TBrowser;
00029 
00030 class TNtupleD : public TTree {
00031 
00032 protected:
00033    Int_t       fNvar;            //  Number of columns
00034    Double_t    *fArgs;           //! [fNvar] Array of variables
00035 
00036    virtual Int_t  Fill();
00037 
00038 private:
00039    TNtupleD(const TNtupleD&);             // not implemented
00040    TNtupleD& operator=(const TNtupleD&);  // not implemented
00041 
00042 public:
00043    TNtupleD();
00044    TNtupleD(const char *name,const char *title, const char *varlist, Int_t bufsize=32000);
00045    virtual ~TNtupleD();
00046 
00047    virtual void      Browse(TBrowser *b);
00048    virtual Int_t     Fill(const Double_t *x);
00049    virtual Int_t     Fill(Double_t x0, Double_t x1, Double_t x2=0, Double_t x3=0,
00050                           Double_t x4=0, Double_t x5=0, Double_t x6=0, Double_t x7=0,
00051                           Double_t x8=0, Double_t x9=0, Double_t x10=0,
00052                           Double_t x11=0, Double_t x12=0, Double_t x13=0,
00053                           Double_t x14=0);
00054    virtual Int_t     GetNvar() const { return fNvar; }
00055            Double_t *GetArgs() const { return fArgs; }
00056    virtual Long64_t  ReadFile(const char *filename, const char *branchDescriptor="");
00057    virtual void      ResetBranchAddress(TBranch *);
00058            void      ResetBranchAddresses();
00059 
00060    ClassDef(TNtupleD,1)  //A simple tree with branches of floats.
00061 };
00062 
00063 #endif

Generated on Tue Jul 5 14:27:41 2011 for ROOT_528-00b_version by  doxygen 1.5.1