![]() |
eic-smear
1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
|
#include <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 |
Pointer to the output file. | |
TTree * | mTree |
Pointer to the generated tree. | |
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::auto_ptr < VirtualEventFactory > | mFactory |
Event factory. | |
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.
erhic::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.
|
virtual |
Destructor
Definition at line 60 of file Pythia6.cxx.
|
virtual |
Runs PYTHIA and writes output
Definition at line 66 of file Pythia6.cxx.