AliEn Classes necessary for analysis
[u/mrichter/AliRoot.git] / ANALYSIS / TGliteXmlEventlist.h
CommitLineData
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>
23class TList;
24class TIter;
25class TMap;
26
27class TGliteXmlEventlist : public TObject {
28public:
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;
35private:
36 TString fXmlFile;//Andi - please put a comment
37 TList* fEventList;//Andi - please put a comment
38 TIter* fEventListIter;//Andi - please put a comment
39 TMap* fCurrent;//Andi - please put a comment
40
41 virtual void ReadXML();
42
43 ClassDef(TGliteXmlEventlist,0);
44};
45
46#endif