[b443089] | 1 | /*
|
---|
| 2 | * Delphes: a framework for fast simulation of a generic collider experiment
|
---|
| 3 | * Copyright (C) 2012-2014 Universite catholique de Louvain (UCL), Belgium
|
---|
| 4 | *
|
---|
| 5 | * This program is free software: you can redistribute it and/or modify
|
---|
| 6 | * it under the terms of the GNU General Public License as published by
|
---|
| 7 | * the Free Software Foundation, either version 3 of the License, or
|
---|
| 8 | * (at your option) any later version.
|
---|
| 9 | *
|
---|
| 10 | * This program is distributed in the hope that it will be useful,
|
---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 13 | * GNU General Public License for more details.
|
---|
| 14 | *
|
---|
| 15 | * You should have received a copy of the GNU General Public License
|
---|
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 17 | */
|
---|
| 18 |
|
---|
[d7d2da3] | 19 | #ifndef DelphesModule_h
|
---|
| 20 | #define DelphesModule_h
|
---|
| 21 |
|
---|
| 22 | /** \class DelphesModule
|
---|
| 23 | *
|
---|
| 24 | * Base class for all Delphes modules
|
---|
| 25 | *
|
---|
| 26 | * $Date: 2008-06-04 13:57:25 $
|
---|
| 27 | * $Revision: 1.1 $
|
---|
| 28 | *
|
---|
| 29 | *
|
---|
| 30 | * \author P. Demin - UCL, Louvain-la-Neuve
|
---|
| 31 | *
|
---|
| 32 | */
|
---|
| 33 |
|
---|
| 34 | #include "ExRootAnalysis/ExRootTask.h"
|
---|
| 35 |
|
---|
| 36 | class TClass;
|
---|
| 37 | class TObject;
|
---|
| 38 | class TFolder;
|
---|
| 39 | class TClonesArray;
|
---|
| 40 |
|
---|
| 41 | class ExRootResult;
|
---|
| 42 | class ExRootTreeBranch;
|
---|
| 43 | class ExRootTreeWriter;
|
---|
| 44 |
|
---|
| 45 | class DelphesFactory;
|
---|
| 46 |
|
---|
| 47 | class DelphesModule: public ExRootTask
|
---|
| 48 | {
|
---|
| 49 | public:
|
---|
| 50 |
|
---|
| 51 | DelphesModule();
|
---|
| 52 | ~DelphesModule();
|
---|
| 53 |
|
---|
| 54 | virtual void Init();
|
---|
| 55 | virtual void Process();
|
---|
| 56 | virtual void Finish();
|
---|
| 57 |
|
---|
| 58 | TObjArray *ImportArray(const char *name);
|
---|
| 59 | TObjArray *ExportArray(const char *name);
|
---|
| 60 |
|
---|
| 61 | ExRootTreeBranch *NewBranch(const char *name, TClass *cl);
|
---|
| 62 |
|
---|
| 63 | ExRootResult *GetPlots();
|
---|
| 64 | DelphesFactory *GetFactory();
|
---|
| 65 |
|
---|
| 66 | protected:
|
---|
| 67 |
|
---|
| 68 | ExRootTreeWriter *fTreeWriter;
|
---|
| 69 | DelphesFactory *fFactory;
|
---|
| 70 |
|
---|
| 71 | private:
|
---|
| 72 |
|
---|
| 73 | ExRootResult *fPlots;
|
---|
| 74 |
|
---|
| 75 | TFolder *fPlotFolder, *fExportFolder;
|
---|
| 76 |
|
---|
| 77 | ClassDef(DelphesModule, 1)
|
---|
| 78 | };
|
---|
| 79 |
|
---|
| 80 | #endif /* DelphesModule_h */
|
---|
| 81 |
|
---|