ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
GeneratorObjectsTPCnv
GeneratorObjectsTPCnv
McEventCollectionCnv_p2.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// McEventCollectionCnv_p2.h
8
// Header file for class McEventCollectionCnv_p2
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P2_H
12
#define GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P2_H
13
14
// STL includes
15
#include <unordered_map>
16
#include <sstream>
17
18
// HepMC / CLHEP includes
19
#include "
AtlasHepMC/GenEvent.h
"
20
#include "
AtlasHepMC/GenVertex.h
"
21
#include "
AtlasHepMC/GenParticle.h
"
22
#include "
GeneratorObjects/McEventCollection.h
"
23
24
// AthenaPoolCnvSvc includes
25
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
26
27
// GeneratorObjectsTPCnv includes
28
#include "
GeneratorObjectsTPCnv/McEventCollection_p2.h
"
29
30
// Forward declaration
31
class
MsgStream;
32
namespace
HepMC
{
struct
DataPool
; }
33
34
class
McEventCollectionCnv_p2
:
public
T_AthenaPoolTPCnvBase
<
35
McEventCollection,
36
McEventCollection_p2
37
>
38
{
39
40
typedef
T_AthenaPoolTPCnvBase
<
McEventCollection
,
41
McEventCollection_p2
>
Base_t
;
42
44
// Public methods:
46
public
:
47
50
McEventCollectionCnv_p2
();
51
54
McEventCollectionCnv_p2
(
const
McEventCollectionCnv_p2
& rhs );
55
58
McEventCollectionCnv_p2
&
operator=
(
const
McEventCollectionCnv_p2
& rhs );
59
62
virtual
~McEventCollectionCnv_p2
();
63
67
virtual
void
persToTrans
(
const
McEventCollection_p2
* persObj,
68
McEventCollection
* transObj,
69
MsgStream &log ) ;
70
74
virtual
void
transToPers
(
const
McEventCollection
* transObj,
75
McEventCollection_p2
* persObj,
76
MsgStream &log ) ;
77
79
// Protected method:
81
protected
:
82
83
typedef
std::unordered_map<HepMC::GenParticlePtr,int>
ParticlesMap_t
;
84
94
static
HepMC::GenVertexPtr
95
createGenVertex
(
const
McEventCollection_p2
& persEvts,
96
const
GenVertex_p2
& vtx,
97
ParticlesMap_t
& bcToPart,
98
HepMC::DataPool
& datapools,
HepMC::GenEvent
* parent=
nullptr
) ;
99
105
static
HepMC::GenParticlePtr
106
createGenParticle
(
const
GenParticle_p2
& p,
107
ParticlesMap_t
& partToEndVtx,
108
HepMC::DataPool
& datapools,
const
HepMC::GenVertexPtr
& parent=
nullptr
) ;
109
110
};
111
#endif
//> GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P2_H
GenEvent.h
GenParticle.h
GenVertex.h
McEventCollection.h
McEventCollection_p2.h
T_AthenaPoolTPConverter.h
T_AthenaPoolTPCnvBase
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Definition
T_AthenaPoolTPConverter.h:41
GenParticle_p2
Definition
GenParticle_p2.h:22
GenVertex_p2
Definition
GenVertex_p2.h:23
McEventCollectionCnv_p2::createGenVertex
static HepMC::GenVertexPtr createGenVertex(const McEventCollection_p2 &persEvts, const GenVertex_p2 &vtx, ParticlesMap_t &bcToPart, HepMC::DataPool &datapools, HepMC::GenEvent *parent=nullptr)
Create a transient GenVertex from a persistent one (version 1) It returns the new GenVertex.
Definition
McEventCollectionCnv_p2.cxx:140
McEventCollectionCnv_p2::McEventCollectionCnv_p2
McEventCollectionCnv_p2(const McEventCollectionCnv_p2 &rhs)
Copy constructor.
McEventCollectionCnv_p2::operator=
McEventCollectionCnv_p2 & operator=(const McEventCollectionCnv_p2 &rhs)
Assignement operator.
Definition
McEventCollectionCnv_p2.cxx:33
McEventCollectionCnv_p2::persToTrans
virtual void persToTrans(const McEventCollection_p2 *persObj, McEventCollection *transObj, MsgStream &log)
Method creating the transient representation of McEventCollection from its persistent representation ...
Definition
McEventCollectionCnv_p2.cxx:49
McEventCollectionCnv_p2::McEventCollectionCnv_p2
McEventCollectionCnv_p2()
Default constructor:
Definition
McEventCollectionCnv_p2.cxx:24
McEventCollectionCnv_p2::ParticlesMap_t
std::unordered_map< HepMC::GenParticlePtr, int > ParticlesMap_t
Definition
McEventCollectionCnv_p2.h:83
McEventCollectionCnv_p2::transToPers
virtual void transToPers(const McEventCollection *transObj, McEventCollection_p2 *persObj, MsgStream &log)
Method creating the persistent representation McEventCollection_p2 from its transient representation ...
Definition
McEventCollectionCnv_p2.cxx:122
McEventCollectionCnv_p2::Base_t
T_AthenaPoolTPCnvBase< McEventCollection, McEventCollection_p2 > Base_t
Definition
McEventCollectionCnv_p2.h:41
McEventCollectionCnv_p2::createGenParticle
static HepMC::GenParticlePtr createGenParticle(const GenParticle_p2 &p, ParticlesMap_t &partToEndVtx, HepMC::DataPool &datapools, const HepMC::GenVertexPtr &parent=nullptr)
Create a transient GenParticle from a persistent one (vers.1) It returns the new GenParticle.
Definition
McEventCollectionCnv_p2.cxx:169
McEventCollectionCnv_p2::~McEventCollectionCnv_p2
virtual ~McEventCollectionCnv_p2()
Destructor.
McEventCollection_p2
Definition
McEventCollection_p2.h:27
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
Definition
McEventCollection.h:31
HepMC
Definition
Barcode.h:13
HepMC::GenParticlePtr
HepMC3::GenParticlePtr GenParticlePtr
Definition
GenParticle.h:19
HepMC::GenVertexPtr
HepMC3::GenVertexPtr GenVertexPtr
Definition
GenVertex.h:23
HepMC::GenEvent
HepMC3::GenEvent GenEvent
Definition
GenEvent.h:39
HepMC::DataPool
Definition
HepMcDataPool.h:23
Generated on
for ATLAS Offline Software by
1.17.0