ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TestBeam
TBEventAthenaPool
src
TBEventInfoCnv.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
// -------------------------------------------------------------------
6
// Modified pool converter which complies with the standards of the
7
// transient/persistent scheme.
8
// See: https://twiki.cern.ch/twiki/bin/view/Atlas/TransientPersistentSeparation#TP_converters_for_component_type
9
// Author: Iftach Sadeh (iftach.sadeh@NOSPAMTODAYcern.ch) , February 2010
10
// -------------------------------------------------------------------
11
#ifndef TBEVENTATHENAPOOL_TBEVENTINFOCNV_P1_H
12
#define TBEVENTATHENAPOOL_TBEVENTINFOCNV_P1_H
13
14
#include "
AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h
"
15
#include "
TBTPCnv/TBEventInfo_p1.h
"
16
#include "
TBEvent/TBEventInfo.h
"
17
#include "
TBTPCnv/TBEventInfoCnv_p1.h
"
18
19
// the latest persistent representation type of TBEventInfo:
20
typedef
TBEventInfo_p1
TBEventInfo_PERS
;
21
typedef
T_AthenaPoolCustomCnv<TBEventInfo, TBEventInfo_PERS >
TBEventInfoCnvBase
;
22
23
class
TBEventInfoCnv
:
public
TBEventInfoCnvBase
{
24
friend
class
CnvFactory
<
TBEventInfoCnv
>;
25
protected
:
26
public
:
27
TBEventInfoCnv
(ISvcLocator* svcloc) :
TBEventInfoCnvBase
(svcloc) {}
28
protected
:
29
virtual
TBEventInfo_PERS
*
createPersistent
(
TBEventInfo
* transCont);
30
virtual
TBEventInfo
*
createTransient
(
const
Token
* token);
31
32
TBEventInfoCnv_p1
m_TPConverter
;
33
};
34
#endif
35
TBEventInfo_PERS
TBEventInfo_p1 TBEventInfo_PERS
Definition
TBEventInfoCnv.h:20
TBEventInfoCnvBase
T_AthenaPoolCustomCnv< TBEventInfo, TBEventInfo_PERS > TBEventInfoCnvBase
Definition
TBEventInfoCnv.h:21
TBEventInfoCnv_p1.h
TBEventInfo.h
TBEventInfo_p1.h
T_AthenaPoolCustomCnv.h
his file contains the class definition for the templated T_AthenaPoolCustomCnv class.
CnvFactory
Abstract factory to create the converter.
Definition
ToyConverter.h:16
TBEventInfoCnv_p1
Definition
TBEventInfoCnv_p1.h:22
TBEventInfoCnv::TBEventInfoCnv
TBEventInfoCnv(ISvcLocator *svcloc)
Definition
TBEventInfoCnv.h:27
TBEventInfoCnv::createPersistent
virtual TBEventInfo_PERS * createPersistent(TBEventInfo *transCont)
Definition
TBEventInfoCnv.cxx:7
TBEventInfoCnv::m_TPConverter
TBEventInfoCnv_p1 m_TPConverter
Definition
TBEventInfoCnv.h:32
TBEventInfoCnv::createTransient
virtual TBEventInfo * createTransient(const Token *token)
Definition
TBEventInfoCnv.cxx:14
TBEventInfo_p1
Definition
TBEventInfo_p1.h:15
TBEventInfo
Definition
TBEventInfo.h:27
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition
T_AthenaPoolCustomCnv.h:129
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
Generated on
for ATLAS Offline Software by
1.17.0