-
Notifications
You must be signed in to change notification settings - Fork 0
/
mymain02.cc
37 lines (26 loc) · 1.02 KB
/
mymain02.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# include "Pythia8/Pythia.h"
using namespace Pythia8;
int main (){
Pythia pythia ;
pythia.readString("Beams:eCM=13000.");
pythia.readString("Top:gg2ttbar = on");
pythia.readString("Top:qqbar2ttbar = on");
pythia.init();
int nEvents = 10;
for( int iEvent = 1; iEvent < nEvents ; ++ iEvent ) {
if (!pythia.next())continue ;
// El for inicia en la primera particula y se detiene en el tam$
for ( int i = 1; i < pythia.event.size(); ++ i ){
if ( pythia.event[i].isFinal()){
cout<<" Particula final: "
<< pythia.event[i].name()
<<" , id: "
<< pythia.event[i].id()
<<" , su energia: "
<< pythia.event[i].e() <<endl;
}
}
}
// Done.
return 0;
}