Fork me on GitHub

source: svn/trunk/Utilities/ExRootAnalysis/interface/ExRootTreeWriter.h@ 661

Last change on this file since 661 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
19class TFile;
20class TTree;
21class TClass;
22class ExRootTreeBranch;
23
24class ExRootTreeWriter
25{
26public:
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
37private:
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.