Belle II Software development
ProcessedEventBackup.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include <framework/pcore/zmq/processModules/ProcessedEventBackup.h>
9
10using namespace Belle2;
11
12ProcessedEventBackup::ProcessedEventBackup(std::unique_ptr<EvtMessage> evtMsg,
13 const EventMetaData& evtMetaData,
14 unsigned int workerId)
15 : m_eventMessage(std::move(evtMsg)), m_eventMetaData(evtMetaData), m_workerId(workerId)
16{
17}
18
20{
21 return m_eventMetaData;
22}
23
25{
26 return m_timestamp;
27}
28
29const unsigned int& ProcessedEventBackup::getWorkerId() const
30{
31 return m_workerId;
32}
33
35{
36 return m_eventMetaData == rhs;
37}
Store event, run, and experiment numbers.
Definition: EventMetaData.h:33
const TimeStamp & getTimestamp() const
Getter for the stored time stamp.
std::chrono::time_point< std::chrono::system_clock > TimeStamp
Short for the class of the time stamp (it is a system clock time stamp)
const unsigned int & getWorkerId() const
Getter for the stored worker id.
TimeStamp m_timestamp
Getter for the stored time stamp.
ProcessedEventBackup(std::unique_ptr< EvtMessage > evtMsg, const EventMetaData &evtMetaData, unsigned int workerId)
Constructor setting the informations. Takes ownership of the evtMsg.
unsigned int m_workerId
Getter for the stored worker id.
const EventMetaData & getEventMetaData() const
Getter for the stored event meta data.
bool operator==(const EventMetaData &rhs)
Compare operator needed in the backup list.
EventMetaData m_eventMetaData
Getter for the stored event meta data.
Abstract base class for different kinds of events.
STL namespace.