ATLAS Offline Software
MergedEventInfoCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "EventInfo/EventID.h"
7 
11 
12 
13 static const EventIDCnv_p1 idConv;
14 static const EventInfoCnv_p1 baseConv;
15 
16 
17 void MergedEventInfoCnv_p1::transToPers(const MergedEventInfo* trans, MergedEventInfo_p1* pers, MsgStream &log) const {
18  baseConv.transToPers(trans, pers, log);
19  idConv.transToPers(trans->event_ID(), &pers->m_newEventID, log);
20 }
21 
22 void MergedEventInfoCnv_p1::persToTrans(const MergedEventInfo_p1* pers, MergedEventInfo* trans, MsgStream &log) const {
24  baseConv.persToTrans(pers, &base, log);
25  EventID newid;
26  idConv.persToTrans(&pers->m_newEventID, &newid, log);
27  *trans = MergedEventInfo (base,
28  newid.run_number(),
29  newid.event_number(),
30  newid.time_stamp());
31 }
EventInfoCnv_p1
Definition: EventInfoCnv_p1.h:13
EventIDCnv_p1::transToPers
virtual void transToPers(const EventID *transObj, EventID_p1 *persObj, MsgStream &log) const override
Definition: EventIDCnv_p1.cxx:8
base
std::string base
Definition: hcg.cxx:78
MergedEventInfo_p1
Definition: MergedEventInfo_p1.h:19
MergedEventInfoCnv_p1::persToTrans
virtual void persToTrans(const MergedEventInfo_p1 *persObj, MergedEventInfo *transObj, MsgStream &log) const override
Definition: MergedEventInfoCnv_p1.cxx:22
MergedEventInfoCnv_p1.h
EventIDCnv_p1::persToTrans
virtual void persToTrans(const EventID_p1 *persObj, EventID *transObj, MsgStream &log) const override
Definition: EventIDCnv_p1.cxx:21
MergedEventInfo.h
This class provides general information about an event. It extends MergedEventInfo with a list of sub...
EventID.h
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
EventIDCnv_p1
Definition: EventIDCnv_p1.h:14
MergedEventInfo
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old MergedEventInfo
Definition: EventTPCnv.cxx:77
MergedEventInfoCnv_p1::transToPers
virtual void transToPers(const MergedEventInfo *transObj, MergedEventInfo_p1 *persObj, MsgStream &log) const override
Definition: MergedEventInfoCnv_p1.cxx:17
EventInfoCnv_p1.h
EventInfoCnv_p1::transToPers
virtual void transToPers(const EventInfo *transObj, EventInfo_p1 *persObj, MsgStream &log) const override
Definition: EventInfoCnv_p1.cxx:21
EventIDCnv_p1.h
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:43
MergedEventInfo_p1::m_newEventID
EventID_p1 m_newEventID
Definition: MergedEventInfo_p1.h:22
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
EventID
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Definition: EventID.h:35
MergedEventInfo::event_ID
const EventID * event_ID() const
the new identification of the event.
Definition: MergedEventInfo.h:79
EventInfoCnv_p1::persToTrans
virtual void persToTrans(const EventInfo_p1 *persObj, EventInfo *transObj, MsgStream &log) const override
Definition: EventInfoCnv_p1.cxx:29
MergedEventInfo
This class provides general information about an event. It extends MergedEventInfo with a list of sub...
Definition: MergedEventInfo.h:43