3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ////////////////////////////////////////////////////////////////////////
10 // Class to handle files on IO
12 // Author: Jiri Chudoba (CERN), 2001
14 ////////////////////////////////////////////////////////////////////////
16 // --- ROOT system ---
18 #include "TObjString.h"
20 #include "TClonesArray.h"
23 // --- AliRoot header files ---
25 class AliStream: public TNamed {
29 AliStream(Option_t *option);
31 void AddFile(char *fileName);
32 Bool_t NextEventInStream(Int_t &eventNr);
33 Bool_t OpenNextFile();
34 Bool_t ImportgAlice();
35 TFile* CurrentFile() { return fCurrentFile;}
36 void ChangeMode(Option_t* option); // reset READ or UPDATE mode
39 Int_t fLastEventSerialNr;
41 Int_t fCurrentFileIndex;
42 Int_t fEvents; //! nr. of events in the current file
43 TString fMode; // = 0 for READONLY, = 1 for READWRITE
45 TObjArray * fFileNames;