StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTreeMaker.h
1 
18 #ifndef STAR_StTreeMaker
19 #define STAR_StTreeMaker
20 
22 // //
23 // StTreeMaker //
24 // //
26 
27 #ifndef StMaker_H
28 #include "StMaker.h"
29 #endif
30 #include "StIOInterFace.h"
31 #include "StTree.h"
32 #include "TTable.h"
33 #include "Ttypes.h"
35  Char_t maker_name[12]; /* Truncated maker name */
36  Int_t status; /* Status number (warning,error) */
37 };
38 class St_dst_bfc_status : public TTable {
39  public:
41  ClassDef(St_dst_bfc_status,1) //C++ container for chain/makers status
42 };
43 
44 
45 class StTreeMaker : public StIOInterFace {
46 private:
47  Int_t fFinished;
48  St_dst_bfc_status *fBfcStatus;
49 public:
50  StTreeMaker(const Char_t *name="",const Char_t *ioFile="",const Char_t *treeName=0);
51  virtual ~StTreeMaker();
52  virtual Int_t Init();
53  virtual Int_t Make();
54  virtual Int_t MakeRead(const StUKey &RunEvent);
55  virtual Int_t MakeRead(){StUKey uk; return MakeRead(uk);};
56  virtual Int_t MakeWrite();
57  Int_t MakeBfcStatus();
58  virtual Int_t Finish();
59  virtual Int_t Save();
60  virtual Int_t Skip(int nskip);
61  virtual void Clear(Option_t *opt);
62  virtual Int_t Open(const Char_t *ioFile=0);
63  virtual void Close(Option_t *opt=0);
64  void UpdateTree(Int_t flag);
65  void UpdateHddr();
66  virtual void FillHistBranch(StBranch *histBr);
67 
68 
69 
70  StTree *GetTree(){return fTree;};
71  StBranch *GetBranch(const Char_t *brName)
72  {if(!fTree)return 0;return (StBranch*)fTree->Find(brName);};
73 
74  virtual const Char_t *GetCVS() const
75  {static const Char_t cvs[]="Tag $Name: $ $Id: StTreeMaker.h,v 1.19 2014/08/06 11:43:51 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
76 
77 private:
78  StTree *fTree;
79  ClassDef(StTreeMaker, 0) //general StAR IO maker
80 };
81 
82 #endif
StTreeMaker(const Char_t *name="", const Char_t *ioFile="", const Char_t *treeName=0)
noIO
Definition: StTreeMaker.cxx:19
virtual Int_t Finish()
virtual Int_t Make()
virtual void Clear(Option_t *opt)
User defined functions.
Definition: TTable.h:48
Definition: StFileI.h:13
Definition: StTree.h:84
virtual TDataSet * Find(const char *path) const
Definition: TDataSet.cxx:362