ATLAS Offline Software
Loading...
Searching...
No Matches
SCT3_RawDataCnv_p2.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 "SCT3_RawDataCnv_p2.h"
11
12// Other stuff
13#include "Identifier/Identifier.h"
14#include <vector>
15
16
17void
18SCT3_RawDataCnv_p2::persToTrans(const SCT3_RawData_p2* persObj, SCT3_RawData* transObj, MsgStream& log)
19{
20 MSG_DEBUG(log,"SCT3_RawDataCnv_p2::persToTrans called ");
21
22 *transObj = SCT3_RawData(Identifier(persObj->m_rdoId),
23 persObj->m_word,
24 std::vector<int>());
25}
26
27void
28SCT3_RawDataCnv_p2::transToPers(const SCT3_RawData* transObj, SCT3_RawData_p2* persObj, MsgStream& log)
29{
30 MSG_DEBUG(log,"SCT3_RawDataCnv_p2::transToPers called ");
31
32 persObj->m_rdoId = transObj->identify().get_compact();
33 persObj->m_word = transObj->getWord();
34}
#define MSG_DEBUG(log, x)
Definition MsgUtil.h:15
value_type get_compact() const
Get the compact id.
virtual Identifier identify() const override final
unsigned int getWord() const
virtual void persToTrans(const SCT3_RawData_p2 *persObj, SCT3_RawData *transObj, MsgStream &log)
virtual void transToPers(const SCT3_RawData *transObj, SCT3_RawData_p2 *persObj, MsgStream &log)
N.Barlow, Apr 2008 replace float[20] with vector<int> to represent strips with errors.
unsigned int m_word
Identifier32::value_type m_rdoId