StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StIOInterFace.h
1 #ifndef STAR_StIOInterFace
2 #define STAR_StIOInterFace
3 
5 // //
6 // StIOInterFace //
7 // //
9 
10 #ifndef STAR_StRTSBaseMaker_H
11 #include "StRTSBaseMaker.h"
12 #endif
13 #include "StTree.h"
14 class StUKey;
15 
16 class StIOInterFace : public StRTSBaseMaker {
17 private:
18 TString fFileName;
19 public:
20  StIOInterFace(const char *name="",const char *iomode="r");
21  virtual ~StIOInterFace(){};
22  virtual Int_t MakeRead() {return Make();};
23  virtual Int_t MakeRead(const StUKey &/* RunEvent */) {return MakeRead();};
24  virtual Int_t Make() {assert(0);return 1999;};
25  virtual Int_t Skip(int nskip);
26  virtual Int_t MakeWrite(){assert(0);return 1999;};
27  virtual Int_t Open(const char *filename=0){assert(0&&filename);return 1999;};
28  virtual void Close(Option_t *opt=0){assert(0&&opt);};
29  virtual Int_t Finish();
30  TString fIOMode;
31  TString fTreeName;
32  TString fFile;
33  Int_t fNIO;
34 
35  virtual void SetIOMode(Option_t *iomode="w") {fIOMode=tolower(iomode[0]);};
36  virtual void SetTreeName(const Char_t *treeName="bfcTree"){fTreeName=treeName;};
37  virtual const Char_t *GetTreeName() const {return (const Char_t*)fTreeName;};
38  virtual void SetFileName(const char *fileName){fFile = fileName;};
39  virtual void SetFile(const char *fileName) {fFile = fileName;};
40  virtual const char *GetFile() const {return (const char*)fFile;};
41  virtual const char *GetFileName() const {return GetFile();};
42 
43  virtual void SetBranch (const Char_t *brName,const Char_t *file=0,const Char_t *iomode="w",Option_t *opt=0);
44  virtual void IntoBranch(const Char_t *brName,const Char_t *logNames);
45 
46  ClassDef(StIOInterFace, 1) //StAR chain virtual base class for Makers
47 };
48 
49 #endif
Class StRTSBaseMaker - is an abstract StMaker to define the interface to access the DAQ data from the...
Int_t fNIO
Main file name name.
Definition: StIOInterFace.h:33
TString fTreeName
r=read,w=write,u=update
Definition: StIOInterFace.h:31
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
Definition: StIOInterFace.h:35
virtual Int_t Make()
Definition: StIOInterFace.h:24
virtual Int_t Finish()
TString fFile
Tree name.
Definition: StIOInterFace.h:32
Definition: StFileI.h:13