Last change
on this file since 1332 was 1050, checked in by Pavel Demin, 12 years ago |
change variable name format for iterators and pairs
|
File size:
917 bytes
|
Line | |
---|
1 | #ifndef ExRootTreeWriter_h
|
---|
2 | #define ExRootTreeWriter_h
|
---|
3 |
|
---|
4 | /** \class ExRootTreeWriter
|
---|
5 | *
|
---|
6 | * Class handling output ROOT tree
|
---|
7 | *
|
---|
8 | * $Date: 2008-06-04 13:57:27 $
|
---|
9 | * $Revision: 1.1 $
|
---|
10 | *
|
---|
11 | *
|
---|
12 | * \author P. Demin - UCL, Louvain-la-Neuve
|
---|
13 | *
|
---|
14 | */
|
---|
15 |
|
---|
16 | #include "TNamed.h"
|
---|
17 |
|
---|
18 | #include <set>
|
---|
19 |
|
---|
20 | class TFile;
|
---|
21 | class TTree;
|
---|
22 | class TClass;
|
---|
23 | class ExRootTreeBranch;
|
---|
24 |
|
---|
25 | class ExRootTreeWriter : public TNamed
|
---|
26 | {
|
---|
27 | public:
|
---|
28 |
|
---|
29 | ExRootTreeWriter(TFile *file = 0, const char *treeName = "Analysis");
|
---|
30 | ~ExRootTreeWriter();
|
---|
31 |
|
---|
32 | void SetTreeFile(TFile *file) { fFile = file; }
|
---|
33 | void SetTreeName(const char *name) { fTreeName = name; }
|
---|
34 |
|
---|
35 | ExRootTreeBranch *NewBranch(const char *name, TClass *cl);
|
---|
36 |
|
---|
37 | void Clear();
|
---|
38 | void Fill();
|
---|
39 | void Write();
|
---|
40 |
|
---|
41 | private:
|
---|
42 |
|
---|
43 | TTree *NewTree();
|
---|
44 |
|
---|
45 | TFile *fFile; //!
|
---|
46 | TTree *fTree; //!
|
---|
47 |
|
---|
48 | TString fTreeName; //!
|
---|
49 |
|
---|
50 | std::set<ExRootTreeBranch*> fBranches; //!
|
---|
51 |
|
---|
52 | ClassDef(ExRootTreeWriter, 1)
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif /* ExRootTreeWriter */
|
---|
56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.