ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
9void
10LArTTL1Cnv_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
19void
20LArTTL1Cnv_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}
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.
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.
std::vector< float > m_samples
Definition LArTTL1_p1.h:29
Identifier m_offlineId
Definition LArTTL1_p1.h:28
Liquid Argon TT L1 sum class.
Definition LArTTL1.h:29
const std::vector< float > & samples() const
return a reference to a stl vector containing the sample values
Definition LArTTL1.cxx:26
const Identifier & ttOfflineID() const
return TT offline Identifier
Definition LArTTL1.cxx:18