Fork me on GitHub

source: svn/trunk/Utilities/ExRootAnalysis/interface/ExRootTreeWriter.h@ 12

Last change on this file since 12 was 3, checked in by Xavier Rouby, 16 years ago

first commit

File size: 718 bytes
RevLine 
[3]1#ifndef ExRootTreeWriter_h
2#define ExRootTreeWriter_h
3
4/** \class ExRootTreeWriter
5 *
6 * Class handling output ROOT tree
7 *
8 * $Date: 2008-11-04 10:32:26 $
9 * $Revision: 1.1 $
10 *
11 *
12 * \author S. Ovyn - UCL, Louvain-la-Neuve
13 *
14 */
15
16#include "TString.h"
17
18#include <set>
19
20class TFile;
21class TTree;
22class TClass;
23class ExRootTreeBranch;
24
25class ExRootTreeWriter
26{
27public:
28
29 ExRootTreeWriter(const TString &fileName, const TString &treeName = "Result");
30 ~ExRootTreeWriter();
31
32 ExRootTreeBranch *NewBranch(const TString &name, TClass *cl);
33
34 void Clear();
35 void Fill();
36 void Write();
37
38private:
39
40 TFile *fNewFile;
41 TTree *fNewTree;
42
43 std::set<ExRootTreeBranch*> fBranches;
44};
45
46#endif /* ExRootTreeWriter */
47
Note: See TracBrowser for help on using the repository browser.