Fork me on GitHub

source: svn/trunk/modules/TreeWriter.h@ 1095

Last change on this file since 1095 was 930, checked in by Pavel Demin, 12 years ago

add TRefArray to Particles for Photon, Tower and Jet

  • Property svn:keywords set to Id Revision Date
File size: 1.5 KB
Line 
1#ifndef TreeWriter_h
2#define TreeWriter_h
3
4/** \class TreeWriter
5 *
6 * Fills ROOT tree branches.
7 *
8 * $Date: 2013-02-22 21:33:16 +0000 (Fri, 22 Feb 2013) $
9 * $Revision: 930 $
10 *
11 *
12 * \author P. Demin - UCL, Louvain-la-Neuve
13 *
14 */
15
16#include "classes/DelphesModule.h"
17
18#include <map>
19
20class TClass;
21class TObjArray;
22class TRefArray;
23
24class Candidate;
25class ExRootTreeBranch;
26
27class TreeWriter: public DelphesModule
28{
29public:
30
31 TreeWriter();
32 ~TreeWriter();
33
34 void Init();
35 void Process();
36 void Finish();
37
38private:
39
40 void FillParticles(Candidate *candidate, TRefArray *array);
41
42 void ProcessParticles(ExRootTreeBranch *branch, TObjArray *array);
43 void ProcessTracks(ExRootTreeBranch *branch, TObjArray *array);
44 void ProcessTowers(ExRootTreeBranch *branch, TObjArray *array);
45 void ProcessPhotons(ExRootTreeBranch *branch, TObjArray *array);
46 void ProcessElectrons(ExRootTreeBranch *branch, TObjArray *array);
47 void ProcessMuons(ExRootTreeBranch *branch, TObjArray *array);
48 void ProcessTauJets(ExRootTreeBranch *branch, TObjArray *array);
49 void ProcessJets(ExRootTreeBranch *branch, TObjArray *array);
50 void ProcessMissingET(ExRootTreeBranch *branch, TObjArray *array);
51 void ProcessScalarHT(ExRootTreeBranch *branch, TObjArray *array);
52
53#ifndef __CINT__
54 typedef void (TreeWriter::*TProcessMethod)(ExRootTreeBranch *, TObjArray *); //!
55
56 typedef std::map< ExRootTreeBranch *, std::pair< TProcessMethod, TObjArray * > > TBranchMap; //!
57
58 TBranchMap fBranchMap; //!
59
60 std::map< TClass *, TProcessMethod > fClassMap; //!
61#endif
62
63 ClassDef(TreeWriter, 1)
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.