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 ---
19 // --- AliRoot header files ---
20 //#include <TString.h>
22 #include "TObjArray.h"
27 class AliStream: public TNamed {
31 AliStream(const char* foldername, Option_t *optioneventfoldername);
34 void AddFile(const char *fileName);
35 Bool_t NextEventInStream();
36 Bool_t OpenNextFile();//returns kFALSE in case of failure
37 Bool_t ImportgAlice();
38 void ChangeMode(Option_t* option); // reset READ or UPDATE mode
40 const TString& GetFolderName() const{return fEventFolderName;}
41 Int_t GetNInputFiles() const {return fFileNames->GetLast()+1;}
42 TString GetFileName(Int_t order) const;
43 void SetFolderName(const TString name) { fEventFolderName = name ; }
45 Int_t fLastEventSerialNr;
47 Int_t fCurrentFileIndex;
48 Int_t fEvents; //! nr. of events in the current file
49 TString fMode; // = 0 for READONLY, = 1 for READWRITE
50 TObjArray* fFileNames;
52 TString fEventFolderName; //Name of the folder where data for this stram will be mounted