ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
GeneratorObjectsTPCnv
GeneratorObjectsTPCnv
McEventCollectionCnv_p3.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_p3.h
8
// Header file for class McEventCollectionCnv_p3
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P3_H
12
#define GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P3_H
13
14
// STL includes
15
#include <unordered_map>
16
#include <sstream>
17
18
#include "
AtlasHepMC/GenEvent.h
"
19
#include "
AtlasHepMC/GenVertex.h
"
20
#include "
AtlasHepMC/GenParticle.h
"
21
#include "
GeneratorObjects/McEventCollection.h
"
22
23
// AthenaPoolCnvSvc includes
24
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
25
26
// GeneratorObjectsTPCnv includes
27
#include "
GeneratorObjectsTPCnv/McEventCollection_p3.h
"
28
29
// Forward declaration
30
class
MsgStream;
31
namespace
HepMC
{
struct
DataPool
; }
32
33
class
McEventCollectionCnv_p3
:
public
T_AthenaPoolTPCnvBase
<
34
McEventCollection,
35
McEventCollection_p3
36
>
37
{
38
39
typedef
T_AthenaPoolTPCnvBase
<
McEventCollection
,
40
McEventCollection_p3
>
Base_t
;
41
43
// Public methods:
45
public
:
46
49
McEventCollectionCnv_p3
();
50
53
McEventCollectionCnv_p3
(
const
McEventCollectionCnv_p3
& rhs );
54
57
McEventCollectionCnv_p3
&
operator=
(
const
McEventCollectionCnv_p3
& rhs );
58
61
virtual
~McEventCollectionCnv_p3
();
62
66
virtual
void
persToTrans
(
const
McEventCollection_p3
* persObj,
67
McEventCollection
* transObj,
68
MsgStream &log ) ;
69
73
virtual
void
transToPers
(
const
McEventCollection
* transObj,
74
McEventCollection_p3
* persObj,
75
MsgStream &log ) ;
76
78
// Protected method:
80
protected
:
81
82
typedef
std::unordered_map<HepMC::GenParticlePtr,int>
ParticlesMap_t
;
83
93
static
HepMC::GenVertexPtr
94
createGenVertex
(
const
McEventCollection_p3
& persEvts,
95
const
GenVertex_p3
& vtx,
96
ParticlesMap_t
& bcToPart,
97
HepMC::DataPool
& datapools,
HepMC::GenEvent
* parent=
nullptr
) ;
98
104
static
HepMC::GenParticlePtr
105
createGenParticle
(
const
GenParticle_p3
& p,
106
ParticlesMap_t
& partToEndVtx,
107
HepMC::DataPool
& datapools,
const
HepMC::GenVertexPtr
& parent=
nullptr
,
bool
add_to_output =
true
) ;
108
109
};
110
#endif
//> GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P3_H
GenEvent.h
GenParticle.h
GenVertex.h
McEventCollection.h
McEventCollection_p3.h
T_AthenaPoolTPConverter.h
T_AthenaPoolTPCnvBase
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Definition
T_AthenaPoolTPConverter.h:41
GenParticle_p3
Definition
GenParticle_p3.h:22
GenVertex_p3
Definition
GenVertex_p3.h:24
McEventCollectionCnv_p3::transToPers
virtual void transToPers(const McEventCollection *transObj, McEventCollection_p3 *persObj, MsgStream &log)
Method creating the persistent representation McEventCollection_p3 from its transient representation ...
Definition
McEventCollectionCnv_p3.cxx:119
McEventCollectionCnv_p3::operator=
McEventCollectionCnv_p3 & operator=(const McEventCollectionCnv_p3 &rhs)
Assignement operator.
Definition
McEventCollectionCnv_p3.cxx:35
McEventCollectionCnv_p3::createGenVertex
static HepMC::GenVertexPtr createGenVertex(const McEventCollection_p3 &persEvts, const GenVertex_p3 &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_p3.cxx:134
McEventCollectionCnv_p3::McEventCollectionCnv_p3
McEventCollectionCnv_p3()
Default constructor:
Definition
McEventCollectionCnv_p3.cxx:26
McEventCollectionCnv_p3::McEventCollectionCnv_p3
McEventCollectionCnv_p3(const McEventCollectionCnv_p3 &rhs)
Copy constructor.
McEventCollectionCnv_p3::createGenParticle
static HepMC::GenParticlePtr createGenParticle(const GenParticle_p3 &p, ParticlesMap_t &partToEndVtx, HepMC::DataPool &datapools, const HepMC::GenVertexPtr &parent=nullptr, bool add_to_output=true)
Create a transient GenParticle from a persistent one (vers.1) It returns the new GenParticle.
Definition
McEventCollectionCnv_p3.cxx:163
McEventCollectionCnv_p3::persToTrans
virtual void persToTrans(const McEventCollection_p3 *persObj, McEventCollection *transObj, MsgStream &log)
Method creating the transient representation of McEventCollection from its persistent representation ...
Definition
McEventCollectionCnv_p3.cxx:51
McEventCollectionCnv_p3::ParticlesMap_t
std::unordered_map< HepMC::GenParticlePtr, int > ParticlesMap_t
Definition
McEventCollectionCnv_p3.h:82
McEventCollectionCnv_p3::Base_t
T_AthenaPoolTPCnvBase< McEventCollection, McEventCollection_p3 > Base_t
Definition
McEventCollectionCnv_p3.h:40
McEventCollectionCnv_p3::~McEventCollectionCnv_p3
virtual ~McEventCollectionCnv_p3()
Destructor.
McEventCollection_p3
Definition
McEventCollection_p3.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