|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef GENERATOROBJECTSTPCNV_GENEVENTCNV_P1_H
12 #define GENERATOROBJECTSTPCNV_GENEVENTCNV_P1_H
15 #include <unordered_map>
22 #pragma clang diagnostic push
23 #pragma clang diagnostic ignored "-Wkeyword-macro"
25 #define private public
26 #define protected public
33 #pragma clang diagnostic pop
67 HepMC::GenEvent* transObj,
73 virtual void transToPers(
const HepMC::GenEvent* transObj,
126 #endif //> GENERATOROBJECTSTPCNV_GENEVENTCNV_P1_H
HepMC::GenVertex * GenVertexPtr
std::unordered_map< HepMC::GenParticlePtr, int > ParticlesMap_t
GenParticle * GenParticlePtr
static HepMC::GenParticlePtr createGenParticle(const GenParticle_p1 &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 void transToPers(const HepMC::GenEvent *transObj, GenEvent_p1 *persObj, MsgStream &msg)
Method creating the persistent representation GenEvent_p1 from its transient representation HepMC::Ge...
GenEventCnv_p1(HepMC::DataPool *pool=0)
constructor:
HepMC::DataPool * m_pool
a PIMPL idiom to hide the DataPools (and their specialized destructors) from the outside world
void setDataPool(HepMC::DataPool *pool)
reset the @ HepMC::DataPool pointer
virtual void persToTrans(const GenEvent_p1 *persObj, HepMC::GenEvent *transObj, MsgStream &msg)
Destructor:
static HepMC::GenVertexPtr createGenVertex(const GenEvent_p1 &persEvt, const GenVertex_p1 &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.
a typed memory pool that saves time spent allocation small object. This is typically used by containe...