#ifndef MARS_MDataArray #define MARS_MDataArray ///////////////////////////////////////////////////////////////////////////// // // MDataArray // ///////////////////////////////////////////////////////////////////////////// #ifndef MARS_MParContainer #include "MParContainer.h" #endif #ifndef ROOT_TObjArray #include #endif class MData; class MParList; class MDataArray : public MParContainer { TObjArray fList; void StreamPrimitive(ofstream &out) const; public: MDataArray(const char *name=NULL, const char *title=NULL); void AddEntry(const TString rule); void AddEntry(MData *data); MData &operator[](Int_t i) const; Double_t operator()(Int_t i); Bool_t PreProcess(const MParList *plist); TString GetDataMember() const; void Print(Option_t *opt = "") const; Bool_t AsciiWrite(ostream &out) const; Int_t GetNumEntries() const { return fList.GetEntries(); } ClassDef(MDataArray, 1) // An array of MData containers }; #endif