ATLAS Offline Software
Loading...
Searching...
No Matches
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
13static const EventIDCnv_p2 idConv;
15
16void 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
28void 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
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
static const EventIDCnv_p1 idConv
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old MergedEventInfo
static const EventInfoCnv_p1 baseConv
This class provides general information about an event.
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Definition EventID.h:35
virtual void transToPers(const MergedEventInfo *transObj, MergedEventInfo_p2 *persObj, MsgStream &log) const override
virtual void persToTrans(const MergedEventInfo_p2 *persObj, MergedEventInfo *transObj, MsgStream &log) const override
std::vector< unsigned int > m_newEventIDdata
This class provides general information about an event.
const EventID * event_ID() const
the new identification of the event.
std::string base
Definition hcg.cxx:81