StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StIOMaker.h
1 
4 #ifndef STAR_StIOMaker
5 #define STAR_StIOMaker
6 
7 
8 #include "StMaker.h"
9 #include "StTree.h"
10 #include "StIOInterFace.h"
11 
12 //class St_io_Maker;
13 //class St_xdfin_Maker;
14 //class StTreeMaker;
15 
16 class StIOMaker : public StIOInterFace {
17 public:
18  StIOMaker(const char *name="StIO",const char *iomode="r", const char *ioFile="",const char *treeName="bfcTree");
19  StIOMaker(const char *name, const char *iomode, StFileI *fileSet ,const char *treeName="bfcTree");
20  virtual ~StIOMaker();
21  virtual Int_t Init();
22  virtual Int_t Make();
23  Int_t MakeRead();
24  Int_t MakeRead(const StUKey &);
25  Int_t MakeWrite();
26  Int_t Open(const char * = 0);
27  Int_t OpenRead();
28  Int_t OpenWrite();
29  void Close(Option_t *opt=0);
30  virtual Int_t Finish();
31  virtual void Clear(Option_t *opt);
32  virtual void SetFile(const char *file);
33  void SetMaxEvent(Int_t mx=10000000){fMaxEvent=mx;fNumEvent=0;};
34  void SetFileSet(StFileI *fileSet){fFileSet = fileSet;};
35  virtual Int_t Skip(int nskip){fSkip=nskip;return 0;}
36  virtual Int_t Skip();
37  virtual void Rewind();
38  virtual void NotifyMe(const char *about,const void *info);
39 
40 
41 protected:
42 
43 void Build(StFileI *fileSet,const char *ioFile,const char *treeName);
44 StIOInterFace *Load();
45 
46 
47 // Data members
48 
49 
50  StFileI *fFileSet;
51  TString fNextFile;
54  Int_t fMaxEvent;
55  Int_t fNumEvent;
56  Int_t fCase ;
57  Int_t fSkip ;
58 
59  virtual const char *GetCVS() const
60  {static const char cvs[]="Tag $Name: $ $Id: StIOMaker.h,v 1.15 2014/08/06 11:43:21 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
61 
62  ClassDef(StIOMaker,0) //StAR chain virtual base class for Makers
63 };
64 
65 #endif
Int_t fCase
for debug only
Definition: StIOMaker.h:56
StIOInterFace * fCurrMk
next file from file set
Definition: StIOMaker.h:52
virtual void Clear(Option_t *opt)
User defined functions.
Definition: StIOMaker.cxx:252
virtual Int_t Finish()
Definition: StIOMaker.cxx:231
void Build(StFileI *fileSet, const char *ioFile, const char *treeName)
Definition: StIOMaker.cxx:58
Int_t fSkip
case 1=root,2=xdf,3=mdc2,4=daq
Definition: StIOMaker.h:57
virtual Int_t Make()
Definition: StIOMaker.cxx:183
TString fNextFile
Chain of files.
Definition: StIOMaker.h:51
Int_t fNumEvent
for debug only
Definition: StIOMaker.h:55
Definition: StFileI.h:13
Int_t fMaxEvent
Pointers to TreeMaker,xdfin_Maker,St_io_Maker,StDAQMaker.
Definition: StIOMaker.h:54
StIOInterFace * fFmtMk[9]
Pointer to Current Maker.
Definition: StIOMaker.h:53