![]() |
HepMC Reference DocumentationHepMC |
00001 00002 // testHepMCIteration.h 00003 // 00004 // garren@fnal.gov, May 2007 00005 // 00006 // Define methods and classes used by testHepMCIteration 00008 00010 bool IsPhoton( const HepMC::GenParticle* p ) { 00011 if ( p->pdg_id() == 22 00012 && p->momentum().perp() > 10. ) return true; 00013 return false; 00014 } 00015 00017 bool IsWBoson( const HepMC::GenParticle* p ) { 00018 if ( abs(p->pdg_id()) == 24 ) return true; 00019 return false; 00020 } 00021 00023 00026 class IsFinalState { 00027 public: 00029 bool operator()( const HepMC::GenParticle* p ) { 00030 if ( !p->end_vertex() && p->status()==1 ) return true; 00031 return false; 00032 } 00033 }; 00034 00035