[606] | 1 | #ifndef TreeWriter_h
|
---|
| 2 | #define TreeWriter_h
|
---|
| 3 |
|
---|
[814] | 4 | /** \class TreeWriter
|
---|
| 5 | *
|
---|
| 6 | * Fills ROOT tree branches.
|
---|
| 7 | *
|
---|
| 8 | * $Date: 2013-05-26 00:00:39 +0000 (Sun, 26 May 2013) $
|
---|
| 9 | * $Revision: 1123 $
|
---|
| 10 | *
|
---|
| 11 | *
|
---|
| 12 | * \author P. Demin - UCL, Louvain-la-Neuve
|
---|
| 13 | *
|
---|
| 14 | */
|
---|
| 15 |
|
---|
[687] | 16 | #include "classes/DelphesModule.h"
|
---|
[606] | 17 |
|
---|
| 18 | #include <map>
|
---|
| 19 |
|
---|
| 20 | class TClass;
|
---|
[895] | 21 | class TObjArray;
|
---|
[930] | 22 | class TRefArray;
|
---|
| 23 |
|
---|
| 24 | class Candidate;
|
---|
[606] | 25 | class ExRootTreeBranch;
|
---|
| 26 |
|
---|
[687] | 27 | class TreeWriter: public DelphesModule
|
---|
[606] | 28 | {
|
---|
| 29 | public:
|
---|
| 30 |
|
---|
| 31 | TreeWriter();
|
---|
| 32 | ~TreeWriter();
|
---|
| 33 |
|
---|
| 34 | void Init();
|
---|
| 35 | void Process();
|
---|
| 36 | void Finish();
|
---|
| 37 |
|
---|
| 38 | private:
|
---|
| 39 |
|
---|
[930] | 40 | void FillParticles(Candidate *candidate, TRefArray *array);
|
---|
| 41 |
|
---|
[895] | 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);
|
---|
[1114] | 52 | void ProcessRho(ExRootTreeBranch *branch, TObjArray *array);
|
---|
[1123] | 53 | void ProcessWeight(ExRootTreeBranch *branch, TObjArray *array);
|
---|
[606] | 54 |
|
---|
| 55 | #ifndef __CINT__
|
---|
[895] | 56 | typedef void (TreeWriter::*TProcessMethod)(ExRootTreeBranch *, TObjArray *); //!
|
---|
[606] | 57 |
|
---|
[895] | 58 | typedef std::map< ExRootTreeBranch *, std::pair< TProcessMethod, TObjArray * > > TBranchMap; //!
|
---|
[606] | 59 |
|
---|
| 60 | TBranchMap fBranchMap; //!
|
---|
| 61 |
|
---|
| 62 | std::map< TClass *, TProcessMethod > fClassMap; //!
|
---|
| 63 | #endif
|
---|
[893] | 64 |
|
---|
[606] | 65 | ClassDef(TreeWriter, 1)
|
---|
| 66 | };
|
---|
| 67 |
|
---|
| 68 | #endif
|
---|