|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef GENERATOROBJECTSMCEVENTCOLLECTION_H
6 #define GENERATOROBJECTSMCEVENTCOLLECTION_H 1
47 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(nri);
DataVector< HepMC::GenEvent >::iterator EventIterator
DataVector< HepMC::GenEvent >::const_iterator EventConstIterator
void fillBarcodesAttribute(GenEvent *)
McEventCollection & operator=(const McEventCollection &)
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
An STL vector of pointers that by default owns its pointed-to elements.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
const HepMC::GenEvent * find(int evtNumber) const
macros to associate a CLID to a type