#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(); virtual ~AliStream(); void AddFile(char *fileName); Bool_t NextEventInStream(Int_t &eventNr); Bool_t OpenNextFile(); Bool_t ImportgAlice(); TFile* CurrentFile() { return fCurrentFile;} private: Int_t fLastEventSerialNr; Int_t fLastEventNr; Int_t fCurrentFileIndex; Int_t fEvents; //! nr. of events in the current file TFile *fCurrentFile; TObjArray * fFileNames; ClassDef(AliStream,1) }; #endif // ALISTREAM_H