ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
DataHeaderCnv_p3 Class Reference

This class provides the converter to customize the saving of DataHeader_p3. More...

#include <DataHeaderCnv_p3.h>

Collaboration diagram for DataHeaderCnv_p3:

Public Member Functions

 DataHeaderCnv_p3 ()
 
virtual ~DataHeaderCnv_p3 ()
 
DataHeadercreateTransient (const DataHeader_p3 *persObj)
 
void persToTrans (const DataHeader_p3 *pers, DataHeader *trans)
 
DataHeader_p3createPersistent (const DataHeader *transObj)
 
void transToPers (const DataHeader *trans, DataHeader_p3 *pers)
 
void insertDHRef (DataHeader_p3 *pers, const std::string &key, const std::string &token)
 

Private Attributes

DataHeaderElementCnv_p3 m_elemCnv
 

Detailed Description

This class provides the converter to customize the saving of DataHeader_p3.

Definition at line 35 of file DataHeaderCnv_p3.h.

Constructor & Destructor Documentation

◆ DataHeaderCnv_p3()

DataHeaderCnv_p3::DataHeaderCnv_p3 ( )

Definition at line 93 of file DataHeaderCnv_p3.cxx.

93 {}

◆ ~DataHeaderCnv_p3()

DataHeaderCnv_p3::~DataHeaderCnv_p3 ( )
virtual

Definition at line 94 of file DataHeaderCnv_p3.cxx.

94 {}

Member Function Documentation

◆ createPersistent()

DataHeader_p3 * DataHeaderCnv_p3::createPersistent ( const DataHeader transObj)
inline

Definition at line 56 of file DataHeaderCnv_p3.h.

56  {
57  DataHeader_p3* pers = new DataHeader_p3();
58  transToPers(transObj, pers);
59  return(pers);
60 }

◆ createTransient()

DataHeader * DataHeaderCnv_p3::createTransient ( const DataHeader_p3 persObj)
inline

Definition at line 51 of file DataHeaderCnv_p3.h.

51  {
52  DataHeader* trans = new DataHeader();
53  persToTrans(persObj, trans);
54  return(trans);
55 }

◆ insertDHRef()

void DataHeaderCnv_p3::insertDHRef ( DataHeader_p3 pers,
const std::string &  key,
const std::string &  token 
)

Definition at line 115 of file DataHeaderCnv_p3.cxx.

117  {
118 // Moved to next _p version
119 }

◆ persToTrans()

void DataHeaderCnv_p3::persToTrans ( const DataHeader_p3 pers,
DataHeader trans 
)

Definition at line 96 of file DataHeaderCnv_p3.cxx.

96  {
97  trans->m_dataHeader.resize(pers->m_DataHeader.size());
99  for (std::vector<DataHeaderElement_p3>::const_iterator pit = pers->m_DataHeader.begin(),
100  last = pers->m_DataHeader.end(); pit != last; ++it, ++pit) {
101  m_elemCnv.persToTrans(&(*pit), &(*it), pers->m_GuidMap);
102  }
103  trans->m_inputDataHeader.resize(pers->m_InputDataHeader.size());
104  it = trans->m_inputDataHeader.begin();
105  for (std::vector<DataHeaderElement_p3>::const_iterator pit = pers->m_InputDataHeader.begin(),
106  last = pers->m_InputDataHeader.end(); pit != last; ++it, ++pit) {
107  m_elemCnv.persToTrans(&(*pit), &(*it), pers->m_GuidMap);
108  }
109 }

◆ transToPers()

void DataHeaderCnv_p3::transToPers ( const DataHeader trans,
DataHeader_p3 pers 
)

Definition at line 111 of file DataHeaderCnv_p3.cxx.

111  {
112 // Moved to next _p version
113 }

Member Data Documentation

◆ m_elemCnv

DataHeaderElementCnv_p3 DataHeaderCnv_p3::m_elemCnv
private

Definition at line 48 of file DataHeaderCnv_p3.h.


The documentation for this class was generated from the following files:
DataHeader_p3::m_InputDataHeader
std::vector< DataHeaderElement_p3 > m_InputDataHeader
Definition: DataHeader_p3.h:69
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
DataHeaderElementCnv_p3::persToTrans
void persToTrans(const DataHeaderElement_p3 *pers, DataHeaderElement *trans, const std::vector< std::string > &map)
Definition: DataHeaderCnv_p3.cxx:21
skel.it
it
Definition: skel.GENtoEVGEN.py:396
DataHeader_p3
This class provides a persistent representation for the DataHeader class.
Definition: DataHeader_p3.h:53
DataHeaderCnv_p3::m_elemCnv
DataHeaderElementCnv_p3 m_elemCnv
Definition: DataHeaderCnv_p3.h:48
DataHeader_p3::m_DataHeader
std::vector< DataHeaderElement_p3 > m_DataHeader
Definition: DataHeader_p3.h:68
DataHeader
This class provides the layout for summary information stored for data written to POOL.
Definition: DataHeader.h:124
DataHeaderCnv_p3::persToTrans
void persToTrans(const DataHeader_p3 *pers, DataHeader *trans)
Definition: DataHeaderCnv_p3.cxx:96
DataHeader::m_dataHeader
std::vector< DataHeaderElement > m_dataHeader
vector with DataHeaderElement to "DataObject".
Definition: DataHeader.h:201
DataHeader_p3::m_GuidMap
std::vector< std::string > m_GuidMap
Definition: DataHeader_p3.h:70
DataHeaderCnv_p3::transToPers
void transToPers(const DataHeader *trans, DataHeader_p3 *pers)
Definition: DataHeaderCnv_p3.cxx:111
DataHeader::m_inputDataHeader
std::vector< DataHeaderElement > m_inputDataHeader
vector with DataHeaderElement to upstream DataHeader ("Provenance").
Definition: DataHeader.h:203