source: tags/Mars-V0.9.4/mdata/MDataArray.h

Last change on this file was 7169, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.5 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 MDataArray(MDataArray &a, const char *name=NULL, const char *title=NULL);
31
32 void AddEntry(const TString rule);
33 void AddEntry(MData *data);
34
35 Int_t FindRule(const char *rule) const;
36
37 MData &operator[](Int_t i) const;
38 Double_t operator()(Int_t i) const;
39
40 void GetData(TVector &v) const;
41
42 void operator>>(TVector &v) const
43 {
44 GetData(v);
45 }
46
47 TString GetRule(int i) const;
48
49 Bool_t PreProcess(const MParList *plist);
50
51 TString GetDataMember() const;
52
53 void Print(Option_t *opt = "") const; //*MENU*
54 Bool_t AsciiWrite(ostream &out) const;
55
56 Int_t GetNumEntries() const { return fList.GetEntries(); }
57
58 void Clear(Option_t *option="") { fList.Clear(option); }
59 void Delete(Option_t *option="") { fList.Delete(option); }
60
61 void SetVariables(const TArrayD &arr);
62
63 ClassDef(MDataArray, 1) // An array of MData containers
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.