00001 // ===================================================================== 00002 // $Id: TEventAction.hh,v 1.2 2003/07/30 16:18:09 goiwai Exp $ 00003 // $Name: CLDAQ-1-08-01 $ 00004 // 00005 // $Log: TEventAction.hh,v $ 00006 // Revision 1.2 2003/07/30 16:18:09 goiwai 00007 // ファイルにコミットログをつけることにしました. 00008 // 00009 // ===================================================================== 00010 #ifndef __TEVENTACTION_HH 00011 #define __TEVENTACTION_HH 00012 00013 #include "Tglobals.h" 00014 00015 class TEvent; 00016 class TReadoutList; 00017 class TRunManager; 00018 class TEventManager; 00019 class TReadoutBook; 00020 class TCrate; 00021 00022 class TEventAction 00023 { 00024 00025 protected: 00026 TRunManager* theRunManager; 00027 TEventManager* theEventManager; 00028 TReadoutBook* theReadoutBook; 00029 TCrate* theCrate; 00030 00031 public: 00032 TEventAction(); 00033 virtual ~TEventAction(); 00034 00035 public: 00036 virtual TReadoutList* WaitEvent() = 0; 00037 00038 public: 00039 virtual Tvoid BeginOfEventAction( TEvent& anEvent ); 00040 virtual Tvoid EndOfEventAction( TEvent& anEvent ); 00041 00042 public: 00043 TRunManager* GetRunManager() const; 00044 TEventManager* GetEventManager() const; 00045 TReadoutBook* GetReadoutBook() const; 00046 TCrate* GetCrate() const; 00047 Tvoid SetRunManager( TRunManager* manager ); 00048 Tvoid SetEventManager( TEventManager* manager ); 00049 Tvoid SetReadoutBook( TReadoutBook* book ); 00050 Tvoid SetCrate( TCrate* crate ); 00051 00052 }; 00053 00054 inline TRunManager* TEventAction::GetRunManager() const 00055 { 00056 return( theRunManager ); 00057 } 00058 00059 inline TEventManager* TEventAction::GetEventManager() const 00060 { 00061 return( theEventManager ); 00062 } 00063 00064 inline TReadoutBook* TEventAction::GetReadoutBook() const 00065 { 00066 return( theReadoutBook ); 00067 } 00068 00069 inline TCrate* TEventAction::GetCrate() const 00070 { 00071 return( theCrate ); 00072 } 00073 00074 inline Tvoid TEventAction::SetRunManager( TRunManager* manager ) 00075 { 00076 theRunManager = manager; 00077 return; 00078 } 00079 00080 inline Tvoid TEventAction::SetEventManager( TEventManager* manager ) 00081 { 00082 theEventManager = manager; 00083 return; 00084 } 00085 00086 inline Tvoid TEventAction::SetReadoutBook( TReadoutBook* book ) 00087 { 00088 theReadoutBook = book; 00089 return; 00090 } 00091 00092 inline Tvoid TEventAction::SetCrate( TCrate* crate ) 00093 { 00094 theCrate = crate; 00095 return; 00096 } 00097 00098 #endif