Line | |
---|
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 |
|
---|
20 | class TFile;
|
---|
21 | class TTree;
|
---|
22 | class TClass;
|
---|
23 | class ExRootTreeBranch;
|
---|
24 |
|
---|
25 | class ExRootTreeWriter
|
---|
26 | {
|
---|
27 | public:
|
---|
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 |
|
---|
38 | private:
|
---|
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.