ATLAS Offline Software
Loading...
Searching...
No Matches
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"
23
24// AthenaPoolCnvSvc includes
26
27// GeneratorObjectsTPCnv includes
29
30// Forward declaration
31class MsgStream;
32namespace HepMC { struct DataPool; }
33
35 McEventCollection,
36 McEventCollection_p2
37 >
38{
39
42
44 // Public methods:
46 public:
47
51
55
59
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
96 const GenVertex_p2& vtx,
97 ParticlesMap_t& bcToPart,
98 HepMC::DataPool& datapools,HepMC::GenEvent* parent=nullptr ) ;
99
107 ParticlesMap_t& partToEndVtx,
108 HepMC::DataPool& datapools,const HepMC::GenVertexPtr& parent=nullptr ) ;
109
110};
111#endif //> GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P2_H
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
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.
McEventCollectionCnv_p2(const McEventCollectionCnv_p2 &rhs)
Copy constructor.
McEventCollectionCnv_p2 & operator=(const McEventCollectionCnv_p2 &rhs)
Assignement operator.
virtual void persToTrans(const McEventCollection_p2 *persObj, McEventCollection *transObj, MsgStream &log)
Method creating the transient representation of McEventCollection from its persistent representation ...
McEventCollectionCnv_p2()
Default constructor:
std::unordered_map< HepMC::GenParticlePtr, int > ParticlesMap_t
virtual void transToPers(const McEventCollection *transObj, McEventCollection_p2 *persObj, MsgStream &log)
Method creating the persistent representation McEventCollection_p2 from its transient representation ...
T_AthenaPoolTPCnvBase< McEventCollection, McEventCollection_p2 > Base_t
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.
virtual ~McEventCollectionCnv_p2()
Destructor.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
HepMC3::GenParticlePtr GenParticlePtr
Definition GenParticle.h:19
HepMC3::GenVertexPtr GenVertexPtr
Definition GenVertex.h:23
HepMC3::GenEvent GenEvent
Definition GenEvent.h:39