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