12 #include "HepMC/IO_GenEvent.h"
13 #include "HepMC/GenEvent.h"
26 if ( (*p)->pdg_id() == 22 && (*p)->momentum().perp() > 25. ) {
48 int num_good_events=0;
52 if ( icount%50==1 ) std::cout <<
"Processing Event Number " << icount
55 if ( is_good_event(evt) ) {
63 std::cout << num_good_events <<
" out of " << icount
64 <<
" processed events passed the cuts. Finished." << std::endl;
particle_const_iterator particles_begin() const
begin particle iteration
The GenEvent class is the core of HepMC.
IO_GenEvent also deals with HeavyIon and PdfInfo.
bool operator()(const HepMC::GenEvent *evt)
check this event for goodness
particle_const_iterator particles_end() const
end particle iteration
int event_number() const
event number