|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_p6_H
12 #define GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_p6_H
15 #include <unordered_map>
21 #include "HepMC3/Data/GenRunInfoData.h"
24 #pragma clang diagnostic push
25 #pragma clang diagnostic ignored "-Wkeyword-macro"
27 #define private public
28 #define protected public
35 #pragma clang diagnostic pop
46 #include "GaudiKernel/ServiceHandle.h"
153 #endif //> GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_p6_H
HepMC::GenVertex * GenVertexPtr
IService to read/write HepMC's WeightContainer key names from/to IOVMetaDataContainers author: will b...
GenParticle * GenParticlePtr
virtual void persToTrans(const McEventCollection_p6 *persObj, McEventCollection *transObj, MsgStream &log)
Method creating the transient representation of McEventCollection from its persistent representation ...
HepMC::GenParticlePtr createGenParticle(const GenParticle_p6 &p, ParticlesMap_t &partToEndVtx, HepMC::DataPool &datapools, const HepMC::GenVertexPtr &parent=nullptr, bool add_to_output=true) const
Create a transient GenParticle from a persistent one (vers.1) It returns the new GenParticle.
void writeGenVertex(const HepMC::GenVertex &vtx, McEventCollection_p6 &persEvt) const
Method to write a persistent GenVertex object.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
std::unordered_map< HepMC::GenParticlePtr, int > ParticlesMap_t
virtual ~McEventCollectionCnv_p6()
Destructor.
virtual void transToPers(const McEventCollection *transObj, McEventCollection_p6 *persObj, MsgStream &log)
Method creating the persistent representation McEventCollection_p6 from its transient representation ...
ServiceHandle< IHepMCWeightSvc > m_hepMCWeightSvc
const GenParticle * ConstGenParticlePtr
McEventCollectionCnv_p6()
Default constructor:
int writeGenParticle(const HepMC::GenParticle &p, McEventCollection_p6 &persEvt) const
Method to write a persistent GenParticle object It returns the index of the persistent GenParticle in...
T_AthenaPoolTPCnvBase< McEventCollection, McEventCollection_p6 > Base_t
McEventCollectionCnv_p6 & operator=(const McEventCollectionCnv_p6 &rhs)
Assignement operator.
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
const HepMC::GenVertex * ConstGenVertexPtr
HepMC::GenVertexPtr createGenVertex(const McEventCollection_p6 &persEvts, const GenVertex_p6 &vtx, ParticlesMap_t &bcToPart, HepMC::DataPool &datapools, HepMC::GenEvent *parent=nullptr) const
Create a transient GenVertex from a persistent one (version 1) It returns the new GenVertex.