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
erhic::Pythia6 Class Reference

#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.
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

erhic::Pythia6::~Pythia6 ( )
virtual

Destructor

Definition at line 60 of file Pythia6.cxx.

Member Function Documentation

bool erhic::Pythia6::Run ( )
virtual

Runs PYTHIA and writes output

Todo:
Implement selection of correct event factory (either erhic::Pythia6EventBuilder or hadronic::Pythia6EventFactory) depending on requested beam types.

Definition at line 66 of file Pythia6.cxx.


The documentation for this class was generated from the following files: