Last change
on this file since 387 was 220, checked in by Xavier Rouby, 16 years ago |
include statements have been cleaned
|
File size:
716 bytes
|
Line | |
---|
1 | #ifndef ExRootTreeWriter_h
|
---|
2 | #define ExRootTreeWriter_h
|
---|
3 |
|
---|
4 | /** \class ExRootTreeWriter
|
---|
5 | *
|
---|
6 | * Class handling output ROOT tree
|
---|
7 | *
|
---|
8 | * $Date: 2009-02-02 11:32:12 $
|
---|
9 | * $Revision: 1.2 $
|
---|
10 | *
|
---|
11 | *
|
---|
12 | * \author S. Ovyn - UCL, Louvain-la-Neuve
|
---|
13 | *
|
---|
14 | */
|
---|
15 |
|
---|
16 | #include "TString.h"
|
---|
17 | #include <set>
|
---|
18 |
|
---|
19 | class TFile;
|
---|
20 | class TTree;
|
---|
21 | class TClass;
|
---|
22 | class ExRootTreeBranch;
|
---|
23 |
|
---|
24 | class ExRootTreeWriter
|
---|
25 | {
|
---|
26 | public:
|
---|
27 |
|
---|
28 | ExRootTreeWriter(const TString &fileName, const TString &treeName = "Result");
|
---|
29 | ~ExRootTreeWriter();
|
---|
30 |
|
---|
31 | ExRootTreeBranch *NewBranch(const TString &name, TClass *cl);
|
---|
32 |
|
---|
33 | void Clear();
|
---|
34 | void Fill();
|
---|
35 | void Write();
|
---|
36 |
|
---|
37 | private:
|
---|
38 |
|
---|
39 | TFile *fNewFile;
|
---|
40 | TTree *fNewTree;
|
---|
41 |
|
---|
42 | std::set<ExRootTreeBranch*> fBranches;
|
---|
43 | };
|
---|
44 |
|
---|
45 | #endif /* ExRootTreeWriter */
|
---|
46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.