1 | #ifndef TreeWriter_h |
---|
2 | #define TreeWriter_h |
---|
3 | |
---|
4 | /** \class TreeWriter |
---|
5 | * |
---|
6 | * Fills ROOT tree branches. |
---|
7 | * |
---|
8 | * $Date: 2012-11-18 15:57:08 +0100 (Sun, 18 Nov 2012) $ |
---|
9 | * $Revision: 814 $ |
---|
10 | * |
---|
11 | * |
---|
12 | * \author P. Demin - UCL, Louvain-la-Neuve |
---|
13 | * |
---|
14 | */ |
---|
15 | |
---|
16 | #include "classes/DelphesModule.h" |
---|
17 | |
---|
18 | #include <map> |
---|
19 | |
---|
20 | class TClass; |
---|
21 | class TIterator; |
---|
22 | class ExRootTreeBranch; |
---|
23 | |
---|
24 | class TreeWriter: public DelphesModule |
---|
25 | { |
---|
26 | public: |
---|
27 | |
---|
28 | TreeWriter(); |
---|
29 | ~TreeWriter(); |
---|
30 | |
---|
31 | void Init(); |
---|
32 | void Process(); |
---|
33 | void Finish(); |
---|
34 | |
---|
35 | private: |
---|
36 | |
---|
37 | void ProcessParticles(ExRootTreeBranch *branch, TIterator *iterator); |
---|
38 | void ProcessTracks(ExRootTreeBranch *branch, TIterator *iterator); |
---|
39 | void ProcessTowers(ExRootTreeBranch *branch, TIterator *iterator); |
---|
40 | void ProcessPhotons(ExRootTreeBranch *branch, TIterator *iterator); |
---|
41 | void ProcessElectrons(ExRootTreeBranch *branch, TIterator *iterator); |
---|
42 | void ProcessMuons(ExRootTreeBranch *branch, TIterator *iterator); |
---|
43 | void ProcessTauJets(ExRootTreeBranch *branch, TIterator *iterator); |
---|
44 | void ProcessJets(ExRootTreeBranch *branch, TIterator *iterator); |
---|
45 | void ProcessMissingET(ExRootTreeBranch *branch, TIterator *iterator); |
---|
46 | |
---|
47 | #ifndef __CINT__ |
---|
48 | typedef void (TreeWriter::*TProcessMethod)(ExRootTreeBranch *, TIterator *); //! |
---|
49 | |
---|
50 | typedef std::map< ExRootTreeBranch *, std::pair< TProcessMethod, TIterator * > > TBranchMap; //! |
---|
51 | |
---|
52 | TBranchMap fBranchMap; //! |
---|
53 | |
---|
54 | std::map< TClass *, TProcessMethod > fClassMap; //! |
---|
55 | #endif |
---|
56 | ClassDef(TreeWriter, 1) |
---|
57 | }; |
---|
58 | |
---|
59 | #endif |
---|