StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IsGoodEvent.h
1 // IsGoodEvent.h
3 //
4 // garren@fnal.gov, May 2007
5 //
6 // Events containing a photon of pT > 25 GeV are considered good
8 
10 
14 class IsGoodEvent {
15 public:
16  bool operator()( const HepMC::GenEvent* evt ) {
18  = evt->particles_begin(); p != evt->particles_end(); ++p ){
19  if ( (*p)->pdg_id() == 22 && (*p)->momentum().perp() > 25. ) {
20  return 1;
21  }
22  }
23  return 0;
24  }
25 };
const particle iterator
Definition: GenEvent.h:464
particle_const_iterator particles_begin() const
begin particle iteration
Definition: GenEvent.h:507
The GenEvent class is the core of HepMC.
Definition: GenEvent.h:155
used in the tests
Definition: IsGoodEvent.h:14
particle_const_iterator particles_end() const
end particle iteration
Definition: GenEvent.h:511