ATLAS Offline Software
Pixel1RawDataCnv_p2.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Persistent class and converter header file
8 #include "Pixel1RawDataCnv_p2.h"
9 
10 // Other stuff
11 #include "Identifier/Identifier.h"
12 
13 #include "MsgUtil.h"
14 
15 void
16 Pixel1RawDataCnv_p2::persToTrans(const InDetRawData_p2* persObj, Pixel1RawData* transObj, MsgStream &log)
17 {
18  MSG_VERBOSE(log,"Pixel1RawDataCnv_p2::persToTrans called ");
19 
20  *transObj = Pixel1RawData (Identifier(persObj->m_rdoId),
21  persObj->m_word);
22 }
23 
24 void
25 Pixel1RawDataCnv_p2::transToPers(const Pixel1RawData* transObj, InDetRawData_p2* persObj, MsgStream &log)
26 {
27  MSG_VERBOSE(log,"Pixel1RawDataCnv_p2::transToPers called ");
28  persObj->m_rdoId = transObj->identify().get_compact();
29  persObj->m_word = transObj->getWord();
30 }
InDetRawData_p2::m_rdoId
Identifier::value_type m_rdoId
Definition: InDetRawData_p2.h:18
Pixel1RawDataCnv_p2::transToPers
virtual void transToPers(const Pixel1RawData *transObj, InDetRawData_p2 *persObj, MsgStream &log)
Definition: Pixel1RawDataCnv_p2.cxx:25
Identifier::get_compact
value_type get_compact() const
Get the compact id.
InDetRawData_p2::m_word
unsigned int m_word
Definition: InDetRawData_p2.h:19
InDetRawData_p2.h
Pixel1RawData.h
Pixel1RawData
Definition: Pixel1RawData.h:23
InDetRawData_p2
Definition: InDetRawData_p2.h:10
MSG_VERBOSE
#define MSG_VERBOSE(log, x)
Definition: MsgUtil.h:17
InDetRawData::getWord
unsigned int getWord() const
Definition: InDetRawData.h:47
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
InDetRawData::identify
virtual Identifier identify() const override final
Definition: InDetRawData.h:41
Pixel1RawDataCnv_p2::persToTrans
virtual void persToTrans(const InDetRawData_p2 *persObj, Pixel1RawData *transObj, MsgStream &log)
Definition: Pixel1RawDataCnv_p2.cxx:16
Pixel1RawDataCnv_p2.h
Identifier
Definition: IdentifierFieldParser.cxx:14
MsgUtil.h