ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TestBeam
TBTPCnv
src
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
5
#include "
TBTPCnv/TBEventInfoCnv_p1.h
"
6
#include "
TBEvent/TBEventInfo.h
"
7
#include "Identifier/Identifier.h"
8
#include "
TBTPCnv/TBEventInfo_p1.h
"
9
10
11
12
void
13
TBEventInfoCnv_p1::persToTrans
(
const
TBEventInfo_p1
* pers,
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
29
TBEventInfoCnv_p1::transToPers
(
const
TBEventInfo
*
trans
,
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.h
TBEventInfo_p1.h
TBEventInfoCnv_p1::transToPers
virtual void transToPers(const TBEventInfo *trans, TBEventInfo_p1 *pers, MsgStream &log) const override
Definition
TBEventInfoCnv_p1.cxx:29
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_tableY
float m_tableY
Definition
TBEventInfo_p1.h:27
TBEventInfo_p1::m_run_num
unsigned int m_run_num
Definition
TBEventInfo_p1.h:22
TBEventInfo_p1::m_beam_part
std::string m_beam_part
Definition
TBEventInfo_p1.h:24
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_p1::m_cryoX
float m_cryoX
Definition
TBEventInfo_p1.h:25
TBEventInfo_p1::m_ev_number
int m_ev_number
Definition
TBEventInfo_p1.h:19
TBEventInfo_p1::m_ev_type
int m_ev_type
Definition
TBEventInfo_p1.h:21
TBEventInfo_p1::m_cryoAngle
float m_cryoAngle
Definition
TBEventInfo_p1.h:26
TBEventInfo
Definition
TBEventInfo.h:27
trans
TH1F * trans(TH1F *h, bool t=false)
Definition
comparitor.cxx:199
Generated on
for ATLAS Offline Software by
1.17.0