]>
Commit | Line | Data |
---|---|---|
2589e668 | 1 | #ifndef TGLITEXMLEVENTLIST_H |
2 | #define TGLITEXMLEVENTLIST_H | |
3 | ||
4 | /////////////////////////////////////////////////////////////////////////////////////// | |
5 | // class to read gLite XML collections | |
6 | // Autor: Dr. A.-J. Peters - CERN 2004/ALICE Mail-to: Andreas.Joachim.Peters@cern.ch | |
7 | /////////////////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | // example: | |
10 | // --------------------------------------------------------------------------------- | |
11 | // TGliteXmlEventlist* evlist = new TGliteXmlEventlist("/tmp/fileset.rxml"); | |
12 | // evlist->Reset() | |
13 | // // loop over all events | |
14 | // while (evlist->Next()) { | |
15 | // printf("URL for file AliESDs.root is: \n", evlist->GetURL("AliESDs.root")); | |
16 | // } | |
17 | // delete evlist; | |
18 | // --------------------------------------------------------------------------------- | |
19 | ||
20 | ||
21 | #include <TObject.h> | |
22 | #include <TString.h> | |
23 | class TList; | |
24 | class TIter; | |
25 | class TMap; | |
26 | ||
27 | class TGliteXmlEventlist : public TObject { | |
28 | public: | |
29 | TGliteXmlEventlist(const char* localfilename); | |
30 | virtual ~TGliteXmlEventlist(); | |
31 | void Reset(); | |
32 | TMap* Next(); | |
33 | const char* GetURL(const char* name) const ; | |
34 | void Print(Option_t* opt) const; | |
35 | private: | |
af250cbf | 36 | TGliteXmlEventlist(const TGliteXmlEventlist & src); |
37 | TGliteXmlEventlist & operator=(const TGliteXmlEventlist & src); | |
38 | ||
2589e668 | 39 | TString fXmlFile;//Andi - please put a comment |
40 | TList* fEventList;//Andi - please put a comment | |
41 | TIter* fEventListIter;//Andi - please put a comment | |
42 | TMap* fCurrent;//Andi - please put a comment | |
43 | ||
44 | virtual void ReadXML(); | |
45 | ||
46 | ClassDef(TGliteXmlEventlist,0); | |
47 | }; | |
48 | ||
49 | #endif |