TRunAction.hh Source File

メインページ モジュール クラス階層 アルファベット順一覧 構成 ファイル一覧 構成メンバ ファイルメンバ 関連ページ

# TRunAction.hh

解説を見る。

    00001 // =====================================================================
    00002 //  $Id: TRunAction.hh,v 1.2 2003/06/27 10:00:36 goiwai Exp $
    00003 //  $Name: CLDAQ-1-06-00 $
    00004 // =====================================================================
    00005 #ifndef __TRUNACTION_HH
    00006 #define __TRUNACTION_HH
    00007
    00008 #include "Tglobals.h"
    00009
    00010 class TRun;
    00011 class TRunManager;
    00012 class TEventManager;
    00013 class TReadoutBook;
    00014 class TCrate;
    00015
    00016 class TRunAction
    00017 {
    00018
    00019   protected:
    00020     TRunManager* theRunManager;
    00021     TEventManager* theEventManager;
    00022     TReadoutBook* theReadoutBook;
    00023     TCrate* theCrate;
    00024
    00025   public:
    00026     TRunAction();
    00027     virtual ~TRunAction();
    00028
    00029   public:
    00030     virtual Tvoid BeginOfRunAction( TRun& aRun );
    00031     virtual Tvoid EndOfRunAction( TRun& aRun );
    00032
    00033   public:
    00034     TRunManager* GetRunManager() const;
    00035     TEventManager* GetEventManager() const;
    00036     TReadoutBook* GetReadoutBook() const;
    00037     TCrate* GetCrate() const;
    00038     Tvoid SetRunManager( TRunManager* manager );
    00039     Tvoid SetEventManager( TEventManager* manager );
    00040     Tvoid SetReadoutBook( TReadoutBook* book );
    00041     Tvoid SetCrate( TCrate* crate );
    00042
    00043 };
    00044
    00045 inline TRunManager* TRunAction::GetRunManager() const
    00046 {
    00047   return( theRunManager );
    00048 }
    00049
    00050 inline TEventManager* TRunAction::GetEventManager() const
    00051 {
    00052   return( theEventManager );
    00053 }
    00054
    00055 inline TReadoutBook* TRunAction::GetReadoutBook() const
    00056 {
    00057   return( theReadoutBook );
    00058 }
    00059
    00060 inline TCrate* TRunAction::GetCrate() const
    00061 {
    00062   return( theCrate );
    00063 }
    00064
    00065 inline Tvoid TRunAction::SetRunManager( TRunManager* manager )
    00066 {
    00067   theRunManager = manager;
    00068   return;
    00069 }
    00070
    00071 inline Tvoid TRunAction::SetEventManager( TEventManager* manager )
    00072 {
    00073   theEventManager = manager;
    00074   return;
    00075 }
    00076
    00077 inline Tvoid TRunAction::SetReadoutBook( TReadoutBook* book )
    00078 {
    00079   theReadoutBook = book;
    00080   return;
    00081 }
    00082
    00083 inline Tvoid TRunAction::SetCrate( TCrate* crate )
    00084 {
    00085   theCrate = crate;
    00086   return;
    00087 }
    00088
    00089 #endif