ATLAS Offline Software
Loading...
Searching...
No Matches
SCT1_RawDataCnv_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 "MsgUtil.h"
7
8// Persistent class and converter header file
10#include "SCT1_RawDataCnv_p1.h"
11
12// Other stuff
13#include "Identifier/Identifier.h"
14
15
16
17void
18SCT1_RawDataCnv_p1::persToTrans(const InDetRawData_p1* persObj, SCT1_RawData* transObj, MsgStream& log)
19{
20 MSG_VERBOSE(log,"SCT1_RawDataCnv_p1::persToTrans called ");
21 *transObj = SCT1_RawData(Identifier(persObj->m_rdoId),
22 persObj->m_word);
23}
24
25void
26SCT1_RawDataCnv_p1::transToPers(const SCT1_RawData* transObj, InDetRawData_p1* persObj, MsgStream& log)
27{
28 MSG_VERBOSE(log,"SCT1_RawDataCnv_p1::transToPers called ");
29 persObj->m_rdoId = transObj->identify().get_compact();
30 persObj->m_word = transObj->getWord();
31}
#define MSG_VERBOSE(log, x)
Definition MsgUtil.h:17
value_type get_compact() const
Get the compact id.
unsigned int m_word
Identifier32::value_type m_rdoId
virtual Identifier identify() const override final
unsigned int getWord() const
virtual void transToPers(const SCT1_RawData *transObj, InDetRawData_p1 *persObj, MsgStream &log)
virtual void persToTrans(const InDetRawData_p1 *persObj, SCT1_RawData *transObj, MsgStream &log)