Last change
on this file since 8593 was 454, checked in by harald, 24 years ago |
Import the first sources of the MAGIC Analysis and Reconstruction Software.
T. Bretz and H. Kornmayer 20.December 2000
|
File size:
856 bytes
|
Line | |
---|
1 | #ifndef MPARLIST_H
|
---|
2 | #define MPARLIST_H
|
---|
3 |
|
---|
4 | #ifndef MAGIC_H
|
---|
5 | #include "MAGIC.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #include <iostream.h>
|
---|
9 |
|
---|
10 | #ifndef ROOT_TOrdCollection
|
---|
11 | #include "TOrdCollection.h"
|
---|
12 | #endif
|
---|
13 |
|
---|
14 | class MParContainer;
|
---|
15 |
|
---|
16 | class MParList : public TObject
|
---|
17 | {
|
---|
18 | private:
|
---|
19 | TIter *fNext; //!
|
---|
20 | TOrdCollection fContainer; // Collection of Parameter and Data Containers
|
---|
21 |
|
---|
22 | public:
|
---|
23 | MParList();
|
---|
24 | MParList(MParList &ts);
|
---|
25 |
|
---|
26 | ~MParList()
|
---|
27 | {
|
---|
28 | if (fNext)
|
---|
29 | delete fNext;
|
---|
30 | }
|
---|
31 |
|
---|
32 | Bool_t AddToList(MParContainer *obj, MParContainer *where = NULL);
|
---|
33 |
|
---|
34 | TObject *FindObject(const char *name) const;
|
---|
35 |
|
---|
36 | void Reset()
|
---|
37 | {
|
---|
38 | fNext = new TIter(&fContainer);
|
---|
39 | }
|
---|
40 |
|
---|
41 | MParContainer *Next()
|
---|
42 | {
|
---|
43 | return (MParContainer*)(*fNext)();
|
---|
44 | }
|
---|
45 |
|
---|
46 | void Print(Option_t *t = NULL);
|
---|
47 |
|
---|
48 | ClassDef(MParList, 1) // list of Parameter Containers
|
---|
49 | };
|
---|
50 |
|
---|
51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.