]>
Commit | Line | Data |
---|---|---|
77843484 | 1 | #ifndef ALISTREAM_H |
2 | #define ALISTREAM_H | |
3 | /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //////////////////////////////////////////////////////////////////////// | |
9 | // | |
10 | // Class to handle files on IO | |
11 | // | |
12 | // Author: Jiri Chudoba (CERN), 2001 | |
13 | // | |
14 | //////////////////////////////////////////////////////////////////////// | |
15 | ||
16 | // --- ROOT system --- | |
17 | #include "TNamed.h" | |
18 | #include "TObjString.h" | |
19 | #include "TArrayI.h" | |
20 | #include "TClonesArray.h" | |
21 | #include "TFile.h" | |
22 | ||
23 | // --- AliRoot header files --- | |
24 | ||
25 | class AliStream: public TNamed { | |
26 | ||
27 | public: | |
28 | AliStream(); | |
6873edea | 29 | AliStream(Option_t *option); |
77843484 | 30 | virtual ~AliStream(); |
3466e07f | 31 | void AddFile(const char *fileName); |
77843484 | 32 | Bool_t NextEventInStream(Int_t &eventNr); |
33 | Bool_t OpenNextFile(); | |
34 | Bool_t ImportgAlice(); | |
35 | TFile* CurrentFile() { return fCurrentFile;} | |
6873edea | 36 | void ChangeMode(Option_t* option); // reset READ or UPDATE mode |
77843484 | 37 | |
38 | private: | |
39 | Int_t fLastEventSerialNr; | |
40 | Int_t fLastEventNr; | |
41 | Int_t fCurrentFileIndex; | |
42 | Int_t fEvents; //! nr. of events in the current file | |
6873edea | 43 | TString fMode; // = 0 for READONLY, = 1 for READWRITE |
3466e07f | 44 | TFile *fCurrentFile; //! pointer to current open file |
77843484 | 45 | TObjArray * fFileNames; |
46 | ||
47 | ClassDef(AliStream,1) | |
48 | }; | |
49 | ||
50 | #endif // ALISTREAM_H |