ATLAS Offline Software
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 
14 void
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 
29 void
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 }
EventShapeStore::store_Citer
store_type::const_iterator store_Citer
Definition: EventShapeStore.h:71
ElementLinkCnv_p1.h
This file contains the class definition for the ElementLinkCnv_p1 class.
EventShapeStore_p1
Definition: EventShapeStore_p1.h:11
DataLinkCnv_p1.h
This file contains the class definition for the DataLinkCnv_p1 class and DataLinkVectorCnv_p1 class.
EventShapeStoreConverterBase< EventShapeStore_p1 >::transToPers
void transToPers(const EventShapeStore *transObj, EventShapeStore_p1 *persObj, MsgStream &reporter)
Method creating the persistent representation EventShapeStore_p1 from its transient representation Ev...
Definition: EventShapeStoreCnv_p1.cxx:15
skel.it
it
Definition: skel.GENtoEVGEN.py:423
ElementLinkVectorCnv_p1.h
This file contains the class definition for the ElementLinkVectorCnv_p1 class. NOTE: it should be inc...
EventShapeStore_p1::m_mvalV
std::vector< float > m_mvalV
Definition: EventShapeStore_p1.h:23
EventShapeStore::m_store
store_type m_store
Definition: EventShapeStore.h:73
EventShapeStoreConverterBase< EventShapeStore_p1 >::persToTrans
void persToTrans(const EventShapeStore_p1 *persObj, EventShapeStore *transObj, MsgStream &reporter)
Definition: EventShapeStoreCnv_p1.cxx:30
EventShapeStoreCnv_p1.h
lumiFormat.i
int i
Definition: lumiFormat.py:92
EventShapeStore_p1::m_mtypV
std::vector< unsigned int > m_mtypV
Definition: EventShapeStore_p1.h:18
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EventShapes::EventShapeType
EventShapeType
Definition: EventShapes.h:18
EventShapeStore
Definition: EventShapeStore.h:15
EventShapeStore.h
DEBUG
#define DEBUG
Definition: page_access.h:11
EventShapeStore::insert
void insert(EventShapes &es)
Definition: EventShapeStore.h:32