]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliStream.h
TTask inheritance
[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"
18#include "TObjString.h"
19#include "TArrayI.h"
20#include "TClonesArray.h"
21#include "TFile.h"
22
23// --- AliRoot header files ---
24
25class AliStream: public TNamed {
26
27public:
28 AliStream();
29 virtual ~AliStream();
30 void AddFile(char *fileName);
31 Bool_t NextEventInStream(Int_t &eventNr);
32 Bool_t OpenNextFile();
33 Bool_t ImportgAlice();
34 TFile* CurrentFile() { return fCurrentFile;}
35
36private:
37 Int_t fLastEventSerialNr;
38 Int_t fLastEventNr;
39 Int_t fCurrentFileIndex;
40 Int_t fEvents; //! nr. of events in the current file
41 TFile *fCurrentFile;
42 TObjArray * fFileNames;
43
44 ClassDef(AliStream,1)
45};
46
47#endif // ALISTREAM_H