source: branches/Mars_use_drstimefiles/mdata/MDataArray.h@ 18605

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