ATLAS Offline Software
MergedEventInfoCnv_p2.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_p2 idConv;
14 static const EventInfoCnv_p3 baseConv;
15 
16 void MergedEventInfoCnv_p2::persToTrans(const MergedEventInfo_p2* pers, MergedEventInfo* trans, MsgStream &log) const {
18  baseConv.persToTrans(pers, &base, log);
19  std::vector<unsigned int>::const_iterator i=pers->m_newEventIDdata.begin();
20  EventID newid;
21  idConv.persToTrans(i, &newid);
22  *trans = MergedEventInfo (base,
23  newid.run_number(),
24  newid.event_number(),
25  newid.time_stamp());
26 }
27 
28 void MergedEventInfoCnv_p2::transToPers(const MergedEventInfo* trans, MergedEventInfo_p2* pers, MsgStream &log) const {
29  baseConv.transToPers(trans, pers, log);
30  idConv.transToPers(trans->event_ID(), pers->m_newEventIDdata);
31 }
32 
base
std::string base
Definition: hcg.cxx:78
MergedEventInfo_p2::m_newEventIDdata
std::vector< unsigned int > m_newEventIDdata
Definition: MergedEventInfo_p2.h:22
EventIDCnv_p2::persToTrans
void persToTrans(std::vector< unsigned int >::const_iterator &nnnnpersObj, EventID *transObj) const
Definition: EventIDCnv_p2.cxx:9
MergedEventInfoCnv_p2.h
EventIDCnv_p2
Definition: EventIDCnv_p2.h:9
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...
EventInfoCnv_p3::persToTrans
virtual void persToTrans(const EventInfo_p3 *persObj, EventInfo *transObj, MsgStream &log) const override
Definition: EventInfoCnv_p3.cxx:20
lumiFormat.i
int i
Definition: lumiFormat.py:85
MergedEventInfo
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old MergedEventInfo
Definition: EventTPCnv.cxx:77
MergedEventInfoCnv_p2::persToTrans
virtual void persToTrans(const MergedEventInfo_p2 *persObj, MergedEventInfo *transObj, MsgStream &log) const override
Definition: MergedEventInfoCnv_p2.cxx:16
EventIDCnv_p2.h
EventIDCnv_p2::transToPers
void transToPers(const EventID *transObj, std::vector< unsigned int > &persObj) const
Definition: EventIDCnv_p2.cxx:22
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:43
EventInfoCnv_p3.h
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
EventInfoCnv_p3
Definition: EventInfoCnv_p3.h:13
MergedEventInfo::event_ID
const EventID * event_ID() const
the new identification of the event.
Definition: MergedEventInfo.h:79
MergedEventInfoCnv_p2::transToPers
virtual void transToPers(const MergedEventInfo *transObj, MergedEventInfo_p2 *persObj, MsgStream &log) const override
Definition: MergedEventInfoCnv_p2.cxx:28
EventInfoCnv_p3::transToPers
virtual void transToPers(const EventInfo *transObj, EventInfo_p3 *persObj, MsgStream &log) const override
Definition: EventInfoCnv_p3.cxx:59
MergedEventInfo
This class provides general information about an event. It extends MergedEventInfo with a list of sub...
Definition: MergedEventInfo.h:43
MergedEventInfo_p2
Definition: MergedEventInfo_p2.h:19