ATLAS Offline Software
Loading...
Searching...
No Matches
EventShapeStoreCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5
9
11
13
14void
15EventShapeStoreCnv_p1::transToPers(const EventShapeStore* transObj,
16 EventShapeStore_p1* persObj,
17 MsgStream &reporter )
18{
19 reporter << MSG::DEBUG << "EventShapeStoreCnv_p1 toPers()" << endmsg;
20
21 for ( EventShapeStore::store_Citer it = transObj->m_store.begin();
22 it != transObj->m_store.end(); ++it )
23 {
24 persObj->m_mtypV.push_back(it->getType());
25 persObj->m_mvalV.push_back(it->getValue());
26 }
27}
28
29void
30EventShapeStoreCnv_p1::persToTrans(const EventShapeStore_p1* persObj,
31 EventShapeStore* transObj,
32 MsgStream &reporter )
33{
34 reporter << MSG::DEBUG << "EventShapeStoreCnv toTrans()" << endmsg;
35
36 // make coverity happy
37 // if ( ! bool(transObj) )
38 // transObj = new EventShapeStore();
39 transObj->m_store.clear();
40
41 if ( persObj->m_mtypV.size() != persObj->m_mvalV.size() )
42 reporter << MSG::WARNING << "EventShapeStore_p1 different sizes !!" << endmsg;
43 for ( unsigned int i = 0; i < persObj->m_mtypV.size(); ++i )
44 transObj->insert(EventShapes::EventShapeType(persObj->m_mtypV.at(i)),
45 persObj->m_mvalV.at(i));
46}
#define endmsg
This file contains the class definition for the DataLinkCnv_p1 class and DataLinkVectorCnv_p1 class.
This file contains the class definition for the ElementLinkCnv_p1 class.
This file contains the class definition for the ElementLinkVectorCnv_p1 class.
std::vector< unsigned int > m_mtypV
std::vector< float > m_mvalV
store_type::const_iterator store_Citer
void insert(EventShapes &es)