#ifndef ALISTREAM_H #define ALISTREAM_H /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ //////////////////////////////////////////////////////////////////////// // // Class to handle files on IO // // Author: Jiri Chudoba (CERN), 2001 // //////////////////////////////////////////////////////////////////////// // --- ROOT system --- #include "TNamed.h" #include "TObjString.h" #include "TArrayI.h" #include "TClonesArray.h" #include "TFile.h" // --- AliRoot header files --- class AliStream: public TNamed { public: AliStream(); AliStream(Option_t *option); virtual ~AliStream(); void AddFile(const char *fileName); Bool_t NextEventInStream(Int_t &eventNr); Bool_t OpenNextFile(); Bool_t ImportgAlice(); TFile* CurrentFile() { return fCurrentFile;} void ChangeMode(Option_t* option); // reset READ or UPDATE mode private: Int_t fLastEventSerialNr; Int_t fLastEventNr; Int_t fCurrentFileIndex; Int_t fEvents; //! nr. of events in the current file TString fMode; // = 0 for READONLY, = 1 for READWRITE TFile *fCurrentFile; //! pointer to current open file TObjArray * fFileNames; ClassDef(AliStream,1) }; #endif // ALISTREAM_H