ATLAS Offline Software
LArTTL1Cnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "LArRawEvent/LArTTL1.h"
8 
9 void
10 LArTTL1Cnv_p1::persToTrans(const LArTTL1_p1* persObj, LArTTL1* transObj, MsgStream &/*log*/) const
11 {
12  HWIdentifier ttChannel; // The online identifier is purely transient
13  *transObj = LArTTL1 (ttChannel,
14  persObj->m_offlineId,
15  persObj->m_samples);
16 }
17 
18 
19 void
20 LArTTL1Cnv_p1::transToPers(const LArTTL1* transObj, LArTTL1_p1* persObj, MsgStream &/*log*/) const
21 {
22  persObj->m_offlineId = transObj->ttOfflineID();
23  persObj->m_samples = transObj->samples();
24 }
LArTTL1_p1::m_offlineId
Identifier m_offlineId
Definition: LArTTL1_p1.h:28
LArTTL1_p1
Definition: LArTTL1_p1.h:15
LArTTL1::samples
const std::vector< float > & samples() const
return a reference to a stl vector containing the sample values
Definition: LArTTL1.cxx:26
LArTTL1Cnv_p1.h
HWIdentifier
Definition: HWIdentifier.h:13
LArTTL1_p1::m_samples
std::vector< float > m_samples
Definition: LArTTL1_p1.h:29
LArTTL1Cnv_p1::transToPers
virtual void transToPers(const LArTTL1 *transObj, LArTTL1_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation LArTTL1_p1 from its transient representation LArTTL1.
Definition: LArTTL1Cnv_p1.cxx:20
HWIdentifier.h
LArTTL1.h
LArTTL1::ttOfflineID
const Identifier & ttOfflineID() const
return TT offline Identifier
Definition: LArTTL1.cxx:18
LArTTL1Cnv_p1::persToTrans
virtual void persToTrans(const LArTTL1_p1 *persObj, LArTTL1 *transObj, MsgStream &log) const override
Method creating the transient representation LArTTL1 from its persistent representation LArTTL1_p1.
Definition: LArTTL1Cnv_p1.cxx:10
LArTTL1
Liquid Argon TT L1 sum class.
Definition: LArTTL1.h:29