5#ifndef GENERATOROBJECTSMCEVENTCOLLECTION_H
6#define GENERATOROBJECTSMCEVENTCOLLECTION_H 1
46 const HepMC::GenEvent*
find(
int evtNumber)
const;
65 for (
const HepMC::GenEvent*
ev : in)
67 HepMC::GenEvent* nev =
new HepMC::GenEvent(*
ev);
69 auto ri =
ev->run_info();
71 std::shared_ptr<HepMC3::GenRunInfo> nri = std::make_shared<HepMC3::GenRunInfo>(*(ri.get()));
72 nev->set_run_info(std::move(nri));
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
DataModel_detail::iterator< DataVector > iterator
Standard iterator.
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
DataVector< HepMC::GenEvent >::iterator EventIterator
const HepMC::GenEvent * find(int evtNumber) const
McEventCollection & operator=(const McEventCollection &)
DataVector< HepMC::GenEvent >::const_iterator EventConstIterator
void fillBarcodesAttribute(GenEvent *)