Fork me on GitHub

source: git/external/ExRootAnalysis/ExRootTreeWriter.h@ 5babc8b

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 5babc8b was d7d2da3, checked in by pavel <pavel@…>, 12 years ago

move branches/ModularDelphes to trunk

  • Property mode set to 100644
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
20class TFile;
21class TTree;
22class TClass;
23class ExRootTreeBranch;
24
25class ExRootTreeWriter : public TNamed
26{
27public:
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
41private:
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.