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

Runs PYTHIA 6 and builds an output tree file in the ROOT environment. More...

#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)
 Constructor. More...
 
virtual ~Pythia6 ()
 Destructor. More...
 
virtual bool Run ()
 Runs PYTHIA and writes output. More...
 

Protected Attributes

int mPrintInterval
 
TFile * mFile
 
TTree * mTree
 < Pointer to the output file More...
 
const int mNEvents
 Number of events to produce. More...
 
int mNGenerated
 Number of events passing PYTHIA selection. More...
 
int mNTrials
 Number of events thrown by PYTHIA. More...
 
std::auto_ptr< VirtualEventFactorymFactory
 

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

◆ Pythia6()

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.

◆ ~Pythia6()

erhic::Pythia6::~Pythia6 ( )
virtual

Destructor.

Definition at line 60 of file Pythia6.cxx.

Member Function Documentation

◆ Run()

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.

Member Data Documentation

◆ mFactory

std::auto_ptr<VirtualEventFactory> erhic::Pythia6::mFactory
protected

Definition at line 73 of file Pythia6.h.

◆ mFile

TFile* erhic::Pythia6::mFile
protected

Definition at line 68 of file Pythia6.h.

◆ mNEvents

const int erhic::Pythia6::mNEvents
protected

Number of events to produce.

Definition at line 70 of file Pythia6.h.

◆ mNGenerated

int erhic::Pythia6::mNGenerated
protected

Number of events passing PYTHIA selection.

Definition at line 71 of file Pythia6.h.

◆ mNTrials

int erhic::Pythia6::mNTrials
protected

Number of events thrown by PYTHIA.

Definition at line 72 of file Pythia6.h.

◆ mPrintInterval

int erhic::Pythia6::mPrintInterval
protected

Definition at line 67 of file Pythia6.h.

◆ mTree

TTree* erhic::Pythia6::mTree
protected

< Pointer to the output file

Pointer to the generated tree

Definition at line 69 of file Pythia6.h.


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