Line | |
---|
1 | #ifndef MCLONE_H
|
---|
2 | #define MCLONE_H
|
---|
3 |
|
---|
4 | #ifndef MAGIC_H
|
---|
5 | #include "MAGIC.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MTASK_H
|
---|
9 | #include "MTask.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MParList;
|
---|
13 |
|
---|
14 | class MClone : public MTask
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | const MParContainer *fParContainer; // pointer to container which has to be cloned
|
---|
18 | TString fParContainerName; // given name to search for in the parameterlist
|
---|
19 |
|
---|
20 | TObject* fClone; // pointer to the cloned object. deletion is handled by MClone
|
---|
21 |
|
---|
22 | void Init(const char *name, const char *title);
|
---|
23 |
|
---|
24 | public:
|
---|
25 | MClone(const char *par, const char *name=NULL, const char *title=NULL);
|
---|
26 | MClone(const MParContainer *par, const char *name=NULL, const char *title=NULL);
|
---|
27 | ~MClone();
|
---|
28 |
|
---|
29 | Bool_t PreProcess(MParList *pList);
|
---|
30 | Bool_t Process();
|
---|
31 |
|
---|
32 | TObject *GetClone() const { return fClone; }
|
---|
33 |
|
---|
34 | void Clear(Option_t *opt=NULL);
|
---|
35 |
|
---|
36 | ClassDef(MClone, 0) // Task to clone (duplicate) an object in memory
|
---|
37 | };
|
---|
38 |
|
---|
39 | #endif
|
---|
40 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.