ATLAS Offline Software
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 
6 #include "TBEvent/TBEventInfo.h"
7 #include "Identifier/Identifier.h"
9 
10 
11 
12 void
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 
28 void
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 
TBEventInfoCnv_p1.h
TBEventInfo::getRunNum
unsigned int getRunNum() const
Definition: TBEventInfo.h:67
TBEventInfo::getEventType
int getEventType() const
Definition: TBEventInfo.h:66
TBEventInfo_p1::m_ev_clock
int m_ev_clock
Definition: TBEventInfo_p1.h:20
TBEventInfo_p1::m_beam_moment
float m_beam_moment
Definition: TBEventInfo_p1.h:23
TBEventInfo::getTableY
float getTableY() const
Definition: TBEventInfo.h:72
TBEventInfo_p1::m_tableY
float m_tableY
Definition: TBEventInfo_p1.h:27
TBEventInfo_p1::m_beam_part
std::string m_beam_part
Definition: TBEventInfo_p1.h:24
TBEventInfo::getCryoAngle
float getCryoAngle() const
Definition: TBEventInfo.h:71
TBEventInfo::getBeamParticle
const std::string & getBeamParticle() const
Definition: TBEventInfo.h:69
TBEventInfo::getEventNum
int getEventNum() const
Definition: TBEventInfo.h:64
TBEventInfo_p1::m_cryoAngle
float m_cryoAngle
Definition: TBEventInfo_p1.h:26
TBEventInfo::getEventClock
int getEventClock() const
Definition: TBEventInfo.h:65
TBEventInfo_p1::m_run_num
unsigned int m_run_num
Definition: TBEventInfo_p1.h:22
TBEventInfo_p1::m_cryoX
float m_cryoX
Definition: TBEventInfo_p1.h:25
TBEventInfo_p1::m_ev_type
int m_ev_type
Definition: TBEventInfo_p1.h:21
TBEventInfo_p1.h
TBEventInfoCnv_p1::persToTrans
virtual void persToTrans(const TBEventInfo_p1 *pers, TBEventInfo *trans, MsgStream &log) const override
Definition: TBEventInfoCnv_p1.cxx:13
TBEventInfo_p1
Definition: TBEventInfo_p1.h:15
TBEventInfo_p1::m_ev_number
int m_ev_number
Definition: TBEventInfo_p1.h:19
TBEventInfo
Definition: TBEventInfo.h:27
TBEventInfo::getBeamMomentum
float getBeamMomentum() const
Definition: TBEventInfo.h:68
TBEventInfo.h
TBEventInfoCnv_p1::transToPers
virtual void transToPers(const TBEventInfo *trans, TBEventInfo_p1 *pers, MsgStream &log) const override
Definition: TBEventInfoCnv_p1.cxx:29
TBEventInfo::getCryoX
float getCryoX() const
Definition: TBEventInfo.h:70