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

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

#include <DataHeaderCnv_p4.h>

Collaboration diagram for DataHeaderCnv_p4:

Public Member Functions

 DataHeaderCnv_p4 ()
 
virtual ~DataHeaderCnv_p4 ()
 
DataHeadercreateTransient (const DataHeader_p4 *persObj)
 
void persToTrans (const DataHeader_p4 *pers, DataHeader *trans)
 
DataHeader_p4createPersistent (const DataHeader *transObj)
 
void transToPers (const DataHeader *trans, DataHeader_p4 *pers)
 
void insertDHRef (DataHeader_p4 *pers, const std::string &key, const std::string &token)
 

Private Attributes

DataHeaderElementCnv_p4 m_elemCnv
 

Detailed Description

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

Definition at line 35 of file DataHeaderCnv_p4.h.

Constructor & Destructor Documentation

◆ DataHeaderCnv_p4()

DataHeaderCnv_p4::DataHeaderCnv_p4 ( )

Definition at line 97 of file DataHeaderCnv_p4.cxx.

97 {}

◆ ~DataHeaderCnv_p4()

DataHeaderCnv_p4::~DataHeaderCnv_p4 ( )
virtual

Definition at line 98 of file DataHeaderCnv_p4.cxx.

98 {}

Member Function Documentation

◆ createPersistent()

DataHeader_p4 * DataHeaderCnv_p4::createPersistent ( const DataHeader transObj)
inline

Definition at line 56 of file DataHeaderCnv_p4.h.

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

◆ createTransient()

DataHeader * DataHeaderCnv_p4::createTransient ( const DataHeader_p4 persObj)
inline

Definition at line 51 of file DataHeaderCnv_p4.h.

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

◆ insertDHRef()

void DataHeaderCnv_p4::insertDHRef ( DataHeader_p4 pers,
const std::string &  key,
const std::string &  token 
)

Definition at line 119 of file DataHeaderCnv_p4.cxx.

121  {
122 // Moved to next _p version
123 }

◆ persToTrans()

void DataHeaderCnv_p4::persToTrans ( const DataHeader_p4 pers,
DataHeader trans 
)

Definition at line 100 of file DataHeaderCnv_p4.cxx.

100  {
101  trans->m_inputDataHeader.resize(pers->m_provSize);
103  std::vector<DataHeaderElement_p4>::const_iterator pit = pers->m_dataHeader.begin();
104  for (unsigned int i = 0U; i != pers->m_provSize; ++i, ++it, ++pit) {
105  m_elemCnv.persToTrans(&(*pit), &(*it), pers->m_guidMap);
106  }
107  trans->m_dataHeader.resize(pers->m_dataHeader.size() - pers->m_provSize);
108  it = trans->m_dataHeader.begin();
109  for (std::vector<DataHeaderElement_p4>::const_iterator last = pers->m_dataHeader.end();
110  pit != last; ++it, ++pit) {
111  m_elemCnv.persToTrans(&(*pit), &(*it), pers->m_guidMap);
112  }
113 }

◆ transToPers()

void DataHeaderCnv_p4::transToPers ( const DataHeader trans,
DataHeader_p4 pers 
)

Definition at line 115 of file DataHeaderCnv_p4.cxx.

115  {
116 // Moved to next _p version
117 }

Member Data Documentation

◆ m_elemCnv

DataHeaderElementCnv_p4 DataHeaderCnv_p4::m_elemCnv
private

Definition at line 48 of file DataHeaderCnv_p4.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
DataHeader_p4
This class provides a persistent representation for the DataHeader class.
Definition: DataHeader_p4.h:53
DataHeaderCnv_p4::transToPers
void transToPers(const DataHeader *trans, DataHeader_p4 *pers)
Definition: DataHeaderCnv_p4.cxx:115
skel.it
it
Definition: skel.GENtoEVGEN.py:396
DataHeader_p4::m_guidMap
std::vector< std::string > m_guidMap
Definition: DataHeader_p4.h:70
DataHeader_p4::m_dataHeader
std::vector< DataHeaderElement_p4 > m_dataHeader
Definition: DataHeader_p4.h:68
DataHeaderCnv_p4::m_elemCnv
DataHeaderElementCnv_p4 m_elemCnv
Definition: DataHeaderCnv_p4.h:48
DataHeader_p4::m_provSize
unsigned int m_provSize
Definition: DataHeader_p4.h:69
DataHeader
This class provides the layout for summary information stored for data written to POOL.
Definition: DataHeader.h:124
lumiFormat.i
int i
Definition: lumiFormat.py:85
DataHeaderElementCnv_p4::persToTrans
void persToTrans(const DataHeaderElement_p4 *pers, DataHeaderElement *trans, const std::vector< std::string > &map)
Definition: DataHeaderCnv_p4.cxx:21
DataHeader::m_dataHeader
std::vector< DataHeaderElement > m_dataHeader
vector with DataHeaderElement to "DataObject".
Definition: DataHeader.h:201
DataHeaderCnv_p4::persToTrans
void persToTrans(const DataHeader_p4 *pers, DataHeader *trans)
Definition: DataHeaderCnv_p4.cxx:100
DataHeader::m_inputDataHeader
std::vector< DataHeaderElement > m_inputDataHeader
vector with DataHeaderElement to upstream DataHeader ("Provenance").
Definition: DataHeader.h:203