ATLAS Offline Software
Database
PersistentDataModelTPCnv
PersistentDataModelTPCnv
DataHeaderCnv_p3.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PERSISTENTDATAMODELTPCNV_DATAHEADERCNV_P3_H
6
#define PERSISTENTDATAMODELTPCNV_DATAHEADERCNV_P3_H
7
15
#include "
PersistentDataModel/DataHeader.h
"
16
#include "
PersistentDataModelTPCnv/DataHeader_p3.h
"
17
21
class
DataHeaderElementCnv_p3
{
22
public
:
23
DataHeaderElementCnv_p3
();
24
virtual
~DataHeaderElementCnv_p3
();
25
26
void
persToTrans
(
const
DataHeaderElement_p3
* pers,
DataHeaderElement
* trans,
const
std::vector<std::string>& map);
27
void
transToPers
(
const
DataHeaderElement
* trans,
DataHeaderElement_p3
* pers, std::vector<std::string>& map);
28
29
friend
class
DataHeaderCnv_p3
;
30
};
31
35
class
DataHeaderCnv_p3
{
36
public
:
37
DataHeaderCnv_p3
();
38
virtual
~DataHeaderCnv_p3
();
39
40
DataHeader
*
createTransient
(
const
DataHeader_p3
* persObj);
41
void
persToTrans
(
const
DataHeader_p3
* pers,
DataHeader
* trans);
42
DataHeader_p3
*
createPersistent
(
const
DataHeader
* transObj);
43
void
transToPers
(
const
DataHeader
* trans,
DataHeader_p3
* pers);
44
45
void
insertDHRef
(
DataHeader_p3
* pers,
const
std::string&
key
,
const
std::string& token);
46
47
private
:
48
DataHeaderElementCnv_p3
m_elemCnv
;
49
};
50
51
inline
DataHeader
*
DataHeaderCnv_p3::createTransient
(
const
DataHeader_p3
* persObj) {
52
DataHeader
* trans =
new
DataHeader
();
53
persToTrans
(persObj, trans);
54
return
(trans);
55
}
56
inline
DataHeader_p3
*
DataHeaderCnv_p3::createPersistent
(
const
DataHeader
* transObj){
57
DataHeader_p3
* pers =
new
DataHeader_p3
();
58
transToPers
(transObj, pers);
59
return
(pers);
60
}
61
62
#endif
DataHeaderElementCnv_p3::persToTrans
void persToTrans(const DataHeaderElement_p3 *pers, DataHeaderElement *trans, const std::vector< std::string > &map)
Definition:
DataHeaderCnv_p3.cxx:21
DataHeaderElementCnv_p3
This class provides the converter to customize the saving of DataHeaderElement_p3.
Definition:
DataHeaderCnv_p3.h:21
DataHeaderElement_p3
This class provides a persistent representation for the DataHeaderElement class.
Definition:
DataHeader_p3.h:21
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
DataHeaderCnv_p3::~DataHeaderCnv_p3
virtual ~DataHeaderCnv_p3()
Definition:
DataHeaderCnv_p3.cxx:94
DataHeaderCnv_p3::createPersistent
DataHeader_p3 * createPersistent(const DataHeader *transObj)
Definition:
DataHeaderCnv_p3.h:56
DataHeaderElement
This class provides a persistent form for the TransientAddress.
Definition:
DataHeader.h:36
DataHeader
This class provides the layout for summary information stored for data written to POOL.
Definition:
DataHeader.h:124
DataHeaderElementCnv_p3::transToPers
void transToPers(const DataHeaderElement *trans, DataHeaderElement_p3 *pers, std::vector< std::string > &map)
Definition:
DataHeaderCnv_p3.cxx:86
DataHeaderCnv_p3::insertDHRef
void insertDHRef(DataHeader_p3 *pers, const std::string &key, const std::string &token)
Definition:
DataHeaderCnv_p3.cxx:115
DataHeader_p3.h
This file contains the class definition for the DataHeader_p3 and DataHeaderElement_p3 classes.
DataHeaderCnv_p3::persToTrans
void persToTrans(const DataHeader_p3 *pers, DataHeader *trans)
Definition:
DataHeaderCnv_p3.cxx:96
DataHeader.h
This file contains the class definition for the DataHeader and DataHeaderElement classes.
DataHeaderElementCnv_p3::DataHeaderElementCnv_p3
DataHeaderElementCnv_p3()
Definition:
DataHeaderCnv_p3.cxx:17
DataHeaderCnv_p3::createTransient
DataHeader * createTransient(const DataHeader_p3 *persObj)
Definition:
DataHeaderCnv_p3.h:51
DataHeaderElementCnv_p3::~DataHeaderElementCnv_p3
virtual ~DataHeaderElementCnv_p3()
Definition:
DataHeaderCnv_p3.cxx:18
DataHeaderCnv_p3
This class provides the converter to customize the saving of DataHeader_p3.
Definition:
DataHeaderCnv_p3.h:35
DataHeaderCnv_p3::DataHeaderCnv_p3
DataHeaderCnv_p3()
Definition:
DataHeaderCnv_p3.cxx:93
DataHeaderCnv_p3::transToPers
void transToPers(const DataHeader *trans, DataHeader_p3 *pers)
Definition:
DataHeaderCnv_p3.cxx:111
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Fri Jan 10 2025 21:08:56 for ATLAS Offline Software by
1.8.18