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
11 // Handles files and returns serial event number
12 // Author: Jiri Chudoba (CERN), 2001
14 ////////////////////////////////////////////////////////////////////////
16 // --- ROOT system ---
19 // --- AliRoot header files ---
25 class AliStream: public TNamed {
29 AliStream(const char* foldername, Option_t *optioneventfoldername);
30 AliStream(const AliStream &as);
31 AliStream & operator = (const AliStream & as)
32 {as.Copy(*this); return *this;}
35 void AddFile(const char *fileName);
36 Bool_t NextEventInStream();
37 Bool_t OpenNextFile();//returns kFALSE in case of failure
38 Bool_t ImportgAlice();
39 void ChangeMode(Option_t* option); // reset READ or UPDATE mode
41 const TString& GetFolderName() const{return fEventFolderName;}
42 Int_t GetNInputFiles() const {return fFileNames->GetLast()+1;}
43 TString GetFileName(Int_t order) const;
44 void SetFolderName(const TString name) { fEventFolderName = name ; }
45 Int_t GetCurrentEventNumber() const { return fLastEventSerialNr ; }
49 void Copy(TObject & as) const;
51 Int_t fLastEventSerialNr; // Serial number of last event
52 Int_t fLastEventNr; // Number of last event
53 Int_t fCurrentFileIndex; // Index of current file
54 Int_t fEvents; //! nr. of events in the current file
55 TString fMode; // = 0 for READONLY, = 1 for READWRITE
56 TObjArray* fFileNames; // List of file names
58 TString fEventFolderName; //Name of the folder where data for this stram will be mounted