00001 /*************************************************************************** 00002 * 00003 * $Id: StEventMaker.h,v 2.15 2009/11/23 16:37:08 fisyak Exp $ 00004 * 00005 * Author: Original version by T. Wenaus, BNL 00006 * Revised version for new StEvent by T. Ullrich, Yale 00007 *************************************************************************** 00008 * 00009 * Description: Setup of StEvent 00010 * 00011 *************************************************************************** 00012 * 00013 * $Log: StEventMaker.h,v $ 00014 * Revision 2.15 2009/11/23 16:37:08 fisyak 00015 * Clean up, fix problem with bunch crossing information in StEventInfo and StHddr 00016 * 00017 * Revision 2.13 2009/11/19 16:54:09 fisyak 00018 * Clean up 00019 * 00020 * Revision 2.12 2009/11/10 20:45:08 fisyak 00021 * pams Cleanup 00022 * 00023 * Revision 2.11 2002/04/18 23:29:35 jeromel 00024 * Implementation of the SVT 2 tables scheme ... 00025 * 00026 * Revision 2.10 2002/02/25 19:34:14 ullrich 00027 * Fill parts of StRunInfo from StDetectorDbBeamInfo. 00028 * 00029 * Revision 2.9 2001/09/28 22:22:05 ullrich 00030 * Load helix geometry at last point of each track. 00031 * 00032 * Revision 2.8 2001/09/18 00:16:07 ullrich 00033 * Fill and add StRunInfo. 00034 * 00035 * Revision 2.7 2001/09/12 23:49:22 ullrich 00036 * Removed code to build StRun and StRunSummary. 00037 * 00038 * Revision 2.6 2001/05/17 22:46:38 ullrich 00039 * Removed loading of event summary params. 00040 * 00041 * Revision 2.5 2001/02/22 04:59:16 ullrich 00042 * Added protected method getStEventInstance(). 00043 * 00044 * Revision 2.4 2000/08/17 00:38:52 ullrich 00045 * Allow loading of tpt tracks. 00046 * 00047 * Revision 2.3 2000/05/24 15:48:20 ullrich 00048 * Instance of StEvent now also created if no DST dataset 00049 * is available. 00050 * 00051 * Revision 2.2 2000/01/05 16:07:47 ullrich 00052 * Added loading of SSD hits and handling of runco branch. 00053 * 00054 * Revision 2.1 1999/11/05 18:35:57 ullrich 00055 * Added methods and flags for debugging and monitoring. 00056 * 00057 * Revision 2.0 1999/11/04 19:03:00 ullrich 00058 * Revised to build new StEvent version 00059 * 00060 **************************************************************************/ 00061 #ifndef STAR_StEventMaker 00062 #define STAR_StEventMaker 00063 00064 #include "StMaker.h" 00065 #include "StEventMaker/StEventManager.hh" 00066 class StEvent; 00067 class StTrack; 00068 class StRunInfo; 00069 00070 class StEventMaker : public StMaker { 00071 public: 00072 StEventMaker(const char *name="StEventMaker", const char *title=""); 00073 virtual ~StEventMaker(); 00074 00075 virtual Int_t Init(); 00076 virtual Int_t Make(); 00077 virtual void setEventManager(StEventManager* mgr); 00078 virtual StEventManager* eventManager(); 00079 virtual StEvent* event(); 00080 virtual void Clear(const char* opt=""); 00081 00082 virtual const char *GetCVS() const 00083 { 00084 static const char cvs[]="$Id: StEventMaker.h,v 2.15 2009/11/23 16:37:08 fisyak Exp $ built "__DATE__" "__TIME__ ; 00085 return cvs; 00086 } 00087 00088 public: 00089 Bool_t doLoadTpcHits; 00090 Bool_t doLoadFtpcHits; 00091 Bool_t doLoadSvtHits; 00092 Bool_t doLoadSsdHits; 00093 Bool_t doLoadTptTracks; 00094 Bool_t doLoadEstTracks; 00095 00096 Bool_t doPrintEventInfo; 00097 Bool_t doPrintMemoryInfo; 00098 Bool_t doPrintCpuInfo; 00099 00100 protected: 00101 Int_t makeEvent(); 00102 StEvent* getStEventInstance(); 00103 void printEventInfo(); 00104 void printTrackInfo(StTrack*); 00105 00106 private: 00107 StEventManager* mEventManager; 00108 StEvent* mCurrentEvent; 00109 Bool_t mCreateEmptyInstance; 00110 ClassDef(StEventMaker, 0) 00111 }; 00112 #endif
1.5.9