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 "TObjArray.h"
23 // --- AliRoot header files ---
25 class AliStream: public TNamed {
29 AliStream(Option_t *option);
30 AliStream(const AliStream& str);
31 AliStream & operator=(const AliStream& str)
32 {str.Copy(*this); return (*this);}
34 void AddFile(const char *fileName);
35 Bool_t NextEventInStream(Int_t &eventNr);
36 Bool_t OpenNextFile();
37 Bool_t ImportgAlice();
38 TFile* CurrentFile() { return fCurrentFile;}
39 void ChangeMode(Option_t* option); // reset READ or UPDATE mode
40 Int_t GetNInputFiles() const {return fFileNames->GetLast()+1;}
41 TString GetFileName(const Int_t order) const;
44 void Copy(AliStream& str) const;
46 Int_t fLastEventSerialNr; // Serial number of the last event
47 Int_t fLastEventNr; // Number of the last event
48 Int_t fCurrentFileIndex; // Index of the current file
49 Int_t fEvents; //! nr. of events in the current file
50 TString fMode; // = 0 for READONLY, = 1 for READWRITE
51 TFile *fCurrentFile; //! pointer to current open file
52 TObjArray * fFileNames; // storage for TStrings with file names