ATLAS Offline Software
Loading...
Searching...
No Matches
TBTDCCnv_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/TBTDC.h"
7#include "Identifier/Identifier.h"
8#include "TBTPCnv/TBTDC_p1.h"
9
10
11
12void
14 TBTDC* trans, MsgStream &/*log*/) const
15{
16 *trans = TBTDC (pers->m_tdc,
17 pers->m_tdcmin,
18 pers->m_scale,
19 pers->m_phase);
20}
21
22
23void
25 TBTDC_p1* pers, MsgStream &/*log*/) const
26{
27 pers->m_tdc = trans->tdc();
28 pers->m_tdcmin = trans->tdcmin();
29 pers->m_scale = trans->scale();
30 pers->m_phase = trans->phase();
31}
32
virtual void persToTrans(const TBTDC_p1 *pers, TBTDC *trans, MsgStream &log) const override
virtual void transToPers(const TBTDC *trans, TBTDC_p1 *pers, MsgStream &log) const override
int m_tdcmin
Definition TBTDC_p1.h:20
float m_scale
Definition TBTDC_p1.h:21
int m_phase
Definition TBTDC_p1.h:22
int m_tdc
Definition TBTDC_p1.h:19
Definition TBTDC.h:17
int phase() const
Definition TBTDC.h:25
float scale() const
Definition TBTDC.h:34
int tdcmin() const
Definition TBTDC.h:31
int tdc() const
Definition TBTDC.h:28