ATLAS Offline Software
Database
PersistentDataModelTPCnv
PersistentDataModelTPCnv
DataHeaderCnv_p4.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_P4_H
6
#define PERSISTENTDATAMODELTPCNV_DATAHEADERCNV_P4_H
7
15
#include "
PersistentDataModel/DataHeader.h
"
16
#include "
PersistentDataModelTPCnv/DataHeader_p4.h
"
17
21
class
DataHeaderElementCnv_p4
{
22
public
:
23
DataHeaderElementCnv_p4
();
24
virtual
~DataHeaderElementCnv_p4
();
25
26
void
persToTrans
(
const
DataHeaderElement_p4
* pers,
DataHeaderElement
* trans,
const
std::vector<std::string>& map);
27
void
transToPers
(
const
DataHeaderElement
* trans,
DataHeaderElement_p4
* pers, std::vector<std::string>& map);
28
29
friend
class
DataHeaderCnv_p4
;
30
};
31
35
class
DataHeaderCnv_p4
{
36
public
:
37
DataHeaderCnv_p4
();
38
virtual
~DataHeaderCnv_p4
();
39
40
DataHeader
*
createTransient
(
const
DataHeader_p4
* persObj);
41
void
persToTrans
(
const
DataHeader_p4
* pers,
DataHeader
* trans);
42
DataHeader_p4
*
createPersistent
(
const
DataHeader
* transObj);
43
void
transToPers
(
const
DataHeader
* trans,
DataHeader_p4
* pers);
44
45
void
insertDHRef
(
DataHeader_p4
* pers,
const
std::string&
key
,
const
std::string& token);
46
47
private
:
48
DataHeaderElementCnv_p4
m_elemCnv
;
49
};
50
51
inline
DataHeader
*
DataHeaderCnv_p4::createTransient
(
const
DataHeader_p4
* persObj) {
52
DataHeader
* trans =
new
DataHeader
();
53
persToTrans
(persObj, trans);
54
return
(trans);
55
}
56
inline
DataHeader_p4
*
DataHeaderCnv_p4::createPersistent
(
const
DataHeader
* transObj){
57
DataHeader_p4
* pers =
new
DataHeader_p4
();
58
transToPers
(transObj, pers);
59
return
(pers);
60
}
61
62
#endif
DataHeader_p4
This class provides a persistent representation for the DataHeader class.
Definition:
DataHeader_p4.h:53
DataHeaderCnv_p4::insertDHRef
void insertDHRef(DataHeader_p4 *pers, const std::string &key, const std::string &token)
Definition:
DataHeaderCnv_p4.cxx:119
DataHeaderCnv_p4::~DataHeaderCnv_p4
virtual ~DataHeaderCnv_p4()
Definition:
DataHeaderCnv_p4.cxx:98
DataHeaderCnv_p4::transToPers
void transToPers(const DataHeader *trans, DataHeader_p4 *pers)
Definition:
DataHeaderCnv_p4.cxx:115
DataHeaderCnv_p4::createPersistent
DataHeader_p4 * createPersistent(const DataHeader *transObj)
Definition:
DataHeaderCnv_p4.h:56
DataHeaderCnv_p4::m_elemCnv
DataHeaderElementCnv_p4 m_elemCnv
Definition:
DataHeaderCnv_p4.h:48
DataHeaderElementCnv_p4::~DataHeaderElementCnv_p4
virtual ~DataHeaderElementCnv_p4()
Definition:
DataHeaderCnv_p4.cxx:18
DataHeaderElement
This class provides a persistent form for the TransientAddress.
Definition:
DataHeader.h:36
DataHeaderElementCnv_p4::transToPers
void transToPers(const DataHeaderElement *trans, DataHeaderElement_p4 *pers, std::vector< std::string > &map)
Definition:
DataHeaderCnv_p4.cxx:90
DataHeader
This class provides the layout for summary information stored for data written to POOL.
Definition:
DataHeader.h:124
DataHeaderElementCnv_p4::persToTrans
void persToTrans(const DataHeaderElement_p4 *pers, DataHeaderElement *trans, const std::vector< std::string > &map)
Definition:
DataHeaderCnv_p4.cxx:21
DataHeader.h
This file contains the class definition for the DataHeader and DataHeaderElement classes.
DataHeaderCnv_p4::createTransient
DataHeader * createTransient(const DataHeader_p4 *persObj)
Definition:
DataHeaderCnv_p4.h:51
DataHeader_p4.h
This file contains the class definition for the DataHeader_p4 and DataHeaderElement_p4 classes.
DataHeaderCnv_p4
This class provides the converter to customize the saving of DataHeader_p4.
Definition:
DataHeaderCnv_p4.h:35
DataHeaderElementCnv_p4::DataHeaderElementCnv_p4
DataHeaderElementCnv_p4()
Definition:
DataHeaderCnv_p4.cxx:17
DataHeaderElementCnv_p4
This class provides the converter to customize the saving of DataHeaderElement_p4.
Definition:
DataHeaderCnv_p4.h:21
DataHeaderElement_p4
This class provides a persistent representation for the DataHeaderElement class.
Definition:
DataHeader_p4.h:21
DataHeaderCnv_p4::persToTrans
void persToTrans(const DataHeader_p4 *pers, DataHeader *trans)
Definition:
DataHeaderCnv_p4.cxx:100
DataHeaderCnv_p4::DataHeaderCnv_p4
DataHeaderCnv_p4()
Definition:
DataHeaderCnv_p4.cxx:97
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Thu Nov 7 2024 21:13:09 for ATLAS Offline Software by
1.8.18