ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
GeneratorObjectsAthenaPool
src
McEventCollectionCnv.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// McEventCollectionCnv.h
8
// Header file for class McEventCollectionCnv
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef GENERATOROBJECTSATHENAPOOL_MCEVENTCOLLECTIONCNV_H
12
#define GENERATOROBJECTSATHENAPOOL_MCEVENTCOLLECTIONCNV_H
13
14
#include "
GeneratorObjects/McEventCollection.h
"
15
16
// AthenaPoolCnvSvc includes
17
#include "
AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h
"
18
19
// GeneratorObjectsTPCnv includes
20
#include "
GeneratorObjectsTPCnv/McEventCollection_p6.h
"
21
22
// Forward declaration
23
24
// the latest persistent representation type of DataCollection:
25
typedef
McEventCollection_p6
McEventCollection_PERS
;
26
27
class
McEventCollectionCnv
:
public
T_AthenaPoolCustomCnv
<
28
McEventCollection,
29
McEventCollection_PERS
30
>
31
32
{
33
34
// make the factory for this converter our friend
35
friend
class
CnvFactory
<
McEventCollectionCnv
>;
36
39
public
:
40
McEventCollectionCnv
(ISvcLocator* svcloc);
41
protected
:
42
45
virtual
McEventCollection_PERS
*
46
createPersistent
(
McEventCollection
* transCont );
47
50
virtual
McEventCollection
*
createTransient
(
const
Token
* token);
51
52
};
53
57
58
inline
McEventCollectionCnv::McEventCollectionCnv
( ISvcLocator* svcLocator ) :
59
T_AthenaPoolCustomCnv
<
McEventCollection
,
McEventCollection_PERS
>(svcLocator)
60
{}
61
62
#endif
//> GENERATOROBJECTSATHENAPOOL_MCEVENTCOLLECTIONCNV_H
63
McEventCollection_PERS
McEventCollection_p6 McEventCollection_PERS
Definition
McEventCollectionCnv.h:25
McEventCollection.h
McEventCollection_p6.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
McEventCollectionCnv::createPersistent
virtual McEventCollection_PERS * createPersistent(McEventCollection *transCont)
Build the persistent representation from the transient one.
Definition
McEventCollectionCnv.cxx:28
McEventCollectionCnv::McEventCollectionCnv
McEventCollectionCnv(ISvcLocator *svcloc)
Create the converter from the service locator.
Definition
McEventCollectionCnv.h:58
McEventCollectionCnv::createTransient
virtual McEventCollection * createTransient(const Token *token)
Build the transient representation from a persistent one.
Definition
McEventCollectionCnv.cxx:39
McEventCollection_p6
Definition
McEventCollection_p6.h:27
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
Definition
McEventCollection.h:31
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