ATLAS Offline Software
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 
17 void
18 SCT3_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 
27 void
28 SCT3_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 }
SCT3_RawData_p2::m_rdoId
Identifier32::value_type m_rdoId
Definition: SCT3_RawData_p2.h:21
SCT3_RawData_p2
N.Barlow, Apr 2008 replace float[20] with vector<int> to represent strips with errors.
Definition: SCT3_RawData_p2.h:15
SCT3_RawData_p2::m_word
unsigned int m_word
Definition: SCT3_RawData_p2.h:22
Identifier::get_compact
value_type get_compact() const
Get the compact id.
SCT3_RawData.h
SCT3_RawData
Definition: SCT3_RawData.h:24
SCT3_RawDataCnv_p2::transToPers
virtual void transToPers(const SCT3_RawData *transObj, SCT3_RawData_p2 *persObj, MsgStream &log)
Definition: SCT3_RawDataCnv_p2.cxx:28
SCT3_RawDataCnv_p2::persToTrans
virtual void persToTrans(const SCT3_RawData_p2 *persObj, SCT3_RawData *transObj, MsgStream &log)
Definition: SCT3_RawDataCnv_p2.cxx:18
InDetRawData::getWord
unsigned int getWord() const
Definition: InDetRawData.h:47
SCT3_RawDataCnv_p2.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MSG_DEBUG
#define MSG_DEBUG(log, x)
Definition: MsgUtil.h:15
SCT3_RawData_p2.h
InDetRawData::identify
virtual Identifier identify() const override final
Definition: InDetRawData.h:41
Identifier
Definition: IdentifierFieldParser.cxx:14
MsgUtil.h