![]() |
HepMC Reference DocumentationHepMC |
00001 00002 // IsGoodEvent.h 00003 // 00004 // garren@fnal.gov, May 2007 00005 // 00006 // Events containing a photon of pT > 25 GeV are considered good 00008 00010 00014 class IsGoodEvent { 00015 public: 00016 bool operator()( const HepMC::GenEvent* evt ) { 00017 for ( HepMC::GenEvent::particle_const_iterator p 00018 = evt->particles_begin(); p != evt->particles_end(); ++p ){ 00019 if ( (*p)->pdg_id() == 22 && (*p)->momentum().perp() > 25. ) { 00020 return 1; 00021 } 00022 } 00023 return 0; 00024 } 00025 };