#include <TUpdater.h>
Inheritance diagram for TUpdater:
Public Member Functions | |
virtual void | clear (void) |
clears an object. | |
virtual void | clear (void) |
clears an object. | |
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
dumps debug information. | |
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
dumps debug information. | |
virtual void | initialize (void) |
initializes an object. | |
virtual void | initialize (void) |
initializes an object. | |
virtual bool | initialized (void) const |
returns true if an object is initialized. | |
virtual bool | initialized (void) const |
returns true if an object is initialized. | |
TUpdater () | |
Constructor. | |
TUpdater () | |
Constructor. | |
virtual void | update (void) |
updates an object. | |
virtual void | update (void) |
updates an object. | |
virtual bool | updated (void) const |
returns true if an object is updated. | |
virtual bool | updated (void) const |
returns true if an object is updated. | |
virtual | ~TUpdater () |
Destructor. | |
virtual | ~TUpdater () |
Destructor. | |
Private Attributes | |
int | _evtN |
int | _expN |
bool | _init |
int | _runN |
|
Constructor.
|
|
Destructor.
00022 { 00023 }
|
|
Constructor.
|
|
Destructor.
|
|
clears an object.
Reimplemented in TMDC, TTrackManager, TMDC, and TTrackManager. |
|
clears an object.
Reimplemented in TMDC, TTrackManager, TMDC, and TTrackManager. 00088 { 00089 _expN = -1; 00090 }
|
|
dumps debug information.
Reimplemented in TTrackManager, and TTrackManager. |
|
dumps debug information.
Reimplemented in TTrackManager, and TTrackManager. 00026 { 00027 std::cout << pre; 00028 00029 std::cout << "updated:" << updated(); 00030 std::cout << ",exp=" << _expN; 00031 std::cout << ",run=" << _runN; 00032 std::cout << ",evt=" << _evtN; 00033 std::cout << std::endl; 00034 }
|
|
initializes an object.
|
|
initializes an object.
00082 { 00083 _init = true; 00084 }
|
|
returns true if an object is initialized.
|
|
returns true if an object is initialized.
00076 {
00077 return _init;
00078 }
|
|
updates an object.
|
|
updates an object.
00037 { 00038 if (updated()) return; 00039 00040 /* 00041 struct belle_event * ev = 00042 (struct belle_event *) BsGetEnt(BELLE_EVENT, 1, BBS_No_Index); 00043 00044 //...No BELLE_EVENT ???... 00045 if (! ev) return; 00046 00047 _expN = ev->m_ExpNo; 00048 _runN = ev->m_RunNo; 00049 _evtN = ev->m_EvtNo; 00050 */ 00051 _expN = 1; 00052 _runN = 1; 00053 _evtN = 1; 00054 }
|
|
returns true if an object is updated.
|
|
returns true if an object is updated.
00057 { 00058 /* 00059 struct belle_event * ev = 00060 (struct belle_event *) BsGetEnt(BELLE_EVENT, 1, BBS_No_Index); 00061 00062 //...No BELLE_EVENT ???... 00063 if (! ev) return false; 00064 00065 //...Same event?... 00066 if (_expN == ev->m_ExpNo && 00067 _runN == ev->m_RunNo && 00068 _evtN == ev->m_EvtNo) return true; 00069 */ 00070 00071 if (_expN == 1 && 00072 _runN == 1 && 00073 _evtN == 1) return true; 00074 00075 return false; 00076 }
|
|
|
|
|
|
|
|
|