ATLAS Offline Software
Loading...
Searching...
No Matches
TileTTL1Cnv_p1.cxx
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5*/
6
7// TileTTL1Cnv_p1.cxx
8// Implementation file for class TileTTL1Cnv_p1
9// Author: Alexander Solodkov <Sanya.Solodkov@cern.ch>
10// Date: June 2009
12
13#include "TileEvent/TileTTL1.h"
15
16
17void
18TileTTL1Cnv_p1::persToTrans(const TileTTL1_p1* persObj, TileTTL1* transObj, MsgStream &/*log*/) const
19{
20 *transObj = TileTTL1 (Identifier(Identifier32(persObj->m_channelID)),
21 persObj->m_TTL1digits);
22}
23
24
25void
26TileTTL1Cnv_p1::transToPers(const TileTTL1* transObj, TileTTL1_p1* persObj, MsgStream &/*log*/) const
27{
28 persObj->m_channelID = transObj->identify().get_identifier32().get_compact();
29 persObj->m_TTL1digits = transObj->fsamples();
30}
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
virtual void transToPers(const TileTTL1 *transObj, TileTTL1_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation TileTTL1_p1 from its transient representation TileTTL1.
virtual void persToTrans(const TileTTL1_p1 *persObj, TileTTL1 *transObj, MsgStream &log) const override
Method creating the transient representation TileTTL1 from its persistent representation TileTTL1_p1.
std::vector< float > m_TTL1digits
Definition TileTTL1_p1.h:34
unsigned int m_channelID
Definition TileTTL1_p1.h:33
const std::vector< float > & fsamples() const
Definition TileTTL1.cxx:77
Identifier identify(void) const
Definition TileTTL1.h:46