12 #include <HepMC/GenEvent.h>
13 #include <HepMC/IO_GenEvent.h>
15 #include <gsl/gsl_randist.h>
16 #include <gsl/gsl_rng.h>
23 const std::string &
name,
const std::string &nodename,
const std::string &topnodename)
46 for (
int i = 0; i < nevents; ++i)
52 int iret =
run(1,
true);
73 std::cout <<
"Fun4AllHepMCPileupInputManager::run:first event: - ";
77 std::cout <<
". Start first event." << std::endl;
93 HepMC::GenEvent *evttmp = ascii_tmp_in.read_next_event();
94 while (ascii_tmp_in.rdstate() == 0)
101 evttmp = ascii_tmp_in.read_next_event();
118 for (
int icollision = 0; icollision < ncollisions; ++icollision)
129 std::cout <<
Name() <<
": No Input file open" << std::endl;
137 std::cout <<
Name() <<
": No Input file from filelist opened" << std::endl;
167 std::cout <<
"error type: " <<
ascii_in->error_type()
168 <<
", rdstate: " <<
ascii_in->rdstate() << std::endl;
176 std::cout <<
"Fun4AllHepMCPileupInputManager::run::" <<
Name();
177 if (skip) std::cout <<
" skip";
178 std::cout <<
" hepmc evt no: " <<
evt->event_number() << std::endl;
230 for (
auto iter = geneventmap->
begin(); iter != geneventmap->
end(); ++iter)
235 HepMC::GenEvent *evttmp = (iter->second)->getEvent();