Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TNtupleD.h
Go to the documentation of this file.
1 // @(#)root/tree:$Id$
2 // Author: Rene Brun 06/04/96
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TNtupleD
13 #define ROOT_TNtupleD
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TNtupleD //
19 // //
20 // A simple tree with branches of doubles. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TTree.h"
25 
26 class TBrowser;
27 
28 class TNtupleD : public TTree {
29 
30 protected:
31  Int_t fNvar; ///< Number of columns
32  Double_t *fArgs; ///<! [fNvar] Array of variables
33 
34  virtual Int_t Fill();
35 
36 private:
37  TNtupleD(const TNtupleD&); // not implemented
38  TNtupleD& operator=(const TNtupleD&); // not implemented
39 
40 public:
41  TNtupleD();
42  TNtupleD(const char *name,const char *title, const char *varlist, Int_t bufsize=32000);
43  virtual ~TNtupleD();
44 
45  virtual void Browse(TBrowser *b);
46  virtual Int_t Fill(const Double_t *x);
47  virtual Int_t Fill(Double_t x0, Double_t x1, Double_t x2=0, Double_t x3=0,
48  Double_t x4=0, Double_t x5=0, Double_t x6=0, Double_t x7=0,
49  Double_t x8=0, Double_t x9=0, Double_t x10=0,
50  Double_t x11=0, Double_t x12=0, Double_t x13=0,
51  Double_t x14=0);
52  virtual Int_t GetNvar() const { return fNvar; }
53  Double_t *GetArgs() const { return fArgs; }
54  virtual Long64_t ReadStream(std::istream& inputstream, const char *branchDescriptor="", char delimiter = ' ');
55  virtual void ResetBranchAddress(TBranch *);
56  void ResetBranchAddresses();
57 
58  ClassDef(TNtupleD,1) //A simple tree with branches of floats.
59 };
60 
61 #endif