2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
6 * @file EventInfo_p1.icc
8 * @brief This class is the persistent representation of EventInfo
9 * @author Marcin.Nowak@cern.ch
13 EventInfo_p1::EventInfo_p1() : m_trigger_info(0)
17 EventInfo_p1::~EventInfo_p1()
20 delete m_trigger_info;
25 EventInfo_p1::EventInfo_p1 (const EventInfo_p1& other)
26 : m_event_ID (other.m_event_ID),
27 m_event_type (other.m_event_type),
28 m_trigger_info (other.m_trigger_info ? new TriggerInfo_p1 (*other.m_trigger_info) : 0)
34 EventInfo_p1& EventInfo_p1::operator= (const EventInfo_p1& other)
37 m_event_ID = other.m_event_ID;
38 m_event_type = other.m_event_type;
39 if (other.m_trigger_info) {
40 m_trigger_info = new TriggerInfo_p1 (*other.m_trigger_info);
43 m_trigger_info = nullptr;
51 EventInfo_p1::EventInfo_p1 (EventInfo_p1&& other)
52 : m_event_ID (other.m_event_ID),
53 m_event_type (other.m_event_type),
54 m_trigger_info (other.m_trigger_info)
56 other.m_trigger_info = nullptr;
61 EventInfo_p1& EventInfo_p1::operator= (EventInfo_p1&& other)
64 m_event_ID = other.m_event_ID;
65 m_event_type = other.m_event_type;
66 m_trigger_info = other.m_trigger_info;
67 other.m_trigger_info = nullptr;