ATLAS Offline Software
InnerDetector
InDetEventCnv
InDetEventAthenaPool
src
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
8
#include "
SCT_FlaggedCondDataCnv_p1.h
"
9
10
// Other stuff
11
#include "
Identifier/IdentifierHash.h
"
12
#include <map>
13
#include <string>
14
15
void
16
SCT_FlaggedCondDataCnv_p1::persToTrans
(
const
SCT_FlaggedCondData_p1
* persObj,
SCT_FlaggedCondData
* transObj, MsgStream&
/*log*/
)
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
24
SCT_FlaggedCondDataCnv_p1::transToPers
(
const
SCT_FlaggedCondData
* transObj,
SCT_FlaggedCondData_p1
* persObj, MsgStream&
/*log*/
)
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
Generated on Sun Dec 22 2024 21:17:42 for ATLAS Offline Software by
1.8.18