8 #include <HepMC/GenEvent.h>
38 cout <<
"PHPy6ForwardElectronTrig Configuration: " << endl;
42 cout <<
" Electron transverse momentum > " <<
pt_required <<
" GeV required" << endl;
47 if(
RequireOR) cout <<
" RequireOR is set" << endl;
48 if(
RequireAND) cout <<
" RequireAND is set" << endl;
49 if(
RequireCOMBO) cout <<
" RequireCOMBINED is set" << endl;
61 static int trig_info_printed = 0;
62 if ( trig_info_printed==0 )
65 trig_info_printed = 1;
70 unsigned int n_em_found = 0;
71 unsigned int n_ep_found = 0;
73 for ( HepMC::GenEvent::particle_const_iterator
p
74 = evt->particles_begin();
p != evt->particles_end(); ++
p ){
75 if ( (abs((*p)->pdg_id()) == 11) && ((*p)->status()==1) &&
76 ((*p)->momentum().pseudoRapidity() >
eta_low) && ((*p)->momentum().pseudoRapidity() <
eta_high) &&
77 (sqrt(pow((*p)->momentum().px(),2) + pow((*p)->momentum().py(),2))>
pt_required) ) {
78 if(((*p)->pdg_id()) == 11) n_em_found++;
79 if(((*p)->pdg_id()) == -11) n_ep_found++;