FACT++  1.0
bool DataDump::WriteEvt ( const EVT_CTRL2 e)
virtual

Implements DataProcessorImp.

Reimplemented in DataDebug.

Definition at line 69 of file DataProcessorImp.cc.

References Debug, EVT_CTRL2::evNum, str, and EVT_CTRL2::trgNum.

70 {
71  const Time now;
72  if (now-fTime<boost::posix_time::seconds(5))
73  return true;
74 
75  fTime = now;
76 
77  ostringstream str;
78  str << this << " - EVENT #" << e.evNum << " / " << e.trgNum;
79  Debug(str);
80 
81  return true;
82 }
uint32_t evNum
Definition: EventBuilder.h:116
int Debug(const std::string &str)
Definition: MessageImp.h:45
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
char str[80]
Definition: test_client.c:7
uint32_t trgNum
Definition: EventBuilder.h:118