StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEStructEventMaker.h
1 /**********************************************************************
2  *
3  * $Id: StEStructEventMaker.h,v 1.2 2015/08/29 03:24:18 perev Exp $
4  *
5  * Author: Jeff Porter rework of Jeff Reid's code
6  *
7  **********************************************************************
8  *
9  * Description: This is an maker designed to read a STAR dst and
10  * summarize it into an EStructEvent which contains only
11  * the information necessary for EbyE analysis.
12  *
13  **********************************************************************/
14 
15 #ifndef StEStructEventMaker_HH
16 #define StEStructEventMaker_HH
17 
18 #include <Stiostream.h>
19 #include "TTree.h"
20 #include "TFile.h"
21 #include "TString.h"
22 #include "TChain.h"
23 #include "StMaker.h"
24 #include "StEStructEvent.h"
25 
26 
27 class StEStructEventMaker : public StMaker {
28 
29 private:
30 
31  // input containors...
32  char* mfileList;
33  int mfileCount;
34  int meventCount;
35  TChain* mChain;
36 
37  // output containors...
38  char* moutFile;
39  TFile* mEStructEventFile;
40  TTree* mEStructTree;
41 
42  StEStructEvent* mEStructEvent; //->
43 
44  bool readEvent();
45  bool openWrite();
46  bool openRead();
47 
48  void setName(const char* name, int opt);
49 
50 public:
51 
52  StEStructEventMaker(const Char_t *name="EStructEvent", const Char_t *title="EStructEvent");
54  void Clear(Option_t *option="");
55  Int_t Init();
56  Int_t Make();
57  Int_t Finish();
58 
59  // very simply model.... input filelist
60  // output is null or a single file....
61 
62  void setInputFileList(const char* flist);
63  void setOutputFile(const char* ofile);
64  StEStructEvent* event();
65  bool writeEvent(StEStructEvent* e);
66  virtual const char *GetCVS() const
67  {static const char cvs[]="Tag $Name: $ $Id: StEStructEventMaker.h,v 1.2 2015/08/29 03:24:18 perev Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
68 
69  ClassDef(StEStructEventMaker, 1)
70 };
71 
72 #endif
73 
74 
75 /**********************************************************************
76  *
77  * $Log: StEStructEventMaker.h,v $
78  * Revision 1.2 2015/08/29 03:24:18 perev
79  * __DATE
80  *
81  * Revision 1.1 2003/10/15 18:20:51 porter
82  * initial check in of Estruct Analysis maker codes.
83  *
84  *
85  *********************************************************************/
86 
void Clear(Option_t *option="")
User defined functions.