Skip to content

Commit a7aa5bb

Browse files
committed
get access to pythia stats
1 parent e37cac8 commit a7aa5bb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

include/pythiaEvent.hh

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public :
3737

3838
std::vector<fastjet::PseudoJet> getPartonList() const { return partons; }
3939

40+
void getStat() {pythia.stat();}
41+
4042
};
4143

4244
pythiaEvent::pythiaEvent(double pthat, unsigned int tune, double rapMin, double rapMax, bool partonLevel) :

runCreatePythiaEvents.cc

+2-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ int main (int argc, char ** argv)
5252
for(unsigned int ie = 0; ie < nEvent; ie++) {
5353
Bar.Update(ie);
5454
Bar.PrintWithMod(entryDiv);
55-
56-
Bar.Update(ie);
57-
Bar.PrintWithMod(entryDiv);
5855

5956
//---------------------------------------------------------------------------
6057
// produce event
@@ -80,6 +77,8 @@ int main (int argc, char ** argv)
8077
fout << "end\n";
8178
}
8279

80+
pyt.getStat();
81+
8382
fout.close();
8483

8584
std::cout << "\n Finished generating PYTHIA events" << std::endl;

0 commit comments

Comments
 (0)