source: trunk/MagicSoft/Mars/mdata/MDataArray.h@ 1526

Last change on this file since 1526 was 1488, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 953 bytes
Line 
1#ifndef MARS_MDataArray
2#define MARS_MDataArray
3
4/////////////////////////////////////////////////////////////////////////////
5//
6// MDataArray
7//
8/////////////////////////////////////////////////////////////////////////////
9#ifndef MARS_MParContainer
10#include "MParContainer.h"
11#endif
12
13#ifndef ROOT_TObjArray
14#include <TObjArray.h>
15#endif
16
17class MData;
18class MParList;
19
20class MDataArray : public MParContainer
21{
22 TObjArray fList;
23
24 void StreamPrimitive(ofstream &out) const;
25
26public:
27 MDataArray(const char *name=NULL, const char *title=NULL);
28
29 void AddEntry(const TString rule);
30
31 MData &operator[](Int_t i) const;
32 Double_t operator()(Int_t i);
33
34 Bool_t PreProcess(const MParList *plist);
35
36 void Print(Option_t *opt = "") const;
37 Bool_t AsciiWrite(ostream &out) const;
38
39 Int_t GetNumEntries() const { return fList.GetEntries(); }
40
41 ClassDef(MDataArray, 1) // An array of MData containers
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.