Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TUpdater Class Reference

A class to handle update timing of static objects of tracking. More...

#include <TUpdater.h>

Inheritance diagram for TUpdater:

TMDC TMDC TTrackManager TTrackManager List of all members.

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

Detailed Description

A class to handle update timing of static objects of tracking.


Constructor & Destructor Documentation

TUpdater::TUpdater  ) 
 

Constructor.

00019                    : _expN(0), _runN(0), _evtN(0), _init(false) {
00020 }

TUpdater::~TUpdater  )  [virtual]
 

Destructor.

00022                     {
00023 }

TUpdater::TUpdater  ) 
 

Constructor.

virtual TUpdater::~TUpdater  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void TUpdater::clear void   )  [virtual]
 

clears an object.

Reimplemented in TMDC, TTrackManager, TMDC, and TTrackManager.

void TUpdater::clear void   )  [inline, virtual]
 

clears an object.

Reimplemented in TMDC, TTrackManager, TMDC, and TTrackManager.

00088                     {
00089     _expN = -1;
00090 }

void TUpdater::dump const std::string &  message = std::string(""),
const std::string &  prefix = std::string("")
const
 

dumps debug information.

Reimplemented in TTrackManager, and TTrackManager.

void TUpdater::dump const std::string &  message = std::string(""),
const std::string &  prefix = std::string("")
const
 

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 }

virtual void TUpdater::initialize void   )  [virtual]
 

initializes an object.

void TUpdater::initialize void   )  [inline, virtual]
 

initializes an object.

00082                          {
00083     _init = true;
00084 }

virtual bool TUpdater::initialized void   )  const [virtual]
 

returns true if an object is initialized.

bool TUpdater::initialized void   )  const [inline, virtual]
 

returns true if an object is initialized.

00076                                 {
00077     return _init;
00078 }

virtual void TUpdater::update void   )  [virtual]
 

updates an object.

void TUpdater::update void   )  [virtual]
 

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 }

virtual bool TUpdater::updated void   )  const [virtual]
 

returns true if an object is updated.

bool TUpdater::updated void   )  const [virtual]
 

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 }


Member Data Documentation

int TUpdater::_evtN [private]
 

int TUpdater::_expN [private]
 

bool TUpdater::_init [private]
 

int TUpdater::_runN [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:12:24 2011 for BOSS6.5.5 by  doxygen 1.3.9.1