]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliStream.h
Incrementing class version
[u/mrichter/AliRoot.git] / STEER / AliStream.h
CommitLineData
77843484 1#ifndef ALISTREAM_H
2#define ALISTREAM_H
3/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8////////////////////////////////////////////////////////////////////////
9//
10// Class to handle files on IO
11//
12// Author: Jiri Chudoba (CERN), 2001
13//
14////////////////////////////////////////////////////////////////////////
15
16// --- ROOT system ---
17#include "TNamed.h"
e2afb3b6 18
88cb7938 19// --- AliRoot header files ---
20//#include <TString.h>
21
22#include "TObjArray.h"
e2afb3b6 23class TFile;
77843484 24
88cb7938 25class TString;
77843484 26
27class AliStream: public TNamed {
28
29public:
30 AliStream();
88cb7938 31 AliStream(const char* foldername, Option_t *optioneventfoldername);
77843484 32 virtual ~AliStream();
88cb7938 33
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
39
40 const TString& GetFolderName() const{return fEventFolderName;}
41 Int_t GetNInputFiles() const {return fFileNames->GetLast()+1;}
d0f1ee3b 42 TString GetFileName(Int_t order) const;
18787eca 43 void SetFolderName(const TString name) { fEventFolderName = name ; }
44 Int_t GetCurrentEventNumber() const { return fLastEventSerialNr ; }
45
77843484 46private:
88cb7938 47 Int_t fLastEventSerialNr;
48 Int_t fLastEventNr;
49 Int_t fCurrentFileIndex;
50 Int_t fEvents; //! nr. of events in the current file
51 TString fMode; // = 0 for READONLY, = 1 for READWRITE
52 TObjArray* fFileNames;
53
54 TString fEventFolderName; //Name of the folder where data for this stram will be mounted
77843484 55
56 ClassDef(AliStream,1)
57};
58
59#endif // ALISTREAM_H