EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <eic-smear/blob/master/include/eicsmear/erhic/Pythia6.h>
Public Member Functions | |
Pythia6 (TFile *file, VirtualEventFactory *, int nEvents, const std::string &treeName="EICTree", const std::string &branchName="event", int printInterval=1000) | |
virtual | ~Pythia6 () |
virtual bool | Run () |
Protected Attributes | |
int | mPrintInterval |
TFile * | mFile |
TTree * | mTree |
< Pointer to the output file | |
const int | mNEvents |
Number of events to produce. | |
int | mNGenerated |
Number of events passing PYTHIA selection. | |
int | mNTrials |
Number of events thrown by PYTHIA. | |
std::unique_ptr < VirtualEventFactory > | mFactory |
Runs PYTHIA 6 and builds an output tree file in the ROOT environment. The output tree is populated with EventPythia objects. PYTHIA options (including initialisation) should be provided via the ROOT interface class TPythia6 before running the tree-building.
Definition at line 34 of file Pythia6.h.
View newest version in sPHENIX GitHub at line 34 of file Pythia6.h
Pythia6::Pythia6 | ( | TFile * | file, |
VirtualEventFactory * | factory, | ||
int | nEvents, | ||
const std::string & | treeName = "EICTree" , |
||
const std::string & | branchName = "event" , |
||
int | printInterval = 1000 |
||
) |
Constructor.
Associates the output of this PYTHIA run with a file. Generate events using the provided event factory. Both the file and the factory should be dynamically allocated. Pythia6 takes ownership and deletes them. Define the number of events to produce, and optionally provide a tree and branch name.
Definition at line 29 of file Pythia6.cxx.
View newest version in sPHENIX GitHub at line 29 of file Pythia6.cxx
References Acts::UnitConstants::e, exit(), mFactory, and mTree.
|
virtual |
Destructor
Definition at line 60 of file Pythia6.cxx.
View newest version in sPHENIX GitHub at line 60 of file Pythia6.cxx
|
virtual |
Runs PYTHIA and writes output
Definition at line 66 of file Pythia6.cxx.
View newest version in sPHENIX GitHub at line 66 of file Pythia6.cxx
References mFactory, mFile, mNEvents, mNGenerated, mNTrials, mPrintInterval, mTree, Acts::UnitConstants::s, and Acts::Test::time.
Referenced by runpythia().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |