Fork me on GitHub

source: git/external/ExRootAnalysis/ExRootTreeWriter.h@ e5767b57

ImprovedOutputFile Timing dual_readout llp
Last change on this file since e5767b57 was cab38f6, checked in by Pavel Demin <pavel.demin@…>, 10 years ago

remove svn tags and fix formatting

  • Property mode set to 100644
File size: 857 bytes
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
16class TFile;
17class TTree;
18class TClass;
19class ExRootTreeBranch;
20
21class ExRootTreeWriter : public TNamed
22{
23public:
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 void Clear();
34 void Fill();
35 void Write();
36
37private:
38
39 TTree *NewTree();
40
41 TFile *fFile; //!
42 TTree *fTree; //!
43
44 TString fTreeName; //!
45
46 std::set<ExRootTreeBranch*> fBranches; //!
47
48 ClassDef(ExRootTreeWriter, 1)
49};
50
51#endif /* ExRootTreeWriter */
52
Note: See TracBrowser for help on using the repository browser.