EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
erhic::Pythia6 Class Reference

#include <eic-smear/blob/master/include/eicsmear/erhic/Pythia6.h>

+ Collaboration diagram for erhic::Pythia6:

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
 

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.

View newest version in sPHENIX GitHub at line 34 of file Pythia6.h

Constructor & Destructor Documentation

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.

+ Here is the call graph for this function:

Pythia6::~Pythia6 ( )
virtual

Destructor

Definition at line 60 of file Pythia6.cxx.

View newest version in sPHENIX GitHub at line 60 of file Pythia6.cxx

Member Function Documentation

bool Pythia6::Run ( )
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().

+ Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 73 of file Pythia6.h.

View newest version in sPHENIX GitHub at line 73 of file Pythia6.h

Referenced by Pythia6(), and Run().

TFile* erhic::Pythia6::mFile
protected

Definition at line 68 of file Pythia6.h.

View newest version in sPHENIX GitHub at line 68 of file Pythia6.h

Referenced by Run().

const int erhic::Pythia6::mNEvents
protected

Number of events to produce.

Definition at line 70 of file Pythia6.h.

View newest version in sPHENIX GitHub at line 70 of file Pythia6.h

Referenced by Run().

int erhic::Pythia6::mNGenerated
protected

Number of events passing PYTHIA selection.

Definition at line 71 of file Pythia6.h.

View newest version in sPHENIX GitHub at line 71 of file Pythia6.h

Referenced by Run().

int erhic::Pythia6::mNTrials
protected

Number of events thrown by PYTHIA.

Definition at line 72 of file Pythia6.h.

View newest version in sPHENIX GitHub at line 72 of file Pythia6.h

Referenced by Run().

int erhic::Pythia6::mPrintInterval
protected

Definition at line 67 of file Pythia6.h.

View newest version in sPHENIX GitHub at line 67 of file Pythia6.h

Referenced by Run().

TTree* erhic::Pythia6::mTree
protected

< Pointer to the output file

Pointer to the generated tree

Definition at line 69 of file Pythia6.h.

View newest version in sPHENIX GitHub at line 69 of file Pythia6.h

Referenced by Pythia6(), and Run().


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