HepMC Reference Documentation

HepMC

IsGoodEvent.h

Go to the documentation of this file.
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 
00012 class IsGoodEvent {
00013 public:
00014     bool operator()( const HepMC::GenEvent* evt ) { 
00015         for ( HepMC::GenEvent::particle_const_iterator p 
00016                   = evt->particles_begin(); p != evt->particles_end(); ++p ){
00017             if ( (*p)->pdg_id() == 22 && (*p)->momentum().perp() > 25. ) {
00018                 return 1;
00019             }
00020         }
00021         return 0;
00022     }
00023 };

Generated on Wed Mar 12 13:08:09 2008 for HepMC by  doxygen 1.5.1-3