3 #include <Pythia8/Event.h>
4 #include <Pythia8/Pythia.h>
27 , _doBothEtaCut(
false)
30 _doAbsEtaHighCut(
false)
31 , _doAbsEtaLowCut(
false)
32 , _doBothAbsEtaCut(
false)
60 cout <<
"PHPy8ParticleTrigger::Apply - pythia event size: "
61 << pythia->event.size() << endl;
65 for (
int i = 0; i < pythia->event.size(); ++i)
71 (pythia->event[i].status() > 0
76 pythia->event[i].y() >
_theYHigh))
continue;
96 pythia->event[i].pAbs() >
_thePHigh))
continue;
101 pythia->event[i].pz() >
_thePzHigh))
continue;
107 cout <<
"stable " << pythia->event[i].id()
108 <<
" pt: " << pythia->event[i].pT()
109 <<
" pz: " << pythia->event[i].pz()
110 <<
" p: " << pythia->event[i].pAbs()
111 <<
" eta: " << pythia->event[i].eta()
112 <<
" y: " << pythia->event[i].y() << endl;
116 bool passedParents =
false;
120 std::vector<int> moms = pythia->event[i].motherList();
121 for (
int m = 0;
m <
int(moms.size());
m++)
125 passedParents =
true;
126 if (
Verbosity() > 5) cout <<
"found parent!" << endl;
130 if (passedParents)
break;
134 if (
_theParents.size() == 0 || passedParents)
return true;
414 cout <<
"---------------- PHPy8ParticleTrigger::PrintConfig --------------------" << endl;
417 cout <<
"Process stable particles only." << endl;
419 cout <<
"Process both unstable and stable particles." << endl;
421 cout <<
" Particles: ";
425 cout <<
" Parents: ";
441 cout <<
"-----------------------------------------------------------------------" << endl;