ATLAS Offline Software
Loading...
Searching...
No Matches
TBEventInfoCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
7#include "Identifier/Identifier.h"
9
10
11
12void
14 TBEventInfo* trans, MsgStream &/*log*/) const
15{
16 *trans = TBEventInfo (pers->m_ev_number,
17 pers->m_ev_clock,
18 pers->m_ev_type,
19 pers->m_run_num,
20 pers->m_beam_moment,
21 pers->m_beam_part,
22 pers->m_cryoX,
23 pers->m_cryoAngle,
24 pers->m_tableY);
25}
26
27
28void
30 TBEventInfo_p1* pers, MsgStream &/*log*/) const
31{
32 pers->m_ev_number = trans->getEventNum();
33 pers->m_ev_clock = trans->getEventClock();
34 pers->m_ev_type = trans->getEventType();
35 pers->m_run_num = trans->getRunNum();
36 pers->m_beam_moment = trans->getBeamMomentum();
37 pers->m_beam_part = trans->getBeamParticle();
38 pers->m_cryoX = trans->getCryoX();
39 pers->m_cryoAngle = trans->getCryoAngle();
40 pers->m_tableY = trans->getTableY();
41
42}
43
virtual void transToPers(const TBEventInfo *trans, TBEventInfo_p1 *pers, MsgStream &log) const override
virtual void persToTrans(const TBEventInfo_p1 *pers, TBEventInfo *trans, MsgStream &log) const override
unsigned int m_run_num
std::string m_beam_part
float getBeamMomentum() const
Definition TBEventInfo.h:73
float getTableY() const
Definition TBEventInfo.h:77
float getCryoAngle() const
Definition TBEventInfo.h:76
int getEventNum() const
Definition TBEventInfo.h:69
const std::string & getBeamParticle() const
Definition TBEventInfo.h:74
int getEventClock() const
Definition TBEventInfo.h:70
float getCryoX() const
Definition TBEventInfo.h:75
int getEventType() const
Definition TBEventInfo.h:71
unsigned int getRunNum() const
Definition TBEventInfo.h:72