StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEventManager.hh
1 /***************************************************************************
2  *
3  * $Id: StEventManager.hh,v 2.8 2009/11/23 16:37:08 fisyak Exp $
4  *
5  * Author: Original version by T. Wenaus, BNL
6  * Revised version for new StEvent by T. Ullrich, Yale
7  ***************************************************************************
8  *
9  * Description:
10  * Abstract interface to a DST table server
11  *
12  ***************************************************************************
13  *
14  * $Log: StEventManager.hh,v $
15  * Revision 2.8 2009/11/23 16:37:08 fisyak
16  * Clean up, fix problem with bunch crossing information in StEventInfo and StHddr
17  *
18  * Revision 2.6 2009/11/19 16:54:09 fisyak
19  * Clean up
20  *
21  * Revision 2.5 2002/04/18 23:29:35 jeromel
22  * Implementation of the SVT 2 tables scheme ...
23  *
24  * Revision 2.4 2001/11/07 21:20:46 ullrich
25  * Added L1 trigger.
26  *
27  * Revision 2.3 2001/09/12 23:48:33 ullrich
28  * Removed code to load run_header and run_summary tables.
29  *
30  * Revision 2.2 2000/08/17 00:38:02 ullrich
31  * Added CpyTrk table.
32  *
33  * Revision 2.1 2000/05/25 14:45:36 ullrich
34  * Removed remaining pieces of the RICH pixel table.
35  *
36  * Revision 2.0 1999/11/04 19:03:00 ullrich
37  * Revised to build new StEvent version
38  *
39  **************************************************************************/
40 #ifndef StEventManager_HH
41 #define StEventManager_HH
42 
43 #include "St_DataSet.h"
44 #include "St_DataSetIter.h"
45 #include "tables/St_dst_L0_Trigger_Table.h"
46 #include "tables/St_dst_L1_Trigger_Table.h"
47 #include "tables/St_dst_TrgDet_Table.h"
48 
49 enum ooStatus {oocError, oocSuccess };
50 
51 class StMaker;
52 
54 public:
55  StEventManager(){mCurrentChain=0;mEvent=0;};
56  virtual ~StEventManager(){};
57 
58  virtual ooStatus openEvent(const char* colName)=0;
59  virtual ooStatus readEvent()=0;
60  virtual void closeEvent(){};
61  virtual void setup(){};
62  virtual void shutdown(){};
63 
64  virtual dst_L0_Trigger_st* returnTable_dst_L0_Trigger(long&) const =0;
65  virtual dst_L1_Trigger_st* returnTable_dst_L1_Trigger(long&) const =0;
66  virtual dst_TrgDet_st* returnTable_dst_TrgDet(long&) const =0;
67 
68  virtual void setMaker(StMaker* mk) {mCurrentChain=mk;};
69 
70 protected:
71  StMaker* mCurrentChain;
72  St_DataSet* mEvent;
73 };
74 #endif