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"
21 #include "TClonesArray.h"
24 // --- AliRoot header files ---
26 class AliStream: public TNamed {
30 AliStream(Option_t *option);
32 void AddFile(const char *fileName);
33 Bool_t NextEventInStream(Int_t &eventNr);
34 Bool_t OpenNextFile();
35 Bool_t ImportgAlice();
36 TFile* CurrentFile() { return fCurrentFile;}
37 void ChangeMode(Option_t* option); // reset READ or UPDATE mode
38 Int_t GetNInputFiles() const {return fFileNames->GetLast()+1;}
39 TString GetFileName(const Int_t order) const;
42 Int_t fLastEventSerialNr;
44 Int_t fCurrentFileIndex;
45 Int_t fEvents; //! nr. of events in the current file
46 TString fMode; // = 0 for READONLY, = 1 for READWRITE
47 TFile *fCurrentFile; //! pointer to current open file
48 TObjArray * fFileNames; // storage for TStrings with file names