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

Last change on this file since 2320 was 2114, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.3 KB
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 TVector;
18
19class MData;
20class MParList;
21
22class MDataArray : public MParContainer
23{
24 TObjArray fList;
25
26 void StreamPrimitive(ofstream &out) const;
27
28public:
29 MDataArray(const char *name=NULL, const char *title=NULL);
30
31 void AddEntry(const TString rule);
32 void AddEntry(MData *data);
33
34 MData &operator[](Int_t i) const;
35 Double_t operator()(Int_t i) const;
36
37 void GetData(TVector &v) const;
38
39 void operator>>(TVector &v) const
40 {
41 GetData(v);
42 }
43
44 TString GetRule(int i) const;
45
46 Bool_t PreProcess(const MParList *plist);
47
48 TString GetDataMember() const;
49
50 void Print(Option_t *opt = "") const;
51 Bool_t AsciiWrite(ostream &out) const;
52
53 Int_t GetNumEntries() const { return fList.GetEntries(); }
54
55 void Clear(Option_t *option="") { fList.Clear(option); }
56 void Delete(Option_t *option="") { fList.Delete(option); }
57
58 ClassDef(MDataArray, 1) // An array of MData containers
59};
60
61#endif
Note: See TracBrowser for help on using the repository browser.