Last change
on this file since bdf9e2e was e5ea42e, checked in by Joschka Lingemann <joschka.lingemann@…>, 8 years ago |
Fix override warnings.
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifndef ExRootTreeWriter_h
|
---|
2 | #define ExRootTreeWriter_h
|
---|
3 |
|
---|
4 | /** \class ExRootTreeWriter
|
---|
5 | *
|
---|
6 | * Class handling output ROOT tree
|
---|
7 | *
|
---|
8 | * \author P. Demin - UCL, Louvain-la-Neuve
|
---|
9 | *
|
---|
10 | */
|
---|
11 |
|
---|
12 | #include "TNamed.h"
|
---|
13 |
|
---|
14 | #include <set>
|
---|
15 |
|
---|
16 | class TFile;
|
---|
17 | class TTree;
|
---|
18 | class TClass;
|
---|
19 | class ExRootTreeBranch;
|
---|
20 |
|
---|
21 | class ExRootTreeWriter : public TNamed
|
---|
22 | {
|
---|
23 | public:
|
---|
24 |
|
---|
25 | ExRootTreeWriter(TFile *file = 0, const char *treeName = "Analysis");
|
---|
26 | ~ExRootTreeWriter();
|
---|
27 |
|
---|
28 | void SetTreeFile(TFile *file) { fFile = file; }
|
---|
29 | void SetTreeName(const char *name) { fTreeName = name; }
|
---|
30 |
|
---|
31 | ExRootTreeBranch *NewBranch(const char *name, TClass *cl);
|
---|
32 |
|
---|
33 | virtual void Clear(Option_t *option = "");
|
---|
34 | void Fill();
|
---|
35 | virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0) const;
|
---|
36 | virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0);
|
---|
37 |
|
---|
38 | private:
|
---|
39 |
|
---|
40 | TTree *NewTree();
|
---|
41 |
|
---|
42 | TFile *fFile; //!
|
---|
43 | TTree *fTree; //!
|
---|
44 |
|
---|
45 | TString fTreeName; //!
|
---|
46 |
|
---|
47 | std::set<ExRootTreeBranch*> fBranches; //!
|
---|
48 |
|
---|
49 | ClassDef(ExRootTreeWriter, 1)
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif /* ExRootTreeWriter */
|
---|
53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.