5#include "EventInfo/EventInfo.h"
28 const std::vector<unsigned int>& event_flags = trans->
eventFlags();
29 if (event_flags.size()) {
31 for (
unsigned int i = 0; i < event_flags.size(); ++i) {
32 if (event_flags[i]) { copy =
true;
break; }
47 std::unique_ptr<EventInfo> trans(
new EventInfo(0,0,0) );
49 return(trans.release());
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
static const TriggerInfoCnv_p1 trigInfoCnv
static const EventTypeCnv_p1 typeConv
static const EventIDCnv_p1 idConv
This class provides general information about an event.
This class contains trigger related information.
virtual void persToTrans(const EventInfo_p2 *persObj, EventInfo *transObj, MsgStream &log) const override
virtual void transToPers(const EventInfo *transObj, EventInfo_p2 *persObj, MsgStream &log) const override
virtual EventInfo * createTransientConst(const EventInfo_p2 *persObj, MsgStream &log) const override
TriggerInfo_p2 m_trigger_info
std::vector< unsigned int > m_event_flags
EventType_p1 m_event_type
void setEventID(owner< EventID * > pid)
void setEventType(owner< EventType * >)
void setTriggerInfo(owner< TriggerInfo * > pTrig)
Add TriggerInfo to existing object.
EventID * event_ID()
the unique identification of the event.
TriggerInfo * trigger_info()
trigger information (ptr may be NULL)
unsigned int eventFlags(EventFlagSubDet subDet) const
event flags for a particular sub-detector
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc
std::vector< unsigned int > m_event_flags