StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StarGenerator
HepMC2_06_09
test
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 ) {
17
for
(
HepMC::GenEvent::particle_const_iterator
p
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
};
HepMC::GenEvent::particle_const_iterator
const particle iterator
Definition:
GenEvent.h:464
HepMC::GenEvent::particles_begin
particle_const_iterator particles_begin() const
begin particle iteration
Definition:
GenEvent.h:507
HepMC::GenEvent
The GenEvent class is the core of HepMC.
Definition:
GenEvent.h:155
IsGoodEvent
used in the tests
Definition:
IsGoodEvent.h:14
HepMC::GenEvent::particles_end
particle_const_iterator particles_end() const
end particle iteration
Definition:
GenEvent.h:511
Generated by
1.8.5