2#include "HepMC/GenEvent.h"
4#include "GaudiKernel/ISvcLocator.h"
5#include "GaudiKernel/Bootstrap.h"
6#include "GaudiKernel/MsgStream.h"
7#include "GaudiKernel/IMessageSvc.h"
10#include "GaudiKernel/SmartDataPtr.h"
26 ISvcLocator* svcLocator = Gaudi::svcLocator();
27 StatusCode sc=svcLocator->service(
"EventDataSvc", p_evtSvc);
36 SmartDataPtr<McGenEventCol> mcCollptr( p_evtSvc,
"/Event/Gen");
38 if ( mcCollptr != 0 ) {
41 n = mcCollptr->size();
45 McGenEventCol::const_iterator it = mcCollptr->begin();
51 HepMC::GenEvent *p_evt;
68 std::cout <<
"no McGenEventCollection found." << std::endl;
HepMC::GenEvent * GenerateHepMCEvent()
GenEvent * getGenEvt() const