[d7d2da3] | 1 | #ifndef TreeWriter_h
|
---|
| 2 | #define TreeWriter_h
|
---|
| 3 |
|
---|
| 4 | /** \class TreeWriter
|
---|
| 5 | *
|
---|
| 6 | * Fills ROOT tree branches.
|
---|
| 7 | *
|
---|
| 8 | * $Date$
|
---|
| 9 | * $Revision$
|
---|
| 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 TObjArray;
|
---|
| 22 | class TRefArray;
|
---|
| 23 |
|
---|
| 24 | class Candidate;
|
---|
| 25 | class ExRootTreeBranch;
|
---|
| 26 |
|
---|
| 27 | class TreeWriter: public DelphesModule
|
---|
| 28 | {
|
---|
| 29 | public:
|
---|
| 30 |
|
---|
| 31 | TreeWriter();
|
---|
| 32 | ~TreeWriter();
|
---|
| 33 |
|
---|
| 34 | void Init();
|
---|
| 35 | void Process();
|
---|
| 36 | void Finish();
|
---|
| 37 |
|
---|
| 38 | private:
|
---|
| 39 |
|
---|
| 40 | void FillParticles(Candidate *candidate, TRefArray *array);
|
---|
| 41 |
|
---|
| 42 | void ProcessParticles(ExRootTreeBranch *branch, TObjArray *array);
|
---|
[d07e957] | 43 | void ProcessVertices(ExRootTreeBranch *branch, TObjArray *array);
|
---|
[d7d2da3] | 44 | void ProcessTracks(ExRootTreeBranch *branch, TObjArray *array);
|
---|
| 45 | void ProcessTowers(ExRootTreeBranch *branch, TObjArray *array);
|
---|
| 46 | void ProcessPhotons(ExRootTreeBranch *branch, TObjArray *array);
|
---|
| 47 | void ProcessElectrons(ExRootTreeBranch *branch, TObjArray *array);
|
---|
| 48 | void ProcessMuons(ExRootTreeBranch *branch, TObjArray *array);
|
---|
| 49 | void ProcessTauJets(ExRootTreeBranch *branch, TObjArray *array);
|
---|
| 50 | void ProcessJets(ExRootTreeBranch *branch, TObjArray *array);
|
---|
| 51 | void ProcessMissingET(ExRootTreeBranch *branch, TObjArray *array);
|
---|
| 52 | void ProcessScalarHT(ExRootTreeBranch *branch, TObjArray *array);
|
---|
[71648c2] | 53 | void ProcessRho(ExRootTreeBranch *branch, TObjArray *array);
|
---|
[2e229c9] | 54 | void ProcessWeight(ExRootTreeBranch *branch, TObjArray *array);
|
---|
[8f7db23] | 55 | void ProcessHectorHit(ExRootTreeBranch *branch, TObjArray *array);
|
---|
[d7d2da3] | 56 |
|
---|
[c5e72d8] | 57 | #if !defined(__CINT__) && !defined(__CLING__)
|
---|
[d7d2da3] | 58 | typedef void (TreeWriter::*TProcessMethod)(ExRootTreeBranch *, TObjArray *); //!
|
---|
| 59 |
|
---|
| 60 | typedef std::map< ExRootTreeBranch *, std::pair< TProcessMethod, TObjArray * > > TBranchMap; //!
|
---|
| 61 |
|
---|
| 62 | TBranchMap fBranchMap; //!
|
---|
| 63 |
|
---|
| 64 | std::map< TClass *, TProcessMethod > fClassMap; //!
|
---|
| 65 | #endif
|
---|
| 66 |
|
---|
| 67 | ClassDef(TreeWriter, 1)
|
---|
| 68 | };
|
---|
| 69 |
|
---|
| 70 | #endif
|
---|