ATLAS Offline Software
SCT_FlaggedCondDataCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "MsgUtil.h"
6 
7 // Converter header file
9 
10 // Other stuff
12 #include <map>
13 #include <string>
14 
15 void
17 {
18  for (const auto& it : persObj->m_data) {
19  transObj->insert(std::make_pair(IdentifierHash(it.first), it.second));
20  }
21 }
22 
23 void
25 {
26  for (const auto& it : *transObj) {
27  persObj->m_data.insert(std::make_pair(it.first.value(), it.second));
28  }
29 }
SCT_FlaggedCondData_p1::m_data
std::map< IdentifierHash::value_type, std::string > m_data
Definition: SCT_FlaggedCondData_p1.h:19
skel.it
it
Definition: skel.GENtoEVGEN.py:396
SCT_FlaggedCondDataCnv_p1.h
SCT_FlaggedCondData_p1
Definition: SCT_FlaggedCondData_p1.h:13
IdentifierHash.h
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
SCT_FlaggedCondData
std::map< IdentifierHash, std::string > SCT_FlaggedCondData
Typedef for data object used in SCT_Clusterization and SCT_FlaggedConditionTool.
Definition: SCT_FlaggedCondData.h:26
SCT_FlaggedCondDataCnv_p1::persToTrans
virtual void persToTrans(const SCT_FlaggedCondData_p1 *persObj, SCT_FlaggedCondData *transObj, MsgStream &log)
Definition: SCT_FlaggedCondDataCnv_p1.cxx:16
SCT_FlaggedCondDataCnv_p1::transToPers
virtual void transToPers(const SCT_FlaggedCondData *transObj, SCT_FlaggedCondData_p1 *persObj, MsgStream &log)
Definition: SCT_FlaggedCondDataCnv_p1.cxx:24
MsgUtil.h