|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P5_H
12 #define GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P5_H
15 #include <unordered_map>
18 #pragma clang diagnostic push
19 #pragma clang diagnostic ignored "-Wkeyword-macro"
21 #define private public
22 #define protected public
29 #pragma clang diagnostic pop
39 #include "GaudiKernel/ServiceHandle.h"
158 #endif //> GENERATOROBJECTSTPCNV_MCEVENTCOLLECTIONCNV_P5_H
HepMC::GenVertex * GenVertexPtr
IService to read/write HepMC's WeightContainer key names from/to IOVMetaDataContainers author: will b...
virtual void transToPers(const McEventCollection *transObj, McEventCollection_p5 *persObj, MsgStream &log)
Method creating the persistent representation McEventCollection_p5 from its transient representation ...
virtual ~McEventCollectionCnv_p5()
Destructor.
HepMC::GenVertexPtr createGenVertex(const McEventCollection_p5 &persEvts, const GenVertex_p5 &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.
void writeGenVertex(const HepMC::GenVertex &vtx, McEventCollection_p5 &persEvt) const
Method to write a persistent GenVertex object.
GenParticle * GenParticlePtr
virtual void persToTrans(const McEventCollection_p5 *persObj, McEventCollection *transObj, MsgStream &log)
Method creating the transient representation of McEventCollection from its persistent representation ...
McEventCollectionCnv_p5()
Default constructor:
McEventCollectionCnv_p5 & operator=(const McEventCollectionCnv_p5 &rhs)
Assignement operator.
ServiceHandle< IHepMCWeightSvc > m_hepMCWeightSvc
int writeGenParticle(const HepMC::GenParticle &p, McEventCollection_p5 &persEvt) const
Method to write a persistent GenParticle object It returns the index of the persistent GenParticle in...
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
const GenParticle * ConstGenParticlePtr
std::unordered_map< HepMC::GenParticlePtr, int > ParticlesMap_t
HepMC::GenParticlePtr createGenParticle(const GenParticle_p5 &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.
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
T_AthenaPoolTPCnvBase< McEventCollection, McEventCollection_p5 > Base_t
const HepMC::GenVertex * ConstGenVertexPtr